on 10-02-2013 4:02 PM
Hi gurus,
In my short experience with SUP I noticed that the only way SUP imports the MBO result is as a ListView (NAME1).
As such, I have 2 questions:
1. Is there a way to change this?
i.e. I have only 1 parameter (PAR_NAME1) sent from back-end to device, but in my HWC page I see the listview with 1 column.
Can I change this? Can I have an editbox for example?
2. Is there a way to get the data from the MBO's response without using the listview (inside an editbox with some JS code) or in the case that I have to use the listview, can I hide it?
Thank you very much,
Marius
It's possible to hide listview, use edit box instead of list view etc by writing your custom code inside the custom.js file.
Have an example here on how to use the data coming from MBO.
http://scn.sap.com/community/mobile/blog/2013/02/20/develop-hwc-app-with-customized-list
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I issue tho ... This code overwrites some of the page, not only the listview The button is gone. In the executed workflow, the button doesn't exist on the page.
I tried using "document.getElementById('Nume_Furnizor_Key').value = PONumber", but I get a workflow error. Used it in both BeforeScreenShow and in AfterScreenShow. Any new ideas?
Have one more issue.
If I'm on the Chrome debugger, and I run the "Submit" buton I get this error:
"
"
But on the device it works like a charm. Is there something I'm missing?
I added the 2 feaures to chrome, --access-files and --disable-web-security
If you want to hide only particular objects from your screen you can use Jquery for that.
If I am remembering correctly you can hide a list like
$("#ListviewID").hide() ;
For chrome based debug this might help you, http://scn.sap.com/community/developer-center/mobility-platform/blog/2012/09/04/debugging-sybase-sup...
Midhun VP wrote:
For chrome based debug this might help you, http://scn.sap.com/community/developer-center/mobility-platform/blog/2012/09/04/debugging-sybase-sup...
It on his blog that I based my initial Chrome debug features. It doesn't work for some reason after the online request
Use the below code inside customBeforeWorkflowLoad().
$('div#ListviewName').hide();//Listview name is the key of the listview in the screen.
User | Count |
---|---|
85 | |
10 | |
10 | |
10 | |
7 | |
6 | |
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.