How do I create linked LOVs in a JSP

We are attempting to create a list of values (LOV) for a group of categories on a jsp page. We would like the LOV to be populated with the category names. Next to the category LOV we would like to have a link “get subcategories” that when clicked would return to the same jsp page, set the value of the LOV to the category selected, and populate a second LOV with sub-category names for the selected category.
We have created an sql-only View Object (VO) for the categories and linked it to an sql-only VO for the subcategories (in a master-detail relationship) and added the VOs to an app module. We have tested the link between the two VOs with successful results.
We would like to know how to create a linked pair of LOVs on a jsp page. Any help on this matter would be greatly appreciated.

Les,
If I understand correctly, you can do this fairly simply.
First create datasources:
<jbo:DataSource name="dsCategories" ...
<jbo:DataSource name="dsSubCategories" ...
<% // add a where clause to SubCategories based on the parameter "CategoryNumber"
String categoryNumber = params.getParameter("CategoryNumber");
// Make sure to default to something if the parameter is null or you'll get an error
if (categoryNumber == null)
categoryNumber = "1";
dsSubCategories.getRowSet().setWhereClauseParam(0, categoryNumber);
// execute the query on dsSubCategories to ensure that the where clause reflects on this page
dsSubCategories.getRowSet().executeQuery();
Create a form with your drop down lists.
1. I would create a <form> that posts to the same page.
2. Add a <jbo:FormEvent> tag with a custom event name like "getSubcategories".
3. Create a LOV that isn't connected to the database:
<jbo:InputSelect multiple="false" displaydatasource="dsCategories" displaydataitem="CategoryName" displayvaluedataitem="CategoryNumber" ></jbo:InputSelect>
4. Create a second LOV that also isn't connected to a datasource. It would look like this:
<jbo:InputSelect multiple="false" displaydatasource="dsSubCategories" displaydataitem="SubCategoryName" displayvaluedataitem="SubCategoryNumber" ></jbo:InputSelect>
5. Add a submit button
That should work. Some things to note:
1. This probably won't track your previously selected options. I don't know if you can do that with this interface.
2. I'd add some javascript to postback when a new list item is selected.
Based on these points I would code the select list by hand like this:
<select name="CategoryNumber" size="1" onchange="this.form.submit()">
<% String curCatNumber="";
String CatNumber = params.getParameter("CategoryNumber");
if (CatNumber == null)
CatNumber = "1";
<jbo:RowsetIterate datasource="dsCategories" >
<jbo:Row id="rowCategory" datasource="dsCategories" action="active" >
<% curCatNumber = ((oracle.jbo.domain.Number)rowCategory.getAttribute("Category")).toString();%>
<option value="<%=curParlimentId%>"
<% if (CatNumber.equals(curCatNumber)) { %>selected<% } %>>
<jbo:ShowValue datasource="dsCategories" dataitem="CategoryName" ></jbo:ShowValue>
</option>
</jbo:Row>
</jbo:RowsetIterate>
</select>
The second would be similar.
Hope this answered your question!
~Rob Lundeen

Similar Messages

  • How can i create link between ipad(xcode) and webserver?

    Hi, I'm a new to iPad development and i need help,
    i'm not good with english but i try to explain my question:
    how can i create link between ipad(xcode) and webserver?
    (the webserver ".NET" with driver odbc is connected with DB Oracle)
    so, how can my ipad application access to the Oracle DB?
    Create a webservice (.NET) to be place between iPad and DB, is this correct?
    how can i do it?
    which are libraries to include in the xcode's framework?
    thx

    I think the following URL will be your best answer:
    http://stackoverflow.com/questions/3510468/connecting-iphone-to-an-odbc-database

  • How can I create links to other pages in iBooks that will function in PDF?

    Hi,
    I know some people have asked previously how to create links to other pages of their book within iBooks. I having an issue with this myself that I haven't been able to resolve. I am able to create the links, and they seem to function within the program, however, once I export the document as a PDF file (the format in which I need to have this ebook!), the links seem to be non-functional. Does anybody have a fix for this?
    Thank you so much for any suggestions you may have!! I really need to figure this out for my client.
    Regards,
    Meggyn

    Exporting as a PDF does alter/lose/remove certain functions. Adobe Acrobat has its own page navigation system.
    A lot of the hidden engine of iBooks Author is basically very similar to building a website! so links and books marks are an "internal" function.
    IF you  have Acrobat and not just the Adobe Reader, you can make links.  I have never needed to try, but  I see a working link related index  in the many software manuals  I have.

  • How do I Creating links ??

    Hi
    I have looked at help.sap.com abt this -it is unclear to me. Please help.
    I have installed EPSP9 NW04 SR1 with KMC. I would like to create an iview that just has links one after the other. Some of these links will point to documents and some will point to sites on client's intranet. So i want the iview to be like this for example:
              About Company
              Products Sold
              Emergency Procedures    
    How do I create these links? I will upload documents in the portal via KM. But how do I create the links pointing to documents and teh intranet?
    Manny Thanks
    Namira

    hi
    If you only want some static links you can go for the KM Document iview.
    1.Create an html document with the links you needed.
    2. Use javascript functions for the links.
    3.Save it as text and upload it to a KM folder.
    4.Create a KM Document iview and set the path to the document you created in the properties of iview.
    5.Place the iview in the portal where you wanted.
    Regards
    geogi

  • How do I create links in a file like a table of contents to different sections in a .pdf document?

    I'm trying to take multiple files and create one large (165 page) document but would like to create links to the different "chapters" within the document. 

    LH,
    You may (you can see Groups in the Layers palette with the layer expanded):
    1) Ctrl/Cmd+A to select everything and Ctrl/Cmd+Shift+G to Ungroup ;
    2) ShiftClick the circle to deselect it; if it is still a Group (all of its own), Ungroup again;
    3) With the Centre Reference Point ticked in the Transform palette multiply the W or H value by 1.1 (just add *1.1 in the box) and Ctrl/CmdEnter to keep proportions (this is to make sure that they are long enough);
    4) Ctrl/Cmd+A to select everything again and Pathfinder>Divide (this will make pie pieces);
    5) Drag over the centre with the Direct Selection Tool and press Delete (this will rid you of the inner parts of the pie pieces so you just have the outer rim in pieces).
    This should give you the 30 independent curved lines forming the circle, two of them with an extra (original) Anchor Point.

  • How can we create dynamic pie chart in jsp

    hi im a new jsp programmer and i just want to know how can i create dynamic pie chart in jsp

    http://sourceforge.net/projects/jfreechart
    - Saish

  • How do I create links from my help text to my software program?

    I have finished all of my online help text documentation using RoboHelp 8. I would like to create a help button in my software that a user could click on to find more information about a specific part of the program in the online help text. I would like to know how to view the absolute paths in RH8 of the help text so that I can link it to the software. Currently, when I go to my online help text is only shows me the http://www.sitename.com. and nothing more for any of the topics.

    Hi,
    Since your help is online, I assume you're using webhelp. Calling the help context sensitive is a joint venture between the help and the application. See http://www.grainge.org/pages/authoring/calling_webhelp/calling_webhelp.htm for help calling your help. If it doesn't help, please post back.
    Greet,
    Willam

  • How do i create linked pages with multiple video clips on each of them?

    I took a bunch of small videos with my digital camera, and now want to make a dvd that has a main menu with 7 choices, and then each one of those will take you to pages with each clip as a motion button (6 to a page). So if i click on "Dublin" on the main menu, it takes me to Dublin #1 which has clips 1 - 6, i can then click on an arrow to go to a second page with clips 7 - 12, etc. I can return to the main menu and click on "Belfast" which takes me to the first page of 6 clips, then a second page with 6 more, etc.
    The problem I am having is linking two or more Chapter pages together. Thanks for your help.
    Eric

    Welcome to the forums, Eric.
    iDVD has a few limitations, but you can do much of what you want.
    Limitations: Only 6 selections per menu page. And the Forward/Backward selection buttons advance only one menu at a time.
    Basic solution: Use the folder button to create a link to a submenu; move to that submenu and drag your movies onto that menu page. Repeat for more submenus.
    Alternative approach: Use iMovie to join all the Dublin videos, with chapter markers to designate each segment. Import the movie with chapter markers into iDVD and they automatically create the Dublin submenus. And you can watch all the Dublin videos in a row, or use the menus to navigate to the desired video. After you watch the last segment, you'll automatically return to the main menu.
    John

  • How do I create links between two pdfs using FrameMaker 9, while both files remain open?

    In FrameMaker 9 is there a way to create cross reference to a particular page on another doc (without closing the current/source doc)?
    I tried using "openpage filename:pagenumber" option, the link takes me to page 1 of the referenced doc not to the specified page, and as it is a hyper link when page 1 of the referenced doc gets displayed the souce doc closes.
    When a link is clicked in the source doc, it is required that the source doc remians open.
    This is an urgent requirement, can anyone please reply soon?

    I think you've already asked this in this thread - http://forums.adobe.com/message/5613200#5613200 - and it's been answered there.

  • How do you create links in a portfolio?

    I have a pdf portfolio which is a street map book. On the index page, I want to create a link to each map reference so you do not have to scroll to get there. Links to other pdf's in same portfolio.
    Any help would be appreciated. This map book will be utilized on an Ipad2.
    Thanks-
    Mike

    According to Donna Baker's tutorial on Viewing your PDF files on the go - Part 1, "You aren't going to get the splashy interface, but you'll see the default opening page for a binder, and then the contents of the Portfolio listed on the screen."

  • How to undo 'create link' in pdf

         Hi there - I am finding the acrobat pro very useful. I just started using it and it's very cool. Anyways, I have a problem. I created a link by highlighting text and when I click on it, it takes to me where I want. However, I am having a hard time undoing  the link. I tried right clicking, but no luck. Could someone please help me. I am using Windows Vista.
    Also, I am have having simillar trouble of undoing, once I select a highlight/underline  features from the 'Tools' group. Any suggestions would be highly appreciated. Thanks.

    Oops....i got it.
    http://www.ehow.com/how_5847992_remove-links-adobe-acrobat-8.html
    Thanks..

  • How can I create a LOV dynamically in UIX?

    Jdev10g, ADF BC UIX...
    I need to create LOVs for 0 to many columns in my UIX datapage but I don't know the column names nor the tables until I read the LOV_SQL column from the child as they come in. Can you show me the way, please.
    Thanks, Stephen.

    Stephen,
    Check this page out for some elementaries on dynamic pages in UIX. The LOV is essentially just like any other UIX page, with the two differences: it's launched and submitted differently. But these differences don't affect what content is displayed on the page.
    Dynamic Structure in ADF UIX Pages:
    http://helponline.oracle.com/jdeveloper/help/state/content/navSetId.jdeveloper/navId.4/vtAnchor.ChildData/vtTopicFile.jdeveloper%7Cuixhelp%7Cuixdevguide%7Cdynamic%7Ehtml/

  • In an InDesign book, how can I create links that work across documents?

    The hyperlinking works fine when it is contained within a single document in a book, however doesn't work across documents.

    Do you mean cross-references? You can do those, but they are known to be "fragile" and unreliable.

  • How to provide multiple links in a single JSP

    Hi Experts,
    I am done with a single doc link in jsp file ,now my requirement is to use a single jsp file for multiple docs.
    Like I have 10 WEBI reports and I want to open it from separate application without passing BO user name and password .Can I achive it with a single JSP.
    Please advice how to do it.

    Hi Vikas,
    You can use something like the below code
    ===================================
    <%@ page import="com.crystaldecisions.sdk.framework.CrystalEnterprise" %>
    <%@ page import="com.crystaldecisions.sdk.framework.IEnterpriseSession" %>
    <%@ page import="com.crystaldecisions.sdk.framework.ISessionMgr" %>
    <%@ page import="com.crystaldecisions.sdk.occa.infostore.IInfoStore" %>
    <%@ page import="com.crystaldecisions.sdk.occa.security.ILogonTokenMgr"%>
    <%@ page import = "com.crystaldecisions.sdk.framework.*"%>
    <%@ page import = "com.crystaldecisions.sdk.properties.*" %>
    <%@ page import = "com.crystaldecisions.sdk.framework.*" %>
    <%@ page import = "java.util.*" %>
    <html>
    <body>
    <%
    IEnterpriseSession eSession = null;
    try
      String CMS = "cmsname";
       String username = "username";
      String password= "password";
       String Auth = "secEnterprise";
      ISessionMgr sessionMgr = CrystalEnterprise.getSessionMgr();
      eSession = sessionMgr.logon(username,password,CMS,Auth)
      ILogonTokenMgr logonTokenMgr = eSession.getLogonTokenMgr();
      String defaultToken = logonTokenMgr.getDefaultToken();
      String open = "http://localhost:8080/OpenDocument/opendoc/openDocument.jsp?iDocID=AZQxKFpLb2JDqfKNxVI_10g&sIDType=CUID&token="+defaultToken;
      String open1 ="http://localhost:8080/OpenDocument/opendoc/openDocument.jsp?iDocID=AUGC0aj3IsdDngyQfsguyjw&sIDType=CUID&token="+defaultToken;
      String open2 ="http://localhost:8080/OpenDocument/opendoc/openDocument.jsp?iDocID=AXDEPU6w1J1Bgp69rr7Ir0c&sIDType=CUID&token="+defaultToken;
      String open3 ="http://localhost:8080/OpenDocument/opendoc/openDocument.jsp?iDocID=ATL0N_2D8JNDmx.DblcXoMM&sIDType=CUID&token="+defaultToken;
    %>
    <div align="center">
    <b>Open Document Sample Application</b>
    </div>
    <br />
    <br />
    <b>Select Reports List:</b><br />
    <br />
    <a href = "<%= open %>" target= "myframe">Report1</a><br />
    <a href = "<%= open1 %>" target= "myframe">Report2</a><br />
    <a href = "<%= open2 %>" target= "myframe">Report3</a><br />
    <a href = "<%= open3 %>" target= "myframe">Report4</a> <br />
    <iframe src="" name="myframe" width="900" height="500" align="center">
    </iframe>
    <%
    out.println("<br />");
    catch(Exception e)
      out.println(e.getMessage());
    %>
    </body>
    </html>
    ================================================
    Thanks,
    Prithvi
    Message was edited by: Prithviraj Shekhawat

  • How can I create a Login-page with jsp???

    Hello,
    I have to create a page with JSP code on the Netweaver Developer Studio.
    But I do not know how I do it.
    Can anyone tell me what to write in the portalapp.xml?
    An example would be very helpful.
    Thank you
    Greetings

    As you can see in the example:
    The portalapp.xml file (deployment descriptor) provides configuration information for your application, and defines the components and services in your application. For each component and service, you specify the implementing Java class and configuration information.
    For more information on the format of the portalapp.xml, see Deployment Descriptor (portalapp.xml).
    <application>
        <application-config>
            <property name="SharingReference" value="com.sap.portal.navigation.service, com.sap.portal.navigation.api_mimeservice, com.sap.portal.navigation.helperservice"/>
            <property name="Vendor" value="MY_COMPANY"/>
            <property name="SecurityArea" value="PERMISSION"/>
        </application-config>
        <components>
            <component name="SimpleNavigationExample">
                <component-config>
                    <property name="ClassName" value="MY_CLASS"/>
                    <property name="SecurityZone" value="no_safety"/>
                </component-config>
                <component-profile/>
            </component>
        </components>
        <services/>
    </application>
    You can only update in this example, your class name and other details:
    <property name="Vendor" value="sap.com"/>
    <property name="SecurityArea" value="MyCompany"/>
    <property name="ClassName" value="LOGINCLASS"/>
    <property name="SecurityZone" value="no_safety"/>
    Modify this portalapp.xml file as follows:
           1.      NAVIGATION SERVICE, so you must add references to the following portal applications that define these services:
            com.sap.portal.navigation.service
            com.sap.portal.navigation.api_mimeservice
            com.sap.portal.navigation.helperservice
           2.      In the <application-config> section, create the following properties that help to define the security zone for all components and services in this application:
    ○     Vendor: String identifying the company or organization that provided the application, for example, sap.com.
    ○     SecurityArea: String identifying the security area for the application, for example, NetWeaver.portal.
           3.      In the <component-config> section for the mySiteMap component, create the property SecurityZone to define the specific security zone for the component.
    For Permission, check this document:
    http://help.sap.com/saphelp_nw04s/helpdata/en/44/489e2df5ee4e35e10000000a1553f6/frameset.htm

Maybe you are looking for

  • How to make this image compatible as a laser cut file by changing stroke colour?

    My final aim with this image is to make it compatible as a laser cut raster engrave design, so the laser cutter will fill the black areas or white (either would be fine). If this is not possible then even as a laser cut outline would be suitable This

  • Help withInstall Flash on   UMPC Netbook

    Hello - My grandson received a netbook for christmas. The box says it is a SW-E700 series netbook. It has a XBurst 400 MHz 32-bit CPU with 128M Ram and 512M NAND Flash storage. It runs some version of Linux(I can not determine what version and has a

  • Repost: Cart find class of Bean :-{

    People, HELP!! I am getting desperate!!! I am a newbie when it comes to TOMCAT, but i have been using Blazix before. My current system is using APACHE/TOMCAT on a Solaris machine and I keep hitting the same problem. I have gone through the archives b

  • Automatic Batch Number Generation in tcode MIGO...

    Hi Experts,                  There is automatic Batch Number is generated  after clicking on Pushbutton  "Check" in transaction code MIGO. Instead of that user want Batch Number Generation after clicking on Pushbutton "Post" . Can anybody tell me the

  • OT: Regex Question

    I'm doing a series of search and replace operations with Dreamweaver and wondered if anyone can suggest a regular expression for a particular situation. The following URL is fine as it is: <td><a href="http://www.geoworld.org/Brazil" title="Brazil">B