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

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)

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

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

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

  • Web container session setting and AM session setting

    We have access manager deployed on a sun appserver 9.1. Just wondering if Access Manager making use of the session properties setting on the instance/domain web container configuration? How is the session timeout at the web container level going to impact the Access Manager in performance?
    Thanks,
    Mo

    Brenden,
    what about the prepare session method on the AM. If you override this then after the call to super class you should be in an after connect. In my VPD examples I use this method to set the VPD application context getting the username from getUserPrincipal on teh Am
    Frank

  • Making Effective Use of the Hybrid Cloud: Real-World Examples

    May 2015
    Explore
    The Buzz from Microsoft Ignite 2015
    NetApp was in full force at the recent Microsoft Ignite show in Chicago, and it was clear that NetApp's approach to hybrid cloud and Data Fabric resonated with the crowd. NetApp solutions such as NetApp Private Storage for Cloud are solving real customer problems.
    Hot topics at the NetApp booth included:
    OnCommand® Shift. A revolutionary technology that allows you to move virtual machines back and forth between VMware and Hyper-V environments in minutes.
    Azure Site Recovery to NetApp Private Storage. Replicate on-premises SAN-based applications to NPS for disaster recovery in the Azure cloud.
    Check out the following blogs for more perspectives:
    Microsoft Ignite Sparks More Innovation from NetApp
    ASR Now Supports NetApp Private Storage for Microsoft Azure
    Four Ways Disaster Recovery is Simplified with Storage Management Standards
    Introducing OnCommand Shift
    SHIFT VMs between Hypervisors
    Infront Consulting + NetApp = Success
    Richard Treadway
    Senior Director of Cloud Marketing, NetApp
    Tom Shields
    Senior Manager, Cloud Service Provider Solution Marketing, NetApp
    Enterprises are increasingly turning to cloud to drive agility and closely align IT resources to business needs. New or short-term projects and unexpected spikes in demand can be satisfied quickly and elastically with cloud resources, spurring more creativity and productivity while reducing the waste associated with over- or under-provisioning.
    Figure 1) Cloud lets you closely align resources to demand.
    Source: NetApp, 2015
    While the benefits are attractive for many workloads, customer input suggests that even more can be achieved by moving beyond cloud silos and better managing data across cloud and on-premises infrastructure, with the ability to move data between clouds as needs and prices change. Hybrid cloud models are emerging where data can flow fluidly to the right location at the right time to optimize business outcomes while providing enhanced control and stewardship.
    These models fall into two general categories based on data location. In the first, data moves as needed between on-premises data centers and the cloud. In the second, data is located strategically near, but not in, the cloud.
    Let's look at what some customers are doing with hybrid cloud in the real world, their goals, and the outcomes.
    Data in the Cloud
    At NetApp, we see a variety of hybrid cloud deployments sharing data between on-premises data centers and the cloud, providing greater control and flexibility. These deployments utilize both cloud service providers (CSPs) and hyperscale public clouds such as Amazon Web Services (AWS).
    Use Case 1: Partners with Verizon for Software as a Service Colocation and integrated Disaster Recovery in the Cloud
    For financial services company BlackLine, availability, security, and compliance with financial standards is paramount. But with the company growing at 50% per year, and periodic throughput and capacity bursts of up to 20 times baseline, the company knew it couldn't sustain its business model with on-premises IT alone.
    Stringent requirements often lead to innovation. BlackLine deployed its private cloud infrastructure at a Verizon colocation facility. The Verizon location gives them a data center that is purpose-built for security and compliance. It enables the company to retain full control over sensitive data while delivering the network speed and reliability it needs. The colocation facility gives Blackline access to Verizon cloud services with maximum bandwidth and minimum latency. The company currently uses Verizon Cloud for disaster recovery and backup. Verizon cloud services are built on NetApp® technology, so they work seamlessly with BlackLine's existing NetApp storage.
    To learn more about BlackLine's hybrid cloud deployment, read the executive summary and technical case study, or watch this customer video.
    Use Case 2: Private, Nonprofit University Eliminates Tape with Cloud Integrated Storage
    A private university was just beginning its cloud initiative and wanted to eliminate tape—and offsite tape storage. The university had been using Data Domain as a backup target in its environment, but capacity and expense had become a significant issue, and it didn't provide a backup-to-cloud option.
    The director of Backup turned to a NetApp SteelStore cloud-integrated storage appliance to address the university's needs. A proof of concept showed that SteelStore™ was perfect. The on-site appliance has built-in disk capacity to store the most recent backups so that the majority of restores still happen locally. Data is also replicated to AWS, providing cheap and deep storage for long-term retention. SteelStore features deduplication, compression, and encryption, so it efficiently uses both storage capacity (both in the appliance and in the cloud) and network bandwidth. Encryption keys are managed on-premises, ensuring that data in the cloud is secure.
    The university is already adding a second SteelStore appliance to support another location, and—recognizing which way the wind is blowing—the director of Backup has become the director of Backup and Cloud.
    Use Case 3: Consumer Finance Company Chooses Cloud ONTAP to Move Data Back On-Premises
    A leading provider of online payment services needed a way to move data generated by customer applications running in AWS to its on-premises data warehouse. NetApp Cloud ONTAP® running in AWS proved to be the least expensive way to accomplish this.
    Cloud ONTAP provides the full suite of NetApp enterprise data management tools for use with Amazon Elastic Block Storage, including storage efficiency, replication, and integrated data protection. Cloud ONTAP makes it simple to efficiently replicate the data from AWS to NetApp FAS storage in the company's own data centers. The company can now use existing extract, transform and load (ETL) tools for its data warehouse and run analytics on data generated in AWS.
    Regular replication not only facilitates analytics, it also ensures that a copy of important data is stored on-premises, protecting data from possible cloud outages. Read the success story to learn more.
    Data Near the Cloud
    For many organizations, deploying data near the hyperscale public cloud is a great choice because they can retain physical control of their data while taking advantage of elastic cloud compute resources on an as-needed basis. This hybrid cloud architecture can deliver better IOPS performance than native public cloud storage services, enterprise-class data management, and flexible access to multiple public cloud providers without moving data. Read the recent white paper from the Enterprise Strategy Group, “NetApp Multi-cloud Private Storage: Take Charge of Your Cloud Data,” to learn more about this approach.
    Use Case 1: Municipality Opts for Hybrid Cloud with NetApp Private Storage for AWS
    The IT budgets of many local governments are stretched tight, making it difficult to keep up with the growing expectations of citizens. One small municipality found itself in this exact situation, with aging infrastructure and a data center that not only was nearing capacity, but was also located in a flood plain.
    Rather than continue to invest in its own data center infrastructure, the municipality chose a hybrid cloud using NetApp Private Storage (NPS) for AWS. Because NPS stores personal, identifiable information and data that's subject to strict privacy laws, the municipality needed to retain control of its data. NPS does just that, while opening the door to better citizen services, improving availability and data protection, and saving $250,000 in taxpayer dollars. Read the success story to find out more.
    Use Case 2: IT Consulting Firm Expands Business Model with NetApp Private Storage for Azure
    A Japanese IT consulting firm specializing in SAP recognized the hybrid cloud as a way to expand its service offerings and grow revenue. By choosing NetApp Private Storage for Microsoft Azure, the firm can now offer a cloud service with greater flexibility and control over data versus services that store data in the cloud.
    The new service is being rolled out first to support the development work of the firm's internal systems integration engineering teams, and will later provide SAP development and testing, and disaster recovery services for mid-market customers in financial services, retail, and pharmaceutical industries.
    Use Case 3: Financial Services Leader Partners with NetApp for Major Cloud Initiative
    In the heavily regulated financial services industry, the journey to cloud must be orchestrated to address security, data privacy, and compliance. A leading Australian company recognized that cloud would enable new business opportunities and convert capital expenditures to monthly operating costs. However, with nine million customers, the company must know exactly where its data is stored. Using native cloud storage is not an option for certain data, and regulations require that the company maintain a tertiary copy of data and retain the ability to restore data under any circumstances. The company also needed to vacate one of its disaster-recovery data centers by the end of 2014.
    To address these requirements, the company opted for NetApp Private Storage for Cloud. The firm placed NetApp storage systems in two separate locations: an Equinix cloud access facility and a Global Switch colocation facility both located in Sydney. This satisfies the requirement for three copies of critical data and allows them to take advantage of AWS EC2 compute instances as needed, with the option to use Microsoft Azure or IBM SoftLayer as an alternative to AWS without migrating data. For performance, the company extended its corporate network to the two facilities.
    The firm vacated the data center on schedule, a multimillion-dollar cost avoidance. Cloud services are being rolled out in three phases. In the first phase, NPS will provide disaster recovery for the company's 12,000 virtual desktops. In phase two, NPS will provide disaster recover for enterprise-wide applications. In the final phase, the company will move all enterprise applications to NPS and AWS. NPS gives the company a proven methodology for moving production workloads to the cloud, enabling it to offer new services faster. Because the on-premises storage is the same as the cloud storage, making application architecture changes will also be faster and easier than it would be with other options. Read the success story to learn more.
    NetApp on NetApp: nCloud
    When NetApp IT needed to provide cloud services to its internal customers, the team naturally turned to NetApp hybrid cloud solutions, with a Data Fabric joining the pieces. The result is nCloud, a self-service portal that gives NetApp employees fast access to hybrid cloud resources. nCloud is architected using NetApp Private Storage for AWS, FlexPod®, clustered Data ONTAP and other NetApp technologies. NetApp IT has documented details of its efforts to help other companies on the path to hybrid cloud. Check out the following links to lean more:
    Hybrid Cloud: Changing How We Deliver IT Services [blog and video]
    NetApp IT Approach to NetApp Private Storage and Amazon Web Services in Enterprise IT Environment [white paper]
    NetApp Reaches New Heights with Cloud [infographic]
    Cloud Decision Framework [slideshare]
    Hybrid Cloud Decision Framework [infographic]
    See other NetApp on NetApp resources.
    Data Fabric: NetApp Services for Hybrid Cloud
    As the examples in this article demonstrate, NetApp is developing solutions to help organizations of all sizes move beyond cloud silos and unlock the power of hybrid cloud. A Data Fabric enabled by NetApp helps you more easily move and manage data in and near the cloud; it's the common thread that makes the uses cases in this article possible. Read Realize the Full Potential of Cloud with the Data Fabric to learn more about the Data Fabric and the NetApp technologies that make it possible.
    Richard Treadway is responsible for NetApp Hybrid Cloud solutions including SteelStore, Cloud ONTAP, NetApp Private Storage, StorageGRID Webscale, and OnCommand Insight. He has held executive roles in marketing and engineering at KnowNow, AvantGo, and BEA Systems, where he led efforts in developing the BEA WebLogic Portal.
    Tom Shields leads the Cloud Service Provider Solution Marketing group at NetApp, working with alliance partners and open source communities to design integrated solution stacks for CSPs. Tom designed and launched the marketing elements of the storage industry's first Cloud Service Provider Partner Program—growing it to 275 partners with a portfolio of more than 400 NetApp-based services.
    Quick Links
    Tech OnTap Community
    Archive
    PDF

    Dave:
    "David Scarani" <[email protected]> wrote in message
    news:3ecfc046$[email protected]..
    >
    I was looking for some real world "Best Practices" of deploying J2EEapplications
    into a Production Weblogic Environment.
    We are new at deploying applications to J2EE application servers and arecurrently
    debating 2 methods.
    1) Store all configuration (application as well as Domain configuration)in properties
    files and Use Ant to rebuild the domain everytime the application isdeployed.
    I am just a WLS engineer, not a customer, so my opinions have in some
    regards little relative weight. However I think you'll get more mileage out
    of the fact that once you have created your config.xml, checking it into src
    control, versioning it. I would imagine that application changes are more
    frequent than server/domain configuration so it seems a little heavy weight
    to regenerate the entire configuration everytime an application is
    deployed/redeployed. Either way you should check out the wlconfig ant task.
    Cheers
    mbg
    2) Have a production domain built one time, configured as required andalways
    up and available, then use Ant to deploy only the J2EE application intothe existing,
    running production domain.
    I would be interested in hearing how people are doing this in theirproduction
    environments and any pros and cons of one way over the other.
    Thanks.
    Dave Scarani

  • Can I redirect to a completely different web container?

    Hi all
    How can I redirect from a Servlet to a completely different web container. For example let's say I have MyServlet running on machine A, and according to a parameter in the request, I would like to redirect to host B (to another location).
    I tried to use RequestDispatcher.forward, but it uses a relative location (even if I added the absolute URL, like http://hostb:port/new_location).
    Can I redirect to another container?
    thanks,

    Do you need to send the data to the second site as well? That's where you will run into problems.

  • Web Service without Web Container

    There is any framework for do a app with a Web Service Server without deploy in a Web Container?
    I want to do a Desktop app with Web Services and WSDL for a php client. I only had found examples for deploy on Tomcat and others.

    If I change this: @SOAPBinding(style = Style.RPC, parameterStyle=ParameterStyle.BARE)
    It have same error that in soap client for php:
    javax.xml.ws.soap.SOAPFaultException: Cannot find dispatch method for {http://schemas.xmlsoap.org/soap/encoding/}parametros
    at com.sun.xml.internal.ws.fault.SOAP11Fault.getProtocolException(SOAP11Fault.java:178)
    at com.sun.xml.internal.ws.fault.SOAPFaultBuilder.createException(SOAPFaultBuilder.java:111)
    at com.sun.xml.internal.ws.client.sei.SyncMethodHandler.invoke(SyncMethodHandler.java:108)
    at com.sun.xml.internal.ws.client.sei.SyncMethodHandler.invoke(SyncMethodHandler.java:78)
    at com.sun.xml.internal.ws.client.sei.SEIStub.invoke(SEIStub.java:107)
    at $Proxy53.usuarioSaldo(Unknown Source)
    at trservidor.TRServidorView.<init>(TRServidorView.java:128)
    at trservidor.TRServidorApp.startup(TRServidorApp.java:19)
    at org.jdesktop.application.Application$1.run(Application.java:171)
    at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
    at java.awt.EventQueue.dispatchEvent(EventQueue.java:597)
    at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
    at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
    at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)

Maybe you are looking for