Cookies in XML applications?

Sorry for the Crossposting this sub discussions XML-application as well, turned out there's not much business so I could be better from here...

In the Cisco application developer notes it says cookies are supported, but I am unable to get my SPA504G (7.4.6) to return the cookie I put, that's why he ends up creating a new session for each request. Cookies are based on the SPA500 series when using XML services or that is yet to come? Page 5-5 in the document mentions that cookies should work.

Thanks in advance!

This problem will be fixed in the next version.  Thank you.

Tags: Cisco Support

Similar Questions

  • Re-entry FDM of XML application does not remove deleted objects/documents

    I've migrated our application environment the following environment FDM, by exporting the FDM application in the environment from the source to an XML file and then import the XML of FDM application file in the target environment. It seemed to work very well.

    After a few updates were then applied to the source environment, I re-exported the FDM application in an XML file and this reimported in environmental targets.

    However, I noticed that:
    -Import Scripts that have been deleted from the source application is still in the target application.
    -The mappings that have been deleted from the source application is still in the target application.
    -Extra maps that have been added to the source application have been added to the target application.

    So we have mappings duplicate in several tables and scripts that must have been deleted in the target environment.

    It seems that the process of "Import" is rather an update, rather than a drop and replace it. There's no option "replace" on the import process. Please can someone tell how should correctly migrate a FDM application between environments? At present, it seems to me that the whole application will have to be completely abandoned or removed (including the database/Oracle SQL schema) and re-imported all over again from scratch.

    Surely, there must be a better method?

    No, there isn't a better method. Also the import of a file of xml application update on an existing application cannot be guaranteed to provide the expected results, it is not designed for incremental updates. Depending on what you want to migrate/upgrade, you can either export to Excel in the source and import it back into the target, or for items such as scripts you can just copy the directories on the target. Default it is good old updates manual... enjoy ;-)

    Or you can opt for the nuclear option, you mentioned at the end of your post!

  • XML application and blackberry

    Hello;

    IAM develop an application that manipulate an XML from java blackberry applications, I have a few textField and I want to add the container of these fields in a file xml as a new tags, and I want to change the doc added to likely he fields is added in the same texyField I'll Likely and save changes to the xml file I made somes codes but it's not working if there is no tutorial or the method that works in BB request can we just send it to me, I'm stuck at this step.

    Thank you very much for help

    Hello. This forum exists to disturb us, so don't be sorry!

    Skimming just your code, I think that the line:

    CFile = (FileConnection) Connector.open ("dat.xml", Connector.READ_WRITE, true);

    may be causing the exception. Connector.open method requires the first argument a string in the format:

    {schema of}: [{target}] [{parms}]

    where {} is the name of a Protocol and is required. Your argument, 'dat.xml', is not a plan. Since you are built on a FileConnection, the Protocol should be 'leader '. Also, the target must be an absolute path name. A typical target for a file that is stored in the memory of the unit would be:

    'file:///store/home/user/dat.xml '.

    To the SD card, a typical target would be:

    'file:///SDCard/BlackBerry/dat.xml '.

    You can determine the roots of system file using FileSystemRegistry.listRoots ().

  • appId support in XML applications?

    The part Application handles events of the Cisco XML App Developer Guide applies to the SPA500 series? I'm specifically looking for closing one

    App by pressing a specific key (outputApp: Close: 1:2:app / id4, this in an CiscoIPPhoneMenu object.) But when you press the button it turns black and phone hangs. I want the phone to return to the "normal" screen when you press this button, and close the application, if the app events are not supported, is there another way to do this?

    Thanks in advance!

    Dear Sir;

    Please try this one:

      
      ExitName >
  • What categories are there for my XML application?

    What are the possible categories for my application?

    Core.Games is a, what else?

    Thank you

    I think the only other option available is core.media

    EDIT: just a follow-up to - here is the confirmation:

    http://docs.BlackBerry.com/en/developers/deliverables/37033/Hosting_your_virtual_goods_1254378_11.js...

  • Error when loading an XML document using a structured application

    Hello

    I try to load an XML document using a structured application defined in the default structapps.fm

    My code is shown, extracted from the sample code API FDK.

    Problem, I still got the same message:

    "Cannot find the file named e:\xml\AdobeFrameMaker10\file. Make sure that the file exists. "

    Where "e:\xml\AdobeFrameMaker10\" is my installation directory.

    So I guess that govern trying to find the structapps.fm file but can't find it.

    What else can we?

    Does anyone known how elements achieve this simple task using extendScript?

    Thanks for all comments, Pierre

    function openXMLFile (myLastFile) {}

    var filename = myLastFile.openDlg ("XML file choose...", "*.xml", false);

    If (filename! = null) {}

    / * Default Get open the properties. Back so it can not be affected. */

    var params = GetOpenDefaultParams();

    / * Set properties to open an XML document * /.

    / * Specify XML as the type of file to open * /.

    var i = GetPropIndex (params, Constants.FS_OpenAsType)

    params [i].propVal.ival = Constants.FV_TYPE_XML;

    / * Specify the XML application to use when opening the text.

    I have = GetPropIndex (params, Constants.FS_StructuredOpenApplication)

    params [i].propVal.sval = "myApp";

    I have = GetPropIndex (params, Constants.FS_FileIsOldVersion)

    params [i].propVal.ival = Constants.FV_DoOK

    I have = GetPropIndex (params, Constants.FS_FontNotFoundInDoc)

    params [i].propVal.ival = Constants.FV_DoOK

    I have = GetPropIndex (params, Constants.FS_FileIsInUse)

    params [i].propVal.ival = Constants.FV_DoCancel

    I have = GetPropIndex (params, Constants.FS_AlertUserAboutFailure)

    params [i].propVal.ival = Constants.FV_DoCancel

    / * The file structapps.fm that contains the specified app must have

    already been read. The default structapps.fm file is read when FrameMaker is

    open so this shouldn't be a problem if the application to use is

    listed in the structapps.fm fichier.*.

    var retParm = new PropVals()

    var fileObj = Open (filename, params, retParm);

    return fileObj

    } else {}

    Returns a null value.

    }

    }

    Stone,

    According to the "myLastFile" object, the method openDlg may not yet exist (if the myLastFile object is not an object file, for example). And I do not see the myLastFile be necessary anyway, you present a dialog box to select a file to open. I recommend to use the global method of ChooseFile () instead. This will give you a file name as string in the notation of full path, or null if no file has been selected in the dialog box. I'm not sure of what your States of the return value for ChooseFile ExtendScript documentation, but if that differs from what I tell you here, won't the documentation. For example, if you change the first lines of your code by the following it should work:

    function () {} openXMLFile

    var filename = ChooseFile ('choose XML file... ("," ","*.xml", Constants.FV_ChooseSelect);

    While writing this, I see that Russ already gave you the same advice. Use the value of symbolic constant, I stated to use the ChooseFile dialog box to select a single file (it can also be used to select a directory or open a file - but you want control you the logon process). Note that this method allows you to define a directory for the dialog (second parameter). The ESTK autocompletion also gives you a fifth parameter "helplink" who is undocumented and may be ignored.

    Good luck

    Jang

  • Problem running the application as a public user process

    Hello

    I proceeded on request PL - SQL that returns data to fill a selection list on the page with optional values. This process is called with a call from the event on a date object. When authenticated, it returns correctly and when it is called as a public user it fails with this in the XML declaration:

    {XML Parsing Error: no element found the location: moz-nullprincipal:{1edfa653-8146-43f8-8ea9-a26d3e29cf8a} line number 1, column 1:

    The call should return this:
    <select>
    14-JUN-12 DSKYSTH
    <option value="Single">Single Rate = $10.00</option>
    </select>
    With the help of this event on the date element:
    onChange="get_AJAX_SELECT_FB(this,'P1_XBASIS');"
    call this code:
    function get_AJAX_SELECT_FB(pThis,pSelect){    
        var l_Return = null;   
        var l_Select = html_GetElement(pSelect);   
        var ajaxResult = new htmldb_Get(null,&APP_ID.,'APPLICATION_PROCESS=SetBasis',0);   
        ajaxResult.add('P1_ID',$v('P1_TOUR_CODE'));   
        ajaxResult.add('P1_XTD',pThis.value);   
        gReturn = ajaxResult.get('XML');   
    
        if(gReturn && l_Select){ 
    
            var options_Contents = gReturn.getElementsByTagName("option");
            l_Count = options_Contents.length;
              
           l_Select.length = 0; 
            for(var i=0; i<l_Count;i++){   
     
          var l_Opt_Xml = gReturn.getElementsByTagName("option"); 
    appendToSelect(l_Select, l_Opt_Xml.getAttribute('value'), l_Opt_Xml.firstChild.nodeValue)
    }
    }
    get = null;
    }

    function appendToSelect(pSelect, pValue, pContent) {  
    var l_Opt = document.createElement("option");
    l_Opt.value = pValue;
    if(document.all){ 
    pSelect.options.add(l_Opt);
    l_Opt.innerText = pContent;
    }else{  
    l_Opt.appendChild(document.createTextNode(pContent));
    pSelect.appendChild(l_Opt);
    }

    }
    When inspecting with Firebug I can only see a difference in the request headers between the public user and authenticated user where the cookie value is -1 on the public user.
    
    Public User:
    
    *Accept     text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8*
    *Accept-Encoding     gzip, deflate*
    *Accept-Language     en-us,en;q=0.5*
    *Connection     keep-alive*
    *Content-Length     181*
    *Content-Type     application/x-www-form-urlencoded; charset=UTF-8*
    *Cookie     LOGIN_USERNAME_COOKIE=roger; WWV_PUBLIC_SESSION_129=5245818196882971; ORA_WWV_REMEMBER_UN=ROGER:PTX-DEV; ORA_WWV_USER=A29423F6BE2220D0; WWV_CUSTOM-F_969127929331871_129=-1*
    *Host     horta.prot.com.au:8080*
    *Referer     http://horta.prot.com.au:8080/apex/f?p=129:1:547226222832513*
    *User-Agent     Mozilla/5.0 (Windows NT 5.1; rv:13.0) Gecko/20100101 Firefox/13.0*
    
    Authenticated user:
    
    *Accept     text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8*
    *Accept-Encoding     gzip, deflate*
    *Accept-Language     en-us,en;q=0.5*
    *Connection     keep-alive*
    *Content-Length     182*
    *Content-Type     application/x-www-form-urlencoded; charset=UTF-8*
    *Cookie     LOGIN_USERNAME_COOKIE=roger; ORA_WWV_REMEMBER_UN=ROGER:PTX-DEV; ORA_WWV_USER=A29423F6BE2220D0; WWV_CUSTOM-F_969127929331871_129=A29423F6BE2220D0*
    *Host     horta.prot.com.au:8080*
    *Referer     http://horta.prot.com.au:8080/apex/f?p=129:1:1687129548869672:GET_TYPE:NO::P1_SEARCH_CAT,P1_XTD,P1_ADULT,P1_SEARCH_CODE:CABLE,,,*
    *User-Agent     Mozilla/5.0 (Windows NT 5.1; rv:13.0) Gecko/20100101 Firefox/13.0*
    
    I'm it's probably something stupid that I'm doing and hope someone can help
    
    Roger                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        

    user4101020 wrote:
    Thank you, but my browser crashed and ended up with a double... I see that now, but the question remains unanswered.

    Close this message and wait for one response on the other.

  • Remote XML Dataprovider for the tree control

    Try to create a class of the tree instead of load application XML node list, to try to read from an external file called "nodes.xml". I tried to edit code snippets I've found from various sources and it's current iteration, I'm sure. Please advise on how to solve this problem!

    Note: In the XML itself I tried with and without the tags < mx:XMLList > wrapping, doesn't seem to work. Here is a link to a live demo: http://81.100.103.105/flex_dev/treeExample.html


    Thank you very much

    Alex, I was able to do the job of cleaning the XML file a little. Remove the XMLList and the? lines of xml, it looks like this:




















    FWIW, if the XML is static (that is to say, won't come running), then you can consider using the tag mx: Model. It has fewer resources than the URLLoader and it cooked the XML code in the SWF at compile time.

    HTH,
    Matt Horn
    Flex docs

  • ADF 11 g application on Weblogic 10.3 + JDBC for Oracle XE connection

    Hello! I use Jdev 11 g (not tp4) and I applicarion Adf using BC4J, everything in jdev exists to connect to the DB.
    When I run my application in Jdev, it starts Weblogic and deploys my app. And everything works fine!

    When I want to run my Weblogic as stand-alone server using the console of Administration Weblogic domain, deploy my application in the form of archive of WAR

    before you deploy, I was created JDBC DataSource in Weblogic server, using Weblogic webinterface (connection test is OK)

    and now, when I run my application, enter the Url of the application in internet explorer, I see exception has ariced, she is the stack trace

    {color: #0000ff} & lt; October 17, 2008 18:30:49 IS & gt; & lt; Error & gt; & lt; HTTP & gt; & lt; xc002600109 & gt; & lt; AdminServer & gt; & lt; ASSETS ExecuteThread: '21' for queue: "(self-adjusting) weblogic.kernel.Default" & gt; & lt; & lt; Core of WLS & gt; & gt; & lt; 1224257449182 & gt; & lt; BEA-101017 & gt; & lt; [weblogic.servlet.internal.WebAppServletContext@1410e0d - appName: 'nano', name: 'nano.war', context-path: ' / nano', spec-version: ' 2.5 ', request: [weblogic.servlet.internal.ServletRequestImpl@8f5e03 ']
    GET /nano/faces/untitled3.jsp?_adf.ctrl-state=1797442774_7 HTTP/1.1
    User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en - us; RV:1.9.0.3) Gecko/2008092417 Firefox/3.0.3
    Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
    Accept-Language: en - us, en; q = 0.5
    Accept-Encoding: gzip, deflate
    Accept-Charset: ISO-8859-1, utf-8; q = 0.7, *; q = 0.7
    Keep-Alive: 300
    Connection: keep-alive
    Cookie: oracle.uix = 0 ^ ^ GMT + 3:00; JSESSIONID = wShvL4vT9h40V7TSNH9D84p3v4h48S992vJyWK6p0hnWflfZVpc2! 652912999; ADMINCONSOLESESSION = r440L4XpGDJhhX3G1slmFdSzV3xSH51xGzhy912nTnpP2Zv1yVrQ! 652912999
    Pragma: non-cache
    Cache-Control: no cache

    Root cause]] of ServletException.
    java.lang.NullPointerException
    at oracle.adf.model.bc4j.DCJboDataControl.findVariable(DCJboDataControl.java:2934)
    at oracle.adf.model.binding.DCVariableImpl.resolveSourceVariable(DCVariableImpl.java:69)
    at oracle.adf.model.binding.DCVariableImpl.getVariableKind(DCVariableImpl.java:162)
    at oracle.jbo.common.VariableManagerImpl.doGetVariables(VariableManagerImpl.java:125)
    at oracle.jbo.common.VariableManagerImpl.getVariablesOfKind(VariableManagerImpl.java:259)
    at oracle.jbo.common.VariableManagerImpl.getVariables(VariableManagerImpl.java:253)
    at oracle.jbo.common.VariableValueManagerImpl.doPassivateVariables(VariableValueManagerImpl.java:499)
    at oracle.jbo.common.VariableValueManagerImpl.getPassivatableVariables(VariableValueManagerImpl.java:439)
    at oracle.adf.model.binding.DCBindingContainer.buildFormToken(DCBindingContainer.java:4523)
    at oracle.adf.model.binding.DCBindingContainerState.buildStringBuffer(DCBindingContainerState.java:56)
    at oracle.adf.model.binding.DCBindingContainerState.toString(DCBindingContainerState.java:590)
    at oracle.adf.model.binding.DCBindingContainer.getStateToken(DCBindingContainer.java:4293)
    at oracle.adfinternal.controller.application.model.SaveStateTokenListener.afterPhase(SaveStateTokenListener.java:54)
    to oracle.adfinternal.controller.lifecycle.ADFLifecycleImpl$ PagePhaseListenerWrapper.afterPhase (ADFLifecycleImpl.java:529)
    at oracle.adfinternal.controller.lifecycle.LifecycleImpl.internalDispatchAfterEvent(LifecycleImpl.java:118)
    at oracle.adfinternal.controller.lifecycle.LifecycleImpl.dispatchAfterPagePhaseEvent(LifecycleImpl.java:166)
    to oracle.adfinternal.controller.faces.lifecycle.ADFPhaseListener$ PhaseInvokerImpl.dispatchAfterPagePhaseEvent (ADFPhaseListener.java:122)
    at oracle.adfinternal.controller.faces.lifecycle.ADFPhaseListener.afterPhase(ADFPhaseListener.java:68)
    at oracle.adfinternal.controller.faces.lifecycle.ADFLifecyclePhaseListener.afterPhase(ADFLifecyclePhaseListener.java:51)
    at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executePhase(LifecycleImpl.java:354)
    at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:203)
    at javax.faces.webapp.FacesServlet.service(FacesServlet.java:266)

    {color: #000000} I learned about deployment descriptors and I did some additional files and modified web.xml file:
    {color: #ff0000} web.xml:
    {color: #000000}... {color}
    {color} & lt; resource-Ref & gt;
    & lt; Description & gt; Nano Datasource & lt; / description & gt;
    & lt; RES-ref-name & gt;. Nano_DB_connection & lt; / res-ref-name & gt;.
    & lt; RES - type & gt; javax.sql.DataSource & lt; / res-type & gt;
    & lt; RES-auth & gt; Container & lt; / res-auth & gt;
    & lt; / resources-Ref & gt;

    {color: #ff0000} weblogic.xml: {color}
    & lt;? XML version = "1.0" encoding = "windows-1252"? & gt;
    & lt; WebLogic-web-app xmlns: xsi = "http://www.w3.org/2001/XMLSchema-instance" xsi: schemaLocation = "http://www.bea.com/ns/weblogic/weblogic-web-app.xsd" xmlns = "http://www.bea.com/ns/weblogic/weblogic-web-app" & gt;
    & lt; description of resources & gt;
    & lt; RES-ref-name & gt;. Nano_DB_connection & lt; / res-ref-name & gt;.
    & lt; jndi name & gt;. Nano_DB_connection & lt; / jndi name & gt;.
    & lt; / description of resources & gt;
    & lt; / weblogic-web-app & gt;


    {color: #ff0000} weblogic - jdbc.xml: {color}
    & lt;? XML version = "1.0" encoding = "windows-1252"? & gt;
    & lt; database jdbc xmlns: xsi = "http://www.w3.org/2001/XMLSchema-instance" xsi: schemaLocation = "http://www.bea.com/ns/weblogic/weblogic-jdbc.xsd" xmlns = "http://www.bea.com/ns/weblogic/jdbc-data-source" & gt;
    & lt; name & gt; Nano_DB_connection & lt; / name & gt;.
    & lt; JDBC-driver-params & gt;
    & lt; URL & gt; 10.5.25.169 & lt; / url & gt;
    & lt; driver-name & gt; oracle.jdbc.OracleDriver & lt; / driver-name & gt;.
    & lt; Properties & gt;
    & lt; property & gt;
    & lt; name & gt; user & lt; / name & gt;.
    & lt; value & gt; chaosdb & lt; / value & gt;
    & lt; / property & gt;
    & lt; property & gt;
    & lt; name & gt; servername & lt; / name & gt;.
    & lt; value & gt; 10.5.25.169 & lt; / value & gt;
    & lt; / property & gt;
    & lt; property & gt;
    & lt; name & gt; PortNumber & lt; / name & gt;.
    & lt; value & gt; 1521 & lt; / value & gt;
    & lt; / property & gt;
    & lt; property & gt;
    & lt; name & gt; SID & lt; / name & gt;.
    & lt; value & gt; XE & lt; / value & gt;
    & lt; / property & gt;
    & lt; / Properties & gt;
    & lt; / jdbc-driver-params & gt;
    & lt; JDBC-data-source-params & gt;
    & lt; jndi name & gt;. Nano_DB_connection & lt; / jndi name & gt;.
    & lt; scope & gt; Application & lt; / scope & gt;
    & lt; / jdbc-data-source-params & gt;
    & lt; / source of data jdbc & gt;

    BC4J Model.JPX project says that bc4j using connection named Nano_DB_connection.
    in Weblogic has the same name of data source

    Question: how to link my application in weblogic to existed datasource/connection in weblogic?
    How Jdev deploys and configures Weblogic server, it works fine, but when I run THE SAME server manually, deploying application using JDEV running the application failed (see above the exception)

    Maybe I should use profile EAR instead of WAR, to deploy all connections and other things on weblogic?

    {color: #ff0000} please help! {color}


    {color} {color}

    Hello

    You have configured the module of your application to use a JDBC data source? To do this, right click the app module in the browser, select type from the dialog box that appears and Configurations change the connection to the JDBC Data Source and enter your data source name - which should be the same as the source of data created on the weblogic server.

    Also, I do not pretend you create an EAR file - that's what we tested and certified with. You can find more details in the chapter of deployment of the fusion Developer's guide: http://download.oracle.com/docs/cd/E12839_01/web.1111/b31974/deployment_topics.htm#CHDJJDDG.

    Hope this helps
    Blaise

  • Report all existing browser cookies

    I would like the list/report (in readable format), all witnesses residing on my PC Win XP, including the browser (s) applicable for each. Ideally, I would like to start such an application to report since the CMD Win line and save the results in a file with a timestamp embedded in the file name.
    OR
    Similarly, I would like to scan for & cookies all backup files on my PC at a specified location and time stamped file and have an app to open these files from backup of cookie in a readable way.

    I know that I can SEE the cookies from various applications, but it's tedious or impossible to back up and restore cookies for a site given (as opposed to a whole cookie file).
    And it's easy to make a mistake when cleaning cookies, deleting something good and bad.

    If any tool to backup/report/research/retrieve cookie would contribute to any recovery process.
    My search on the internet for such a tool will return no results there.

    Similar functions exist for bookmarks.
    I would find such a tool for Cookies.

    If anyone knows of such a tool of cookie, answer him.
    Please suggest not of workarounds that do not deal directly with the issue.

    Thank you, John

    Will be the Cookies Manager + add-on helps you not at all?

  • reproduce the error login name and after application crash

    Hello

    I have attached the code that generates the duplicate connection name error and after they crash the application.

    Note :-in app when you press tab 3 at that point they extract data and once you press tab 3 then app crash,.

    So please update me as soon as possible.

    Thank you

    Umang.

    Still awaiting response that you will find attached code or I also include the code here

    QML

    // Default empty project template
    import bb.cascades 1.0
    
    TabbedPane {
        id: tabMeniuNavigation
    
        //showTabsOnActionBar: true
        Tab {
            title: qsTr("All")
            id: tab1
            Page {
                Container {
                    // define tab content here
                    Label {
                        text: qsTr("Tab1")
                        horizontalAlignment: HorizontalAlignment.Center
                        textStyle {
                            base: SystemDefaults.TextStyles.TitleText
                        }
                    }
                }
            }
        }
        Tab {
            id: tab2
            title: qsTr("Tab2")
            Page {
                Container {
                    // define tab content here
                    Label {
                        text: qsTr("Tab2")
                        horizontalAlignment: HorizontalAlignment.Center
                        textStyle {
                            base: SystemDefaults.TextStyles.TitleText
                        }
                    }
                }
            }
        }
        Tab {
            id: tab3
            title: qsTr("Tab3")
            content: Page {
                Container {
                    ListView {
                        objectName: "otherNoteListView"
                    } // ListView
                }
            }
            onTriggered: {
                app.medicialListData();
            }
        }
        Tab {
            id: tab4
            title: qsTr("Tab4")
            Page {
                Container {
                    // define tab content here
                    Label {
                        text: qsTr("Tab 4")
                        horizontalAlignment: HorizontalAlignment.Center
                        textStyle {
                            base: SystemDefaults.TextStyles.TitleText
                        }
                    }
                }
            }
        }
        Tab {
            id: tab5
            title: qsTr("Tab5")
            Page {
                Container {
                    // define tab content here
                    Label {
                        text: qsTr("Tab5")
                        horizontalAlignment: HorizontalAlignment.Center
                        textStyle {
                            base: SystemDefaults.TextStyles.TitleText
                        }
                    }
                }
            }
        }
        onCreationCompleted: {
            // this slot is called when declarative scene is created
            // write post creation initialization here
            console.log("TabbedPane - onCreationCompleted()")
    
            // enable layout to adapt to the device rotation
            // don't forget to enable screen rotation in bar-bescriptor.xml (Application->Orientation->Auto-orient)
            OrientationSupport.supportedDisplayOrientation = SupportedDisplayOrientation.All;
        }
    }
    

    CPP

    // Default empty project template
    
    #include "FindMedicin.hpp"
    #include "customListMedicinitemfactory.h"
    
    #include 
    #include 
    #include 
    #include 
    
    using namespace bb::cascades;
    using namespace bb::data;
    
    FindMedicin::FindMedicin(bb::cascades::Application *app) :
            QObject(app) {
        // create scene document from main.qml asset
        // set parent to created document to ensure it exists for the whole application lifetime
        QmlDocument *qml = QmlDocument::create("asset:///main.qml").parent(this);
        qml->setContextProperty("app", this);
    
        // create root object for the UI
        root = qml->createRootObject();
        // set created root object as a scene
        app->setScene(root);
    }
    
    FindMedicin::~FindMedicin() {
    
        QSqlDatabase::removeDatabase(mDbNameWithPath);
        delete medicinListView;
        model->registerUserData();
    
    }
    
    QString FindMedicin::copyFileToDataFolder(const QString fileName) {
        // Since we need read and write access to the file, it has
        // to be moved to a folder where we have access to it. First,
        // we check if the file already exists (previously copied).
        QString dataFolder = QDir::homePath();
        QString newFileName = dataFolder + "/" + fileName;
        QFile newFile(newFileName);
    
        if (!newFile.exists()) {
            // If the file is not already in the data folder, we copy it from the
            // assets folder (read only) to the data folder (read and write).
            QString appFolder(QDir::homePath());
            appFolder.chop(4);
            QString originalFileName = appFolder + "app/native/assets/" + fileName;
            QFile originalFile(originalFileName);
    
            if (originalFile.exists()) {
                // Create sub folders if any creates the SQL folder for a file path like e.g. sql/quotesdb
                QFileInfo fileInfo(newFileName);
                QDir().mkpath(fileInfo.dir().path());
    
                if (!originalFile.copy(newFileName)) {
                    qDebug() << "Failed to copy file to path: " << newFileName;
                }
            } else {
                qDebug() << "Failed to copy file data base file does not exists.";
            }
        }
    
        return newFileName;
    }
    
    //Find Pharama
    void FindMedicin::medicialListData() {
        CustomListMedicinItemFactory *otherNoteItemFactory =
                new CustomListMedicinItemFactory();
        qDebug() << "MediaList Data Called.";
    
        // create a data model with sorting keys for firstname and lastname
        model = new GroupDataModel(QStringList() << "field1");
    
        mDbNameWithPath = copyFileToDataFolder("sql/FindMedicin.db");
    
        // load the sql data from contacts table
        SqlDataAccess sda(mDbNameWithPath);
    
        //sda = new SqlDataAccess(mDbNameWithPath, this);
        if (sda.hasError()) {
            DataAccessError err = sda.error();
            //DataAccessError* err = sda.error();
            qWarning() << "SQL error: type=" << err.errorType() << ": "
                    << err.errorMessage();
    
        }
        QVariant list = sda.execute("select * from medicin_detail");
        // add the data to the model
        qDebug() << list.value();
        model->setGrouping(ItemGrouping::None);
        model->insertList(list.value());
        // create a ListView control and add the model to the list
        medicinListView = root->findChild("otherNoteListView");
        medicinListView->setObjectName("");
        medicinListView->setDataModel(model);
        medicinListView->setListItemProvider(otherNoteItemFactory);
    }
    

    more code as an attachment.

  • Linking applications from an application

    What is the best way to make a link to an application of another?

    We have a series of games and want to cross their promotion.

    Another idea could be a link to AppWorld that shows all of our games.  The best way I can do that now on the PlayBook is looking for DifferenceGames.

    Is there a way to pull up AppWorld and do run and view a search result?

    Here's the URL schema. Pretty easy to use.

    appworld://content/1839
    
    RESPONSE
    HTTP/1.1 302 Moved Temporarily
    Server: AkamaiGHost
    Content-Length: 0
    Location: appworld://content/1839
    Date: Fri, 06 May 2011 16:54:54 GMT
    Connection: keep-alive
    
    REQUEST
    GET /webstore/content/1839 HTTP/1.1
    Host: appworld.blackberry.com
    User-Agent: Mozilla/5.0 (PlayBook; U; RIM Tablet OS 1.0.0; en-US) AppleWebKit/534.8+ (KHTML, like Gecko) Version/0.0.1 Safari/534.8+
    Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
    Accept-Language: en-us,en;q=0.8,en-gb;q=0.5,en-ca;q=0.3
    Accept-Encoding: gzip,deflate
    Accept-Charset: UTF-8,*
    Keep-Alive: 115
    Connection: keep-alive
    
  • Cannot change the name of the application to have spaces

    My problem:

    -J' created an application with a name that has no spaces (for example ThisIsMyApplication).  It relies very well, but when deployed on my device (debug or release), the name displayed under the icon on the home screen is without spaces.  This causes the name will be truncated.

    -I want to have spaces in the name of the application (for example this is my request), so that the name gets word wrapped under the icon on the device.

    I couldn't do that.  I tried:

    -in the bar - descrptor.xml, application tab, under the entry of text and Images, the name with spaces

    -in bar - descrptor.xml, change the entry (for example point id


    This is my Application

    but the name under the application icon is still the name without spaces.

    I hope someone knows how to do it properly, so I don't have to spend hours trying various changes.

    For example, in my bar - descrptor.xml:

    Would change the package name to have spaces do?

    Change the input everything show up references for spaces do?

    Change APP_NAME in my .pro file?

    Take the door label on the tag entry point as well.

  • Impossible to analyze the xml.aspx contained in the main.js.Iam get the following error"could not obtain XML document, and the connection has failed: status 500

    Impossible to analyze the xml.aspx contained in the main.js.Iam get the following error"could not obtain XML document, and the connection has failed: status 500

    My main.js resembles

    xmlDataSource var = {}
     
    URL: 'dcds. - symbianxml.aspx", etc. (sample).
     
    init: function() {}
    URL, successful reminder, the reminder of failure
    This.Connect (this.) (URL, this.responseHandler, this.failureHandler);
    },
     
    /**
    * Analyzes the XML document in an array of JS objects
    @param xmlDoc XML Document
    * @returns {table} array of objects of the device
    */
    parseResponse: {function (xmlDoc)}
        
    var chElements = xmlDoc.getElementsByTagName ("channel");
       
    channels of var = [];
      
    Console.log (chElements.Length);
      
    for (var i = 0; i)< chelements.length;="">
        
    var channel = {};
       
    for (var j = 0; j)< chelements[i].childnodes.length;="">
        
    var node = Sublst.ChildNodes(1).ChildNodes(0) chElements [i] [j];
                
    If (node.nodeType! = 1) {//not an element node}
    continue;
    }
           
    Channel [node. TagName] = node.textContent;
    }
       
    Channels.push (Channel);
    }
    Console.log (Channels.Length);
    return the strings;
    },
     
    /**
    Manages the response and displays the data from device web app
    @param xmlDoc
    */
    responseHandler: {function (xmlDoc)}
      
    var channel = this.parseResponse (xmlDoc);
    var markup = "";
       
    for (i = 0; i< channels.length;="">
       
    markup += this.generateHTMLMarkup (i, channels [i]);
    }
    document.getElementById("accordian").innerHTML = mark-up;
    },
     
    /**
    Generates HTML tags to insert in to the DOM Web App.
    * @index i, index of the device
    @param device, device object
    */
    /*
    generateHTMLMarkup: function (i, channel) {}
      
    var str ="";
    "Str += '.


    ' onclick =-"mwl.setGroupTarget ('#accordian ',' #items_" + i + "', 'ui-show ',' ui - hide');" + ".
    "mwl.setGroupTarget ('#accordian ',' item_title_ #" + i + "', 'ui-open', 'ui-farm'); Returns false; \ » > » ;
    "" Str += "" + channel ['name'] + ' ";
    "Str += '.
    ";
    "Str += '.
    ";
    "Str += '.
    "+" id: "+ channel ['id'] +" ' "
    ";
    "Str += '.
    "+" type: "+ channel ['type'] +" ' "
    ";
    "Str += '.
    "+" language: "+ channel ['language'] +" ' "
    ";
    "Str += '.
    «+ "bandwidth:" + "fast" channel + "»»
    ";
    "Str += '.
    "+" cellnapid: "+ channel ["cellnapid"] +". "
    ";
    "Str += '.
    «+ ' link: '+'start the video »»
    ";
    "Str += '.
    ";
    return str;
    },*/
    generateHTMLMarkup: function (i, channel) {}
       
    var str ="";
    "Str += '.
    ";
    str +=  "" +
    "" + channel ['name'] + ""+""
    ";
    "Str += '.
    «+ ' link: '+'start the video »»
    ";
         
    return str;

    },
     
    failureHandler: {function (reason)}
    document.getElementById("accordian").innerHTML = "could not get XML document.
    '+ reason;
    },
     
    /**
    Retrieves a resource XML in the given URL using XMLHttpRequest.
    @param url URL of the XML resource to retrieve
    @param called successCb, in the XML resourece is recovered successfully. Retrieved XML document is passed as an argument.
    @param failCb called, if something goes wrong. Reasons, in text format, is passed as an argument.
    */

    Connect: {function (url, successCb, failCb)
      
    var XMLHTTP = new XMLHttpRequest();
      
    XMLHTTP. Open ("GET", url, true);

    xmlhttp.setRequestHeader("Accept","text/xml,application/xml");
    xmlhttp.setRequestHeader ("Cache-Control", "non-cache");
    xmlhttp.setRequestHeader ("Pragma", "non-cache" "");
      
    var that = this;
    XMLHTTP.onreadystatechange = function() {}
       
    If (xmlhttp.readyState == 4) {}
        
    If (XMLHTTP. Status == 200) {}
         
    {if (!) XMLHTTP.responseXML)}
    try {}
    If server has not responded with good an XML MIME type.
    var domParser = new DOMParser();
    var xmlDoc = domParser.parseFromString(xmlhttp.responseText,"text/xml");
           
    successCb.call (that, xmlDoc);
           
    } catch (e) {}
    failCb.call (, "answer was not in an XML format.");
    }
              
    } else {}
    successCb.call (that, xmlhttp.responseXML);
    }
    } else {}
    failCb.call (this, "connection failed: status"+ xmlhttp.status ");
    }
    }
    };
    XMLHTTP. Send();
    }
    };

    Please see the content in main.js is fully analyzed.

    Forward for the solution to my request all members of the community...

  • How to read the text of an XML with the dom parser?

    Hi all

    It's my code. How will I be able to read the text inside the xml file using dom parser?

    my xml file is like this...



     
        LLEYTON
        Hewitt
        Australian
       
        1
        897
       

     


        André
        Agassi
        American
       
        2
        679
       

     

    which I stored in _xml.

    InputStream is = getClass () .getResourceAsStream (_xml);

    DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance ();

    DocumentBuilder db = dbf.newDocumentBuilder ();

    Doc document = db.parse (is);

    NodeList nl = doc.getElementsByTagName("*");

    for (int i = 0; i)< nl.getlength();="">

    {

    System.out.println ("node name" + nl.item (i) .getNodeName ());  Player, firstname, lastname, tennis o/p

    System.out.println ("node value" + nl.item (i) .getTextContent ());  o/p value null, null, null, null

    }

    I want the text in the first name should get displayed as "Lleyton" and any other text in other tags as Andre/Agassi/American/2/679

    You can install JDE and operates the samples, you will find XMLDEMO that will help you read XML application blackberry;

    good luck;

Maybe you are looking for

  • A lost or stolen the carrier to return phone

    Hello. Told me that my service provider cell under my iPhone as lost/stolen (Verizon) "suspends / disables" my device unusable by anyone she so my service and then add my IMEI number for a 'negative list' (aka 'black list'). I am told that only I am

  • Dynamic access policies - limited ASA 9.4?

    Hello Is there a maximum number of DAP supported by ASA 9.4 55XX? Cisco recommended a maximum of 100 to 9.1. Is it always true to 9.4? Thank you Patrick

  • Run EF6 Soft on customer environment

    HelloI want to launch my app on another dev environmentCurrently, my clients have instant client 11.2 installed without ODPCan I install driver managed to EF6 without removing the previous driver? (to use the previous settings and reduce the operatio

  • How can I get someone's phone in Adobe help me?

    How?

  • Query in days

    Dear gurus,I'm under query below for more than 20 hours now and it is still ongoing. SELECT clnt,sg_cd,bg_dt,end_dt,working_days (submit_dt, process_dt) AS working_daysOF prc_clmsWHERE sg_cd IN ('2', '3', '12', '15',' 16', ' 18')AND (TO_DATE('31-JAN-