on 04-01-2014 2:38 PM
Hi,
I am trying to show up a drop down for a list of values for a field "Country" on the Syclo Agentry screen.
I wish to put hard-coded values for this field on the UI.
Is there any way I can populate the dropdown without making use of a complex table?
If no, What all options I might have? In case of a complex table, Is it necessary that the table should be filled by Java code?
Can I populate a complex table/Data table from the agentry UI directly?
Any help will be appreciated.
The Drop downs are only for Complex or Data Tables, what you can do is create a file backend Data Table and put the values in the file. Create a Data Table with a File backend - SAP Mobility - SCN Wiki
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I agree with stephen that a data table with a file backend is the best way for this use case.
But, drop downs are NOT only for Complex or Data Tables, you can also use a "List Selection" control with an object collection as data source. It is not a good way for this usecase, but it is a way to implement a dropdown.
Arihant,
There is no easy way to define a drop down list with hard-coded values directly from Agentry without using a CT or DT. You could also use a SQL backend to populate a complex or data table. You could populate (hard code) a small list just using Agentry by populating an object collection using a combination of actions and transactions, and then use the List Selection to display the collection list on screen.
Jason Latko - Senior Product Developer at SAP
Hi Steve,
I went through the link Create a Data Table with a File backend - SAP Mobility - SCN Wiki
However, I couldn't find a folder "tables" under the ServerDev directory.
I created the folder "tables" under the root directory (C:\SAP Work Manager\ServerDev) and placed the file there.
the agentry application->Data tables looks like this:
The INI file looks like this:
the ATE can't detect the newly added data table.
What can be wrong here?
Arihant,
Here is my configuration for using a file based DT. Note there is an error in the example your followed on the LastUpdate reference. The value should be the name of the datatable equals sign and the last update time date reference.
Here is the contents of my data table file (FileBasedDT.txt)
[filebaseddatatable]
1=Critical
2=High
3=Medium
4=Low
5=Very Low
[LastUpdates]
filebaseddatatable=9:00:00 2/6/2014
The corresponding editor definition is as follows
I think the other critical point is that in the actual file the name reference must be all lower case. Even though the name is mixed case in the Editor screenshot when it looks for the matching section in the file it coverts to lower case and does a case specific lookup.
Try chaning your file DT reference to be all lower case and fix the last update reference and you should be good to go.
--Bill
User | Count |
---|---|
96 | |
11 | |
11 | |
10 | |
9 | |
8 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.