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.

Similar Messages

  • 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

  • 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.

  • 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.

  • 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

  • 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)

  • 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/

  • 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.

  • 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.

  • 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

  • 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

  • Access Web Dynpro application on different WAS ??????????

    Hi All,
    Current Scenario -
    We have deployed ESS & MSS Business package on one WAS and the iviews are present on another WAS.We have created a Dedicated R/3 system which is pointing to the WAS where these packages are deployed.
    All these things are working fine i.e. once the user maps the id pswd it directly runs the Web Dynpro applications in the iviews.
    That means, even if application is running on one WAS, and the user personalises data on another WAS, it still retrieves the credentials and shows the appropriate results for ESS MSS Packages.
    Query-
    Now i need to implement the same scenario in my Web Dynpro application
    Steps
    1) I have the WD application running on one WAS and portal on another
    2) In portal there is a R/3 system created
    3) The Web Dynpro application needs to know if the user has personalised mapping against that system created on portal(other WAS)
    4) If yes show him the home page else take him to the login page.
    Just as it is implemented for ESS MSS Packages.
    How can i pass the mapped data to the Web Dynpro iview ?
    Thanks and Regards,
    Samta Nichani

    Amol,
    as this questions existed twice, I've deleted one.
    As roles are in the UME, you can access them. But why do you want to do this? You could login to that user, but then the question is what you want to do....
    Regards,
    Benny

  • Using local session bean interface from web container using EJB 3.0

    Hi,
    How can you use a local session bean interface from Java (rather than data controls) in a web container using EJB 3.0?
    I can use a remote interface by looking up InitialContext, but I can't find a local interface this way (even from another session EJB). I can use a local interface from an EJB using annotation "EJB", but as I understand, this is not available in the web container.
    If I try to add an ejb-jar.xml file, these seems to mess up by project...
    Hope you can help.
    Roger

    The portable way to retrieve an EJB reference in Java EE is to either inject it or look it up via the
    component's private naming environment. The simplest way is :
    @EJB
    private DocumentManager dm;
    The global JNDI name is only used as an implementation specific way to uniquely assign an
    identifier to a specific Remote EJB. It's best for this not to appear directly in the source code.
    There's more on global JNDI names in our EJB FAQ :
    https://glassfish.dev.java.net/javaee5/ejb/EJB_FAQ.html
    The alternative to annotations is to use an ejb-ref to declare the ejb dependency. The ejb-ref
    is declared in the standard deployment descriptor corresponding to the component doing the
    lookup. Each ejb-ref has an ejb-ref-name, e.g. <ejb-ref-name>DM_ref</ejb-ref-name>
    The code looks up the ejb-ref-name relative to the java:comp/env namespace to retrieve the
    EJB reference.
    DocumentManager dm = (DocumentManager)
    new InitialContext().lookup("java:comp/env/DM_ref");

  • ServerSocket(TCP/IP) listening in the web container part

    So, if I implement the ServerSocket(TCP/IP) listening in the web container part (Websphere), what is the best way to do this?
    I need to monitor socket state and statistics from browser.
    When I receive message from socket, I must read something from database and send as response to client (meaning I need to create my own thread to do this).
    Solution:
    - to have one servlet with serverSoket listener in it or
    - during web application statup to start my own thread with serverSoket listener
    - or....
    Also there is a problem that websphere write warning when i try do use DB connection from thread I have created!
    Any suggestion?

    hi,
    do you use websphere? version?
    More details:
    http://www.javaranch.com/newsletter/200403/AsynchronousProcessingFromServlets.html
    According to a Technical note from WebSphere support "If a Servlet is spinning its own threads and accessing a database, the J2EE specification is not clear on this, so WebSphere Application Server 5.0 will allow it at this time. IBM is working with Sun to clarify this in the specification, so eventually (i.e. J2EE 1.4) spun threads from a Servlet accessing a database outside of a transaction will not be supported either". Later the same tech note states "Customers should consider changing their application to comply with the J2EE specification."
    and check this
    http://www-1.ibm.com/support/docview.wss?uid=swg21121449

  • Implementing cache for dropdown values in Web Dynpro Iview

    Hi All,
             I am currently in the processing of enhancing a web dynpro application which contains among other things around 15 drop down boxes. The values in these drop down boxes are coming from oracle database and these values change occasionally.
            To optimize the response time, I have implemented simple caching machanism using static  variable in plain java class. The objective is to retrieve the values for the first time from oracle db and use the same datastructure for subsequent calls. Though I have found that the number of calls to the database reduced significantly I am facing some problem understanding and implementing the cache refresh behaviour.
          I want to implement a cache refresh machanism for every 12 hours.
        Solutions tried.
                   Creating a thread to refresh the cache for every 12 hours.
                   Creating a timer for refreshing the cache for every 12 hours.
        Problems encountered :
        1.  Is it appropriate to use threads in a web dynpro app?
        2.  What I have observed is that  the thread (I have created a daemon thread) is alive even after I have deployed a new copy of the code.  When I deploy a new code is it not supposed to remove all copies from the memory?
           If using a daemon thread is appropriate, What is the web dynpro
              framework's class loading behavior when a new copy of code is deployed?
             Does it completely unload existing classes (there by killing the daemon thread
                   created in previous deployment)?
       3. Assuming that we have found suitable solution for thread issues, what would  happen when the application is deployed on a cluster? Can we send a message to
            all the nodes in the cluster?
    I would like to understand what other developers has done in these kind of situations. Your experience and insight will be valuable and help me decide to implement caching or not in  the first place.   
    Thanks in advance.
    Regards
    Pallayya Batchu

    Pallayya,
    <i>1. Is it appropriate to use threads in a web dynpro app?</i>
    Not recommended as with any J2EE application
    <i>2. What I have observed is that the thread (I have created a daemon thread) is alive even after I have deployed a new copy of the code. When I deploy a new code is it not supposed to remove all copies from the memory?</i>
    Re-deployment doesn't mean stopping all user spawned threads. It just causes unloading of classes if there are no hard references from anything but deployed application. In your case, there are probably references from Thread/Runnable so your previous version is not unloaded on redeployment.
    <i>3. Assuming that we have found suitable solution for thread issues, what would happen when the application is deployed on a cluster? Can we send a message to all the nodes in the cluster?</i>
    Probably you can, probably you cannot. Even if you can it would be complex.
    My advise -- abandon threads altogether, use real cache instead:
    package com.yourcompany.yourapp.utils;
    import java.util.HashMap;
    import java.util.Map;
    public class ValueHelpCache {
      private static class Entry {
        long lastLoadTime;
        Map  payload;
        Entry(final Map payload) {
          this.payload = payload;
          this.lastLoadTime = System.currentTimeMillis();
      final private Map _entries = new HashMap();
      private ValueHelpCache() {}
      synchronized public Map getValueHelp(final String valuyeHelpKey) {
         Entry entry = (Entry)_entries.get(valuyeHelpKey);
         if ( entry == null) {
           entry = new Entry( loadValueHelpFromDatabase(valuyeHelpKey) );
           _entries.put(valuyeHelpKey, entry);
         } else {
           final long now = System.currentTimeMillis();
           if ( now - entry.lastLoadTime > ENTRY_TTL ) {
             entry.payload = loadValueHelpFromDatabase(valuyeHelpKey);
             entry.lastLoadTime = now;
        return entry.payload;
      private Map loadValueHelpFromDatabase(final String valuyeHelpKey) {
        /* @TODO implement loading values from database */
        return null;
      public static ValueHelpCache getInstance() { return INSTANCE; }
      final public static long ENTRY_TTL = 12 * 60 * 60 * 1000;
      final private static ValueHelpCache INSTANCE = new ValueHelpCache();
    This way client code tracks itself what entries are stale and need to be reloaded. No threads at all and no problems in cluster. You may alter time tracking mechanism to reload at given time of day, say at 12AM and 12PM -- just use java.util.Calendar and change code accordingly.
    Valery Silaev
    SaM Solutions
    http://www.sam-solutions.net

Maybe you are looking for

  • XMLP Desktop 5.6.2 vs BI Publisher template builder for word?

    Hi, Is anybody know what's the difference betweent these two product? When i installed XMLP desktop 5.6.2 i could see option for SQL and Report wizard under Data tab. But in BI publisher template builder i can see only XML data and XML schema under D

  • USB overdrive not recognising Logitech Cordless Rumble Pad in the status?

    Hello, I just got GamePad Companion for my mbp to play Max Payne 2 (Intel Crossover Version) ...the keyboard and mouse for it runs smooth and fine but when I try using my gamepad with Gamepad Companion, it gets super slow and not all the buttons work

  • Exclude http headers from reponse??

    Hi all, I post data to a server and get response[in xml] back like this Socket theSock = new Socket(serverhost,80); PrintStream ps = new PrintStream(theSock.getOutputStream()); ps.println("POST /url HTTP/1.0"); SAXBuilder builder = new SAXBuilder();

  • In support whether we do data transfer or not?

    hi experts, i heard from my friend, that all the data transfers will be completed before the go live and no data transfer will take place after that or in support. so i have doubt regarding this. whether in support project will there be any of data t

  • (SOLVED) Unable to launch Nicotine-Plus

    Hey I'm unable to launch Nicotine-Plus. When I try to launch it through the command line it says: bash: nicotine: command not found And when I try launching it by clicking on the icon it says: Could not launc "Nicotine-Plus" Failed to execute child p