IBM webMethods Hybrid Integration

IBM webMethods Hybrid Integration

Join this online group to communicate across IBM product users and experts by sharing advice and best practices with peers and staying up to date regarding product enhancements.



#Automation


#Applicationintegration
#webMethods
#Integration
 View Only
Expand all | Collapse all

storing selected item from combobox

webMethods Community Member

webMethods Community Member11/03/02 06:37 AM

webMethods Community Member

webMethods Community Member11/09/02 09:30 AM

webMethods Community Member

webMethods Community Member11/09/02 09:51 AM

  • 1.  storing selected item from combobox

    Posted 10/30/02 11:05 AM

    X-Application Version: 3.1.3
    Tamino Version : 3.1.1
    Platform : Win2k
    WebContainer : Tomcat 3.3a
    JDK Version : 1.3.1

    Hi
    xapp:select text=“${query$}” >
    <xapp:edit select=“/request/project-code” >

    </xapp:edit>
    </xapp:select>
    I want to store the selected Item from combobox into /request/project-code
    I use the code above but in all cases always the first item is stored !
    is it a correct code to do it or not ?

    LOVE

    [This message was edited by Christian Freytag on 11 Nov 2002 at 11:49.]
    X-Application Version: 4.1.1, 3.1.3
    Tamino Version : 4.1.1, 3.1
    Platform : Win2k, WinXP, Solaris, Linux, …
    WebContainer : Tamocat 4.1.1, Tomcat 3.3.1
    JDK Version : 1.4.1, 1.3.1

    [This message was edited by Admin on 06 May 2003 at 09:07.]


    #Tamino
    #API-Management
    #webMethods


  • 2.  RE: storing selected item from combobox

    Posted 10/30/02 12:14 PM

    Hi,

    you have switched the order: first edit, than select…
    <xapp:edit select=“/request/project-code” >
    <xapp:select text=“${query$}” >

    </xapp:select>
    </xapp:edit>

    Bye
    Thorsten
    X-Application Version: 4.1.1, 3.1.3
    Tamino Version : 4.1.1, 3.1
    Platform : Win2k, WinXP, Solaris, Linux, …
    WebContainer : Tamocat 4.1.1, Tomcat 3.3.1
    JDK Version : 1.4.1, 1.3.1

    [This message was edited by Admin on 21 Mar 2003 at 13:00.]


    #Tamino
    #webMethods
    #API-Management


  • 3.  RE: storing selected item from combobox

    Posted 10/30/02 12:28 PM

    also in this situation , always the first element is stored ,for examole we have i1,i2,i3 as the elements and we choose i2 but in tamino it stores i1 !

    LOVE


    #webMethods
    #API-Management
    #Tamino


  • 4.  RE: storing selected item from combobox

    Posted 10/30/02 01:05 PM

    Hi,

    is it possible to send me a zip file including
    the jsp page and the schemas?
    Then I’am able to run it on my machine.
    This make’s it easier to trace.

    Bye
    Thorsten


    #Tamino
    #API-Management
    #webMethods


  • 5.  RE: storing selected item from combobox

    Posted 11/03/02 05:25 AM

    hi
    I send the jsp page that include comobox

    thanks alot
    orderer.jsp (310 Bytes)


    #webMethods
    #Tamino
    #API-Management


  • 6.  RE: storing selected item from combobox

    Posted 11/03/02 06:37 AM


  • 7.  RE: storing selected item from combobox

    Posted 11/03/02 06:39 AM

    hi
    I send the schema that I used for orderer.jsp
    ticket-request-schema.TSD (6.3 KB)


    #API-Management
    #Tamino
    #webMethods


  • 8.  RE: storing selected item from combobox

    Posted 11/04/02 08:53 AM

    hi,

    thank you for the schema, but unfortunately
    I am not able to open yout jsp page.

    Would you please send “orderer.jsp” for a second
    time ?

    Thankx

    Thorsten


    #webMethods
    #API-Management
    #Tamino


  • 9.  RE: storing selected item from combobox

    Posted 11/04/02 09:35 AM

    hi
    I send the jsp page orderer.jsp

    thanks alot
    orderer.jsp (19.5 KB)


    #Tamino
    #webMethods
    #API-Management


  • 10.  RE: storing selected item from combobox

    Posted 11/04/02 02:53 PM

    Hi,

    unfortunately it isn’t so easy to retrace the behavior of your application.

    I’ve tried to run the page in order to invoke your recognized behavior. Unfortunately it isn’t easy.
    I would need to build several pages around in order to simulate your application.

    It will be much easier, if you’ll pack your appliction and send it to me.
    Than I can run it on my machine and I will hopefully see your problem with the select tag.

    OK? If you are not able to send the application over the comunity, you can send it straight per email to me.

    How to pack it? Very simple.
    1. Go to your webapps folder (i.e.: c:/tomcat/webapps).
    2. type “jar cvf .war - C .”
    (Hint: don’t forget the dot at the end
    3. Please send the war file to me and I will retrace your Problem


    Thanx in advance for your cooperation

    Thorsten


    #webMethods
    #API-Management
    #Tamino


  • 11.  RE: storing selected item from combobox

    Posted 11/06/02 06:10 AM

    hi
    I send the zip file that include the 4 page of application and schema .the start page is rlogin.jsp .
    in orderer4.jsp page and confirmer3.jsp page I used the combo box but in both of page the first element of combo stored in variable if you can another element the first elemet is stored.why?
    please help me.

    thanks alot
    send.zip (8.45 KB)


    #webMethods
    #API-Management
    #Tamino


  • 12.  RE: storing selected item from combobox

    Posted 11/06/02 04:37 PM

    Hi,

    as I have written before, it is not easy to reproduce your error.
    I want to help you as soon and as good as possible, therefore I need the information I have requested:

    The war-file containing your complete application. I’m only able to reproduce your problem, when I am able to run your application here on my machine.
    Otherwise I’m only able to guess not to solve.

    Due to this, please follow the following steps as written above:
    i) Go to your webapps folder (i.e.: c:/tomcat/webapps).
    ii) type “jar cvf .war -C .”
    (e.g.: jar cvf Property.war -C c:\Apache-Tomcat-4.0\webapps\Property .
    (Hint: don’t forget the “.” at the end)



    When having all the Information I need, then I’am able to support you as you expect.

    If you do not like to send the application over the comunity, you can send it private per email to TaminoCommunity@softwareag.com.

    Thank you in advance for your cooperation.

    Thorsten


    #webMethods
    #Tamino
    #API-Management


  • 13.  RE: storing selected item from combobox

    Posted 11/09/02 07:25 AM

    hi
    I send the war file

    thanks alot


    #Tamino
    #API-Management
    #webMethods


  • 14.  RE: storing selected item from combobox

    Posted 11/09/02 09:30 AM

    hi
    I send the war file.again


    #webMethods
    #Tamino
    #API-Management


  • 15.  RE: storing selected item from combobox

    Posted 11/09/02 09:51 AM

    here is the file again


    #Tamino
    #webMethods
    #API-Management


  • 16.  RE: storing selected item from combobox

    Posted 11/10/02 09:20 AM

    Hi,

    thanx for trying it.
    Have you tried to attach it at the post?

    Well, then I don’t know why it didn’t work.
    May you’ll rename the file to .zip and try again… :- )

    Thanks
    Thorsten


    #Tamino
    #API-Management
    #webMethods


  • 17.  RE: storing selected item from combobox

    Posted 11/11/02 08:33 AM

    HI
    I think my problem is obvious !
    for testing the xapp:select tag I wrote the following code :
    <xapp:select text=“users/name” value=“users/id”>

    </xapp:select>
    and I have the java script code filltext that moves the selected item of this lis to a text box :
    function filltext(str)
    {
    document.form1.mytext.value = str;}

    the schema is a very simple thing !
    and it does not work
    I think the select tag does not assign values correctly
    please help me with this

    LOVE


    #webMethods
    #Tamino
    #API-Management


  • 18.  RE: storing selected item from combobox

    Posted 11/11/02 11:07 AM

    HI
    I want to modify and explain my last post:
    my schema
    <?xml version = "1.0" encoding = "UTF-8"?>
    <xs:schema xmlns:xs = “XML Schema” xmlns:tsd = “http://namespaces.softwareag.com/tamino/TaminoSchemaDefinition”>
    xs:annotation
    xs:appinfo
    <tsd:schemaInfo name = “nfl”>
    <tsd:collection name = “testcol”></tsd:collection>
    <tsd:doctype name = “user”>
    tsd:logical
    tsd:contentclosed</tsd:content>
    </tsd:logical>
    </tsd:doctype>
    tsd:adminInfo
    tsd:versionTSD3</tsd:version>
    tsd:created2002-02-11T12:49:20.479+03:30</tsd:created>
    tsd:modified2002-02-11T12:55:34.263+03:30</tsd:modified>
    </tsd:adminInfo>
    </tsd:schemaInfo>
    </xs:appinfo>
    </xs:annotation>
    <xs:element name = “user”>
    xs:complexType
    xs:sequence
    <xs:element name = “complex” maxOccurs = “unbounded”>
    xs:complexType
    xs:sequence
    <xs:element name = “name” type = “xs:string”></xs:element>
    <xs:element name = “id” type = “xs:string”></xs:element>
    </xs:sequence>
    </xs:complexType>
    </xs:element>
    </xs:sequence>
    </xs:complexType>
    </xs:element>
    </xs:schema>

    <xapp:select text=“users/complex/name” value=“users/complex/id”>

    </xapp:select>


    and I stored the following docs :
    Noushin1nfl1Noushin2nfl2
    Negar1ngr1Negar2ngr2

    the html created code is like this :
    <select …>
    noushin1
    noushin2
    negar1
    negar2


    it seems that the xapp:select tag has some problems in such schemas !
    I will be pleased if U run this example on your machine and see the results

    LOVE


    #API-Management
    #webMethods
    #Tamino


  • 19.  RE: storing selected item from combobox

    Posted 11/11/02 02:06 PM

    Hi,

    I looked on your one before last post and I tried to run it and it worked with the information I had before.

    With a quite big effort I was able to run your “orderer.jsp” page embedded in an other application addapted for these purpose.

    Then this application showed the behavior you described: It allways stored the first entry of the combo box.

    Looking on the resulting HTML code provided the error, as shown in your last post:
    >the html created code is like this :
    > <select …>
    > noushin1
    > noushin2
    > negar1
    > negar2
    >

    Well, this is a bug inside of our select tag.

    As an attachment I hopefully offer you a solution for your problem.

    Installationsteps:

    • 1. Download the attached zip file.
    • 2. unzip this file in to your X-Application folder.
      The file ‘SelectTag.java’ will be overwritten.
    • 3. Open a command line box, and go to your X-Application folder.
    • 4. Now execute the command build quick.
      This will generate a new xapplication.jar file.
    • 5. Copy the file xapplication\lib\debug\xapplication.jar into the directory yourWebApplication\Web-Inf\lib\xapplication.jar.
    • 6. Restart tomcat
      Tip:Delete the content of your Tomcat work directory to prevent irritations concerning Tomcat.


    Hopefully this fix your problem.

    Please let me know if it was successful or not.

    Bye Thorsten
    xapplication_313_selecttag_fix.zip (4.42 KB)


    #webMethods
    #API-Management
    #Tamino


  • 20.  RE: storing selected item from combobox

    Posted 11/12/02 07:14 AM

    Thanx for the solution
    but it does not solve my problem completely
    when I use xaap:select tag without value attribute it works :
    noushin1
    noushin2
    .
    .
    but when I use value attribute the problem still remains!
    would U please test it with value attribute set ?

    LOVE


    #Tamino
    #webMethods
    #API-Management


  • 21.  RE: storing selected item from combobox

    Posted 11/12/02 04:13 PM

    Hi,

    what we found out is that our select tag is not able to handle your use case.

    You are trying to fill the select box with two different queries for text and value.

    Your result consits of more then one occurrence within one document. This works fine as long
    as you just use text and no explizit queries for
    text and value.
    The relationship between text and value is realized by their ino:id.
    In your specific use case the uniqueness of the ino:ids does no longer exist.

    Therefore you can’t use the select tag if need different values for text and value.

    BUT:
    Here is a proposal how you can generate a HTML-select with the result you wish.
    There is also an restriction: You can make this list “distinct”.

     <!-- read the data for your select-->
    <xapp:directcommand type="query" document="allUsers" arg="/user"/>
    ...
    <xapp:edit select="/result/@id">
    <select name="lstUser">
    <!-- Browse over all documents -->
    <xapp:browse document="allUsers">
    <!-- iterate within the document over complex -->
    <xapp:loop document="allUsers" select="/user" iterate="complex" targetbase="user">
    <option value="<xapp:display select="./id"/>"><xapp:display select="./name"/></option>
    </xapp:loop>
    </xapp:browse>
    </select>
    </xapp:edit>




    This examples generates the HTML select tag as you wish.

    Bye
    Thorsten

    [This message was edited by Thorsten Raab on 12 Nov 2002 at 16:00.]


    #webMethods
    #Tamino
    #API-Management


  • 22.  RE: storing selected item from combobox

    Posted 11/13/02 05:51 AM

    thanx for your reply
    Is this problem is going to be solved in newer versions of xapplication ?

    LOVE


    #API-Management
    #Tamino
    #webMethods


  • 23.  RE: storing selected item from combobox

    Posted 11/13/02 08:29 AM

    Hello Noushin,

    hopefully you understand that we are not allowed to publicly assure new features of upcoming versions.
    The further development of this community source software depends very much of the use cases of our customers. Unfortunately we need to prioritize the requests.
    How important is this feature for you?

    I would like to know if there are other customers interested in this use case?

    Regards, Harald


    #Tamino
    #API-Management
    #webMethods


  • 24.  RE: storing selected item from combobox

    Posted 03/21/03 10:45 AM

    Hello,

    this bug is solved with X-Application 4.1.1.

    Bye,
    Christian.


    #Tamino
    #webMethods
    #API-Management