How to design a structure of UIView Controller for dynamic contains - objective-c

How to design a screen structure with light weight loading and easy to scroll ???
Here is my current design structure.
i am using table structure for set dynamic data. for main table as well as sub table. it working fine but when i am scroll the table it is not smoothly scrolling.
is there any other way to set this type of dynamic data ??
(Note: in Main Table no. of cell is dynamic not fixed , as well as each sub table also have variable no of cell not fixed)

Related

Dynamic table control creation?

I have a task to create tableview on a GUI screen dynamically. The control must be created dynamically fo different table types, because we need to maintain different tables. I mean I need SM30 looking table maintainance screen.
Is it possible in ABAP to create tableview dynamically? Or is it possible within ALV grids only?
There isn't any alternative table view for SAP GUI. You need to use ALV to show multiple lines same time.
You can create ALV dynamically.
As a very slim trick use STC1_FULLSCREEN_TABLE_CONTROL. It makes table control just in time
CALL FUNCTION 'STC1_FULLSCREEN_TABLE_CONTROL'
EXPORTING
header = 'MyTab'
tabname = 'MARA'
no_button = 'X'
TABLES
table = lt_mara
EXCEPTIONS
no_more_tables = 1
too_many_fields = 2
nametab_not_valid = 3
handle_not_valid = 4
OTHERS = 5
.
However, I agree with the rest of commenters that ALV grid will be much better for this case.

Ideas for diplaying query results next to buttons

I have a temporary table that is created from a series of query with a VBA code. The name and number of fields in the table changes with the results of the queries.
Right now I simply open the table with DoCmd.OpenTable.
What I would like to do is display the table in a form so I can include some buttons for example to allow the user to export the table.
I tried a listbox but the formatting was not good and I can't add horizontal scroll bar to see all fields.
I tried a subform populated from the table, but it would not adapt to the changes of the table (fields and numbers).
Any Idea of what can I do next ?
the subform seems to be a good idea. When your table is ready to be shown, you can assign it to a subform object via Me.subFormName.SourceObject = "Table.tableName"
(of cource "subFormName" and "tableName" have to be replaced by the actual names of the subform and the table)

Create DataTable child row without showing it?

I am using datatable (v1.10.2 with jquery 1.9.2) because I like the out-of-the-box features (searching/sorting etc). However, now I want the ability to:
1) use animations (sliding) when showing/hiding a row
2) have the hidden row available in the DOM to change (ie, it would exist but have a display:none).
My current code to create the table looks like the following (where formatChild() returns html for a table):
if (row.child.isShown()){
row.child.hide();
tr.removeClass('shown');
} else {
row = row.child(formatChild());
row.show();
tr.addClass('shown');
}
I am using several services to change data in the child row's table via ajax and want to be able to change that data even when the row is hidden. I know I can create a map in memory and use the information in the stored map when I show the child row, but to me it is much cleaner to change the hidden row immediately.
I was hoping I could do a row()child(), modify the row, then call row()child().show() but the row isn't created in the DOM after the row.child().
Regarding the animation, I found an answer here but it involves changing the datatables code :(
I considered just using jquery to add a row to the datatable and hide it, but I couldn't find a good way to "attach" it to the primary row for sorting.
The plan I am currently leaning towards is to add a div to my primary table row that I will show/hide/update rather than using child rows at all.
What is the best practice for managing these hidden areas in a datatable (and showing them with animation)? ty
In case anyone else has the same question, I ended up using a DIV in the row rather than using DataTables' child row. When I add a new row to the datatable, the div is hidden then I hide and show (slideup/slidedown) on a click event. This gives me the nice animations, keeps the sorting simple, and let's me change information in the hidden row. Interestingly, the DIV contains a table and the text that is in that table when I create the new row is searchable; however, the text in the table that my ajax call adds/modifies is not searchable. I'm looking into how I want that to work (and may keep the div out of the search altogether if possible).

How to access a Field in a Dynpro i Added via the Dict in the PAI?

I have the following question:
I have a dypro and added via the layout builder a dict delement: mara-matnr
Now I see it in my element list:
Now I wanted to know, how to access the value of the matnr in my PAI which looks like this:
MODULE user_command_1000 INPUT.
" HOW TO ACCESS THE VALUE OF MATNR HERE?
ENDMODULE.
I have to guess what you did to get that far, and I’d strongly recommend not to continue along that road. What I’d rather do is
create a new dictionary structure (not a transparent table!) that contains the screen fields you need
use the TABLES statement with the structure to declare a global variable in your program or function pool top include
place the fields of the structure on the screen, just like you did with the MARA fields in your example
use the fields of your global variable in your coding
The way you prepared the screen, you would have to add a global variable named MARA with the structure of the transparent table MARA, probably using the statement TABLES mara. While this is perfectly possible, it’s also really dangerous - you could end up changing the database contents inadvertedly, especially since you seem to be rather new to the system.

Auto Inserting data into table row behind subform?

I've got a form that's got a subform and THAT subform/child has a subform/grandchild.
When I add a new client to the main form, the subform/child contains data like shipping address, etc etc. The subform/grandchild that one contains data like what we're shipping them.
When I make my initial new entry in the top form, there's data that seems to auto populate into the subform/child (and subsequently the table), however there are things that are always "default" items to ship (third subform/grandchild) that do not do that.
I've got some table constraints for the grandchild table like (ShipPackingSlip type bit) is set to 1, so that the checkbox should always be true. However, this does not occur on the 3rd layer of the form. Even setting the default option value to -1 will "autocheck" the box, but the data behind the forum does not reflect that.
Am I doing something wrong here?
Does that even make sense?
As I understand it (and I could be wrong), you can't use a subform in a subform on a main form without problems. It's better to organize your data and forms so that if you need to view more detailed information on data presented in a subform - it's better to call a new form from a button on the subform, passing a value to it so it pulls the correct record to view.
This would, of course, require you to store this subform of the subform data in a related table - then just relate it back to the main database with a unique identifier. This allows you a bit better means to organize your data, indexing isn't a pain, and you don't repeat information entry as much.