Screencasts on SUP 2.0 Mobile Workflows (Hybrid Web Container)

http://blogs.sybase.com/himagiri/
I've started posting screencasts for SUP 2.0 focusing on the Mobile Workflow/Hybrid Web Container functionality. Feel free to comment with any other topics you are interested in hearing about.

Posted a new screencast.
http://blogs.sybase.com/himagiri/2011/06/screencast-debugging-server-initiated-workflows-on-desktop/

Similar Messages

  • SUP Hybrid Web container Offline Mode

    Hello,
    I tried out a workflow example on blackberry simulator(using hybrid web container),but when i am in offline mode,the example doesnot work,so i had a doubt whether hybrid webcontainer supports offline mode,or do we need to do anything in the code,to support this.
    regards
    kaushik

    in the SUP documentation it is mentioned that offline support is provided,refer the link
    http://infocenter.sybase.com/help/topic/com.sybase.infocenter.dc01203.0200/doc/html/apr1300926372606.html)

  • Hybrid Web Container(sup) example

    Hi,
    can any one explain how to create a SUP Hybrid Web Container Application example..
    Thanks in Advance.....

    Hi Vinaykumar
    Try this link.
    [How to Implement a Simple Application using Sybase Unwired Platform 2.0|http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/90b94038-3877-2e10-aa81-e021d6ffd0cc?quicklink=index&overridelayout=true]
    Hope this will help you.
    Thanks and regards,
    Rinzy Deena Mathews

  • SUP - Hybrid Web Container - Development / Customization on Custom.js file

    Hi experts,
    1. To perform customization on the Hybrid Web Container from SUP 2.1, we usually edit the Custom.js file.
    2. Now in the development tool which is our Sybase Unwired Workspace, it uses Eclipse and that is where we usually edit the Custom.js file.
    3. However, to test out the changes in the file, we have to re-deploy the package to the SUP and then see the difference in the device.
    4. Is there a way to debug the Custom.js file, or to put a breakpoint to track and troubleshoot if there is a bug?
    5. Has anyone done customization and used some tool that can allow developers to debug their changes?
    6. It would be very difficult to fix bugs if there is no way to use breakpoints or debug.
    Please advise.
    Thank you.

    Hi Hari,
    Try checking out [this video from sybase|http://t.co/qTJHzUGI] on how to debug the JS part of the Hybrid web container. Should help you out.
    Cheers,
    Brenton.

  • Hybrid Web Container: Overriding Generated Files

    Hey Experts.
    I am working with SUP 2.1 Mobile Workflow or Hybrid Web Container applications.  I was curious if anyone out there has been able to modify the template files for when a Mobile Worklfow is generated? 
    Specifically my use case is to display header and footer in Android and Blackberry.  These by default are not shown.  For example in the generated workflow_jQueryMobileLookAndFeel.html file string on line 1821 we have the following JavaScript:
                $('div[data-role="header"]').css('display', 'none');
                $('div[data-role="footer"]').css('display', 'none');
    I of course can undo this in the customBeforeShowScreen method but prefer modifying the template for generation of the html file as it is arguably 'cleaner'.
    There is an instance where an override wont work such as the above example.  I also want to show my headers without the default back button.  In the jquery.mobile-1.0a4.1.js file on line 1607 there is an option that enables the back button by default when there are no other buttons.  Again I want to show the header on the login screen but dont want to show a back button - its not relevant:
    $.widget( "mobile.page", $.mobile.widget, ,
              keepNative: null
    Any ideas?  Thanks.

    There are a few approaches you can take.  When using the designer, you can inject the changes via JavaScript, as you have noted.  You can also include the changes in files jquery.mobile.fix.js or jquery.mobile.fix.css that will get included after the jquery mobile files are included.  You can also include changes in files that don't get overridden like API.js or Utils.js.
    Another approach is to turn the Generate checkbox off.  Doing so will break the lnk between changes made in the designer and the generated code, but it will leave with a nice easy way to continue to repackage and redeploy your changes.
    Finally, you can stop using the designer altogether and manually create the .zip file and its contents.

  • Changing the Header in a Hybrid Web Container app on BlackBerry

    Hello Experts!
    I am trying to add a custom header to Hybrid Web Container Apps on SUP 2.0.  It would be nice to add branding or additional text - even the ability to center the text would be nice.  I have tried various jQuery approaches and can see the changes working when I test via Chrome.  However when deploying to my BlackBerry simulator the changes are not reflected.  If I had to guess - it would appear the entire Header area is not modifiable.  To add more context to the problem review the generated code below from workflow_jQueryMobileLookAndFeel.html
    <div data-role="page" data-theme='a' id="ErrorDetailScreenDiv">      
          <div data-role="header" data-position="inline">
           <h1>ErrorDetail</h1>
         </div>
    Recall that each screen is a div with the data-role attribute page; similarly the div with data-role header is the area in question that I am trying to modify.
    Here is the jQuery I am using in the customBeforeWorkflowLoad method in the Custom.js file.
    $('[data-role="header"]').each(function() {
              var dvHeader = $(this);     
              var elem = dvHeader.find('h1');
              var h1Str = elem.text();
              elem.empty();
              dvHeader.remove('h1');
                    //function buildHeader returns html text of a div etc
              var txt = buildHeader(h1Str);
              dvNewHeader = $(txt);
              dvHeader.append(dvNewHeader);     
    Again when testing in chrome the text is removed and the new header is added.
    If I had to guess - I would say the Workflow application which wraps around the Hybrid Web Container App is interfering;  I assume the workflow (native) application reads the h1 tags and the header we see on the device is the workflow app and not the Hybrid Web Container.  My other guess would be the Header area is somehow locked in the BlackBerry scenario.
    Thanks.
    Edited by: JUSTIN MCGREW on Sep 22, 2011 5:18 PM
    Edited by: JUSTIN MCGREW on Sep 22, 2011 5:21 PM
    Edited by: JUSTIN MCGREW on Sep 22, 2011 5:22 PM

    Hello,
    Yes I was aware of the customBeforeShowScreen method of adding a screen header.  I believe in my testing I determined for ListView-based screens and credential screens the dynamic header is not shown and only works on pages with an HTMLView.
    Doesnt it seem a little silly to have two headers?
    Example:
    Login Page
    Logo \ Login Page \ Custom Text
    Screen Body
    I will accept that there is not a method to replace the header at the very top of the screen.
    Thanks for your time and help!
    -Justin

  • Hybrid web container Broswer : hwc.showUrlInBrowser

    Hi Guys
    SMP 2.2
    HWC(2.2.4)
    iOS (os7)
    I am using the above method (hwc.showUrlInBrowser) to display a website inside a hybrid app using Hybrid Web Container.
    It works great for websites that do NOT require basic authentication.
    The issue I am having is that if the website requires basic authentication then the hwc browser hangs on loading.
    Another issue I have is that the browser session does not pick up the authentication for the hybrid web container.
    I am already logged into a back end system using the HWC, but when I access a url in the back end using showUrlInBrowser, authentication fails.
    Any ideas/views greatly appreciated.
    Thanks
    Andrew

    Hi there,
    There is some good documentation from Sybase on how to format a DCN from the SAP side [Here|http://infocenter.sybase.com/help/index.jsp?topic=/com.sybase.infocenter.dc01284.0210/doc/html/title.html]. Its probably easier to follow that documentation and relate it specifically to your requirement than to write out a long example here.
    On the SUP side you will need a rule in your workflow to detect and act on the notification but that is also covered in the documentation above.
    Hope that helps,
    Brenton.

  • Hybrid Web Container support of HTML5 Drag and Drop

    Good Morning Experts!
    Testing HTML5 drag and drop capabilities on iOS devices and simulators
    it doesnt appear to work. Searching Sybase/SAP documentation and
    unable to find whether Drag and Drop is supported in the Hybrid Web
    Container.
    I did test a jQuery plugin for drag and drop and it tested successfully on a BlackBerry Simulator (but not on iOS):
    http://www.stevefenton.co.uk/Content/Jquery-Mobile-Drag-And-Drop/
    Does the Hybrid Web Container support HTML5 Drag and Drop
    capabilities?
    Is there available documentation on HTML5 support for the Hybrid Web
    Container?
    Thanks!

    Bob do you know which one is the source? The link goes to a whole directory
    http://appliness.com/code/
    Haeme Ulrich
    ulrich-media GmbH <http://www.ulrich-media.ch>
    Unser Wissen, Ihr Können: Schulungen für Publishing.

  • IFrame in Hybrid Web Container / Sybase Unwired Platform

    Hi,
    I'm completely new to this and have a hopefully simple question:
    I'd like to display additional content in an SUP on mobile devices.
    Is it possible to add an iframe and display content from a web server?
    if this is possible can i communicate with this frame using JavaScript?
    regards
      Ralf

    I believe this is possible.  Have you tried it? 
    If not, add an htmlview to your screen, create a key for it and assign it to have a default value such as <iframe src="http://www.sybase.com" style="width:300px;height:400px"></iframe>
    Regards,
    Dan van Leeuwen

  • Implementing DCN Programming in HWC(Hybrid Web Container) Application.

    Hi,
       Can any one explain how to programme DCN in a HWC application with a good example.
    Thanks And Regards,
             Sudheendra.Kalakeri.

    Hi there,
    There is some good documentation from Sybase on how to format a DCN from the SAP side [Here|http://infocenter.sybase.com/help/index.jsp?topic=/com.sybase.infocenter.dc01284.0210/doc/html/title.html]. Its probably easier to follow that documentation and relate it specifically to your requirement than to write out a long example here.
    On the SUP side you will need a rule in your workflow to detect and act on the notification but that is also covered in the documentation above.
    Hope that helps,
    Brenton.

  • SMP 2.3.3 Hybrid Web container testing with iOS 8 beta

    Hi Experts,
    Our HWC container version is 2.3.3.6966 and our SMP version is 2.3.3
    Any help will be much appreciated.
    Thanks and Regards,
    Sreeni Jayapal.
    Message was edited by: jitendra kansal

    In SAP support portal, we can only see up to SMP 2.3 SP04PL01, from where we can download this patch?
    Is this patch (SMP 2.3 SP04PL02) solve the HWC application compatibility issue with iOS8?
    Thanks
    Fibeesh

  • Workflows in web dynpro java

    Hi experts,
    please guide me about the workflows in web dynpro java. i have to implement workflow outside SAP, i dont have any idea about it.

    Dear Shilpi
    For Configuring Workflows outside SAP we need to have a Gateway HUB where it channelizes to connect through Outside SAP. Based on the Tasks available in SWFVISU we can choose either Java or ABAP workflow where the Appropriate Task numbers will be available.
    Check these links
    Gateway Workflow Configuration Problem
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/10dfad5a-5398-2b10-568b-d3d999d49b5c?QuickLink=index&…
    Hope this Info will be helpful
    Cheers
    Pradyp

  • Trigger workflow from web form

    HI Experts,
    I have a requirement to trigger workflow when a web form  is completed through a portal and saved.I also need to perform certain validations on the fields in the web form before triggering the workflow.The web form would then go the proper approvers and then I need to send notification messages on Approval or Rejection.I am at loss of thoughts as to how I can achieve this functionality.
    I also need to send reminders to the approver every 2 hours till he takes some action.
    Any suggestions would be of great help and would be rewarded appropriately..
    Regards,
    Narsingh

    Hi Narsingh,
    the solution depends much on the web form you are implementing.
    Is this a standard portal application you are working on? Or are you developing also the form from scratch?
    The previous answers just tell how you can trigger a workflow if the application doesn't trigger it itself.
    If the web form is a standard application or built with process frameworks like HCM Processes and Forms/ISR/PCR, then the event is often published by default without any customization.
    No answers, just questions...
    Kind regards,
    Mikko

  • Invoke Workflow from Web Dynpro for Java Application

    I am working on a custom web dynpro for java application and when the user clicks the submit button the SAP standard workflow (WS50000041) should be invoked. Does anyone have experience they can share with me on how to achieve this functionality? It should also be able to attach an adobe form or read data from the form and submit the data as xml.
    Thanks,
    Ashley

    Hi Ashley,
    Use following code in RFC to invoke your workflow -
    DATA : w_subrc TYPE sy-subrc,
                w_wi_id LIKE swwwihead-wi_id.
    CALL FUNCTION 'SAP_WAPI_START_WORKFLOW'
            EXPORTING
              task                      = ' WORKFLOW - WSxxxxxx '
              language                  = sy-langu
              do_commit                 = 'X'
            IMPORTING
              return_code               = w_subrc
              workitem_id               = w_wi_id
            TABLES
              input_container           = it_container
              message_lines             = lv_swr_messag
          COMMIT WORK.
    With this code your workflow will get start. But u have to use workflow id in next application also in which your request is getting navigated. In that application you have to take this workflow ID and have to pass again in workflow using - PortalNavigation statements.
    After that this workflow will get start to publish in your TaskList (My Task) in Portal. Remeber that your all task should be maintained in workflow table by using SWFVISU  transaction.
    After that go to Portal and Re-Register your UWL so that your new Workflow ID will get usable in portal.
    With this way you would be able to use workflow with Web Dynpro Java using UWL and Workflow.
    Regards,
    Roshan Gupta

  • Workflow status web part gives error when going back to previous stage (using GO TO) in Project Server 2013 workflow

    Hi,
    Workflow status web part gives error when going back to previous stage (using GO TO) transition activity  in Project Server 2013 workflow.
    Please guide how to create a workflow which restarts from a desired stage.

    Thanks for your prompt reply....
    It gives following error
    Workflow Status
    This Web Part was unable to load.
    Information that may be useful in solving this problem was written to the Unified Logging Service (ULS) log on the Project Web App with the following ID: e95a9c9c-1f68-90d7-0a3e-5951df70fec6
    For more information, contact your Project Web App administrator.
    what do you mean to restart the Project Server 2013 with different project name, please elaborate....

Maybe you are looking for

  • DVD drive troubleshooting

    I have a tough problem with the DVD drive on my powerbook. Maybe one of you Apple guys would be able to point me in the right direction. I'm mostly new to Macs, myself, being a Linux/PC user. I figured I'd get try out Macs. I got this old Titanium Po

  • Please clarify the accounting entries

    Hi all, Please clarify the accounting entries. At the final stage of production confirmation entry will be inventory debit change in stock finished goods credit then at the time of sales while doing PGI accounting entry will be cogs debit inventory c

  • How to see the Table Names & Field Names by other than F1 help

    Hi Experts    How to see the Table Names & Field Names by other than F1 help, & How to see the List of MM Table Names. Rgds

  • Any example for a MFC, WTL or Win32 without Measurement Studio?

    It seems that NI wants you buy their Measurement Studio which can easily cost you a fortune. I am looking around a simple example for MFC, WTL without touching the measurement studio. But if you do not have measurement studio, NI only gives you very

  • RPD Modelling - Aggregate tables

    Hello, I have two facts which are Actuals and Budgets. F_Actuals - Month level Data, Date Fk being Date_WID(So it has data only for the first of the month) F_Budget - Day level Data, FK being Date_WID Dim_Date - Day, PK being Date_WID I have created