on 04-11-2013 2:29 AM
Hi ,
I am very new to SUP. I am trying to develop a sample example to navigate from one screen to other screen where the first screen has input fields: Name & Address.
I don't want to connect to any data source for this example. Just simple navigation. .
Created a local MBO with Attributes Name and Address.
In the start Screen Created to edit boxes Name and Address and two keys Kname and Kaddress.
Now when I enter the name and address I want to go to next screen with the values I have entered.
Please help.
Thanks,
Hi dear,
If you are trying with HWC approach,
create a second screen from right hand side palette, drag and drop.
give some name to this screen. lets say screen2
go to its screen design , create 2 new editbox you had created in screen1, and map these two with existing keys..Kname, Kaddress.
come back to 1st screen's flow design tab .
create a menu item.
go to its properties:
select type : Open
Screen: from dropdown, select screen2.
i hope this will help you.
Regards,
Jitendra
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Please go through http://www.youtube.com/user/SUPDeveloperProgram to understand the basics of app development using SMP.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Midhun,
thank you for the link. I have already gone through some of those tutorials. Do you know where I can find some good documentation as what is the difference between onlinerequest/save/etc etc. Also trying to understand where can we store data(temporaily), what is the visibility of declared attributes(not comming from data source) in an MBO etc etc. Where to declare local variables? How can we do validation? etc
Appreciate if you refer me to those links.
Thanks,
There are a series of samples that may be of some help. The first one which contains links to all the others is available at the SUP Apps site https://cw.sdn.sap.com/cw/groups/sup-apps
Expense Tracking Sample https://cw.sdn.sap.com/cw/docs/DOC-148193
I will attempt to comment on a few of your questions.
An online request is a synchronous request to the SUP server. This requires that the device have network connectivity. The result returned to the device is A success or failure.
A Submit operation closes the hybrid app and places the request on a queue on the device. If there is no network connectivity at the time of the request, the operation will be sent to the SUP server the next time the device has connectivity.
A save operation commits the key values of a screen to the workflow message and returns to the previously opened screen.
A cancel operation returns to the previously opened screen but does not update the key value from the canceled screen to the workflow message.
In JavaScript a variable can be local to the scope it was declared in or global. You can declare global variables at the top of Custom.js. See http://sharkysoft.com/tutorials/jsa/content/031.html
Validation can be performed by setting properties in the designer. Click on a control and examine its advanced tab. Also see the validate controls as soon as focus changes option in the hybrid app packaging wizard.
Hope that helps,
Dan van Leeuwen
User | Count |
---|---|
82 | |
9 | |
9 | |
7 | |
7 | |
7 | |
6 | |
6 | |
5 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.