cancel
Showing results for 
Search instead for 
Did you mean: 

Customisation of UI : SUP HWC

Former Member
0 Kudos

Hi ,

There are two ways to do this.

1) Statically HtmlView

2)Dynamically Custom.js in methods.

But I have few questions on this :

1) In what circumstance we need to select Update Generated Code  Checkbox . while generating Workflow ?

2) Do we have or use any layouts for screen designing?

3)how do we Customization of existing component came from WFL form? Any examples on this?

4) Can we bale to hide or remove menus / buttons from screen dynamically ? any reference for this?

Regards,

Swapnil

Accepted Solutions (1)

Accepted Solutions (1)

Dan_vL
Product and Topic Expert
Product and Topic Expert
0 Kudos

1) If you modify something in the Mobile Workflow designer, you will want to regenerate your project so that the changes can be made to the HTML and JavaScript files.  The HTML file is overwritten when you regenerate your project ... so it is not recommended to make changes to the HTML unless you wish to use the Mobile Workflow Tooling as a base and then use some other editor to tweak them later.  Most of the JavaScript files have a comment at the top of the page mentioning if they are overwritten or not during regeneration.  Custom.js is one of the files that is not overwritten and is used to customize the hybrid app.

2) At the moment there is no built in layouts.  You can of course modify the generated code to add this.

3) There are a series of examples that might help.  They are linked to from the following sample Mobile Workflows in an Occasionally Disconnected Environment

4) I believe there is a method to call to add and remove menu items since those depending on the platform are added through the HWC (native menus on Windows Mobile, BlackBerry and Android).  Have a look at addMenuItem and removeMenuItem in API.js.  Buttons can be removed or hidden through custom code.

Former Member
0 Kudos

Thannks  Daniel.

Can you provide me some examples for customisation.

I started doing it from Custom.js. But problem i am facing is same code working fine on Chrome browser with JQUERY code. But if i try it in HWC in android emulator alignment is disturbing.

Here i am trying to customise list.

Thanks,

Swapnil

Former Member
0 Kudos

Right answer belong to following thread:

http://scn.sap.com/message/13739216#13739216

But still i am facing issue with detail form custom screen refreshing issue.

Answers (0)