Default value of combobox using dynamic LOV in Oracle Portal form

We are trying to specify the deafult value of a combobox on a form that derives it options from a dynamic LOV. The option value is a number and the display is text.
E.g.
<Option value="1">Books
<Option value="2">CDs
We have tried various ways of setting the default option to be selected on the Combobox. First, we tried using a sql query to return a number from a table (sql query returns number -> in the default value type field). Next, we tried to use a constant number (default value: 2, default value type: constant). In neither case, did the Oracle Portal form pre-select our default choice in the drop-down list.
Any suggestions? I browsed the other forum articles on this topic and noticed several folks believed it was a bug in Portal. We are using Portal version 3.0.9 (latest App Server for the Ebusiness Suite). Thanks in advance.

You can manually add the select list (or for that matter anything else) to a wizard created form. If the select list is for an existing item, simply change the "Display As" setting from Text to a Select List based on the LOV you create. Any changes made will then be applied by the update process.
cheers,
Ron

Similar Messages

  • Is there a problem using popup LOVs in a portal form with a bind variable?

    I have a portal form with 2 LOVs. The second LOV is a dependent LOV whose bind variable can be NULL. I have read Note 263923.1, "How To Create Dependent Lovs In Forms", and my form works as long as I use combo boxes to display the LOVs. I need to use popups so the user can search the LOVs as they are quite lengthy. Plus I want to be able to pick a value from my second LOV without selecting a value from the first LOV -- hence, my bind variable can be null and that is where my problem lies. As long as I select a value from the first LOV, the second LOV popup will work. If I click on the icon to display the second LOV without pre-selected a value from the first LOV, I get the following error:
    POPUP LOV ERROR:
    LOV: "9A17692880B6B8509F514F5B9CA9EC808DD403218B3CF19A33C04CD1FAB0ADE17ADC33E6B67998A933357CE5264D204E"
    Parse Message: Parse as pre-set global: "TORE".
    Find Message: LOV is of type DYNAMIC (LOV based on SQL query).
    Query: "SELECT ...."
    wwv_bind.prepare_bind: ORA-01403: no data found
    My form is based on a table with a custom layout. The sql for the second LOV is similar to: SELECT ENAME, EMPNO FROM SCOTT.EMP WHERE (DEPTNO = :DEPT AND :DEPT IS NOT NULL) OR :DEPT IS NULL.
    Thanks in advance for any help,
    Carol

    Don't use EPS any more! It does not support transparency nor color management.
    If you save vector files from Illustrator, use AI with PDF compatiblity.
    If you save image files from Photoshop, use PSD.
    If you save image files combined with vector forms and/or text from Photoshop, use PDP which is a Photoshop PDF.
    For vectors from Illustrator use CMYK files.
    For images use RGB, conversion to CMYK should never done before PDF export, better, if the printer allows it, is to export a PDF with live transparency as it is PDF/X-4
    If the printer requires a PDF with CMYK only export a PDF/X-1a.

  • Dynamic LOV of Oracle Portal

    I am working on Oracle Portal reports, I need some dynamic LOVs
    for the Query Screen. Could you tell me which version of Oracle
    Protal provides Dynamic LOV functionality? My version is 3.7. If
    3.7 does not provide this functionality, is there any way to do
    dynamic LOVs?
    Thans a lot!

    You might try the Oracle9iAS Portal Applications forum for this
    question.

  • Dynamic LOV in a Tabular Form

    Can somebody please tell me if there is a easy way to code a
    dynamic LOV in a Tabular Form?
    I need the ability to access a column value in the table row, to use in the WHERE clause of LOV query for another column in the row? Seems
    like that should be easy , but not finding an answer.
    Thanks for any help.
    Carol

    Hi Carol,
    You can add the select list's definition directly into your SQL statement using APEX_ITEM.SELECT_LIST_FROM_QUERY - see: [http://download.oracle.com/docs/cd/E10513_01/doc/apirefs.310/e12855/apex_item.htm#CHDIDGDA]
    If you first run your page with your existing select list on it, then do a View Source and look for the select list, you will see a "name" attribute of something like "f01" or "f02" etc. Make a note of the number part of this.
    Then update your SQL statement to include the above and using the number you noted as the Index value (say, 4):
    SELECT EMPNO,
    ENAME,
    DEPTNO,
    APEX_ITEM.SELECT_LIST_FROM_QUERY(4,MGR,'SELECT ENAME d, EMPNO r FROM EMP WHERE DEPTNO = ' || DEPTNO || ' AND EMPNO &lt;&gt; ' || EMPNO) MGR
    FROM EMPThat would give you a select list of employees in the same department as the current employee (excluding that employee themself)
    Andy

  • Can we use Dynamic SQL in Oracle Reports ?

    Hi ,
    Can we use Dynamic SQL in Oracle Reports ?
    If yes please give some examples .
    Thanx
    srini

    I believe the built-in package SRW.Do_Sql is what you are looking for
    Example from the document:
    /* Suppose you want to create a "table of contents" by getting the
    ** first character of a columns value, and page number on which its
    ** field fires to print. Assume that you want to put the "table of
    contents"
    ** into a table named SHIP. You could write the following construct:
    DECLARE
    PAGE_NO NUMBER;
    PAGE_FOR INDEX NUMBER;
    SORT_CHAR CHAR(1);
    CMD_LINE CHAR(200);
    BEGIN
    SORT_CHAR := :SORT_NAME ;
    IF :CALLED = Y THEN
         SRW.GET_PAGE_NUM(PAGE_FOR_INDEX);
         SRW.USER_EXIT(RWECOP PAGE_FOR_INDEX
         P_START_PAGENO);
         SRW.MESSAGE(2,TO_CHAR(:P_START_PAGENO));
    END IF;
    SRW.GET_PAGE_NUM(PAGE_NO);
    CMD_LINE := INSERT INTO SHIP VALUES
                          (||SORT_CHAR||,||TO_CHAR(PAGE_NO)||);
    SRW.MESSAGE(2,CMD_LINE);
    SRW.DO_SQL(CMD_LINE);
    COMMIT;
    EXCEPTION
      WHEN DUP_VAL_ON_INDEX THEN
            NULL;
      WHEN SRW.DO_SQL_FAILURE THEN
            SRW.MESSAGE(1,FAILED TO INSERT ROW INTO SHIP TABLE);
      WHEN OTHERS THEN
           COMMIT;
    END;

  • How to send HTML Format Mail using Java Mail in oracle 9i Forms

    Dear All
    could you please tell me how to send HTML Format Mail using Java Mail in oracle 9i Forms and how to implement the java mail ?
    if it is possible, could you please send me the sample code? please very urgent
    Thanks
    P.Sivaraman

    Hello,
    <p>Here is a Form sample.</p>
    Francois

  • Automated tool to convert from Forms to Dynamic Page for Oracle Portal?

    Hi Experts,
    We are thinking to convert majority of the forms in our portal to dynamic pages. Is there any tool to automate the conversion from Forms to Dynamic page for Oracle Portal 9.0.4.1.0?
    Thanks, Abbas

    Dear Abbas,
    You seem to have two issues... ;-)
    If you are finding the Forms are getting corrupt very easily, I'd suggest you go and open a Service Request into Oracle Support (http://metalink.oracle.com). There are a couple of ways where you can have these not corrupted (depeding on the Portal version you are in) and if there isn't yet a way you may get a bug logged and fixed within the next patchset eventually (improving the product functionality).
    As to changing it to a dynamic page it might give you a bit more flexibility... yeah. It really depends on what you desire to do. I'd slowly start to code them in this way if your goal is this. As to the former coded forms unfortunately as I've said there isn't a strait way to do that, so you may do this slowly in time...
    I hope it helps you a bit further...
    Cheers,
    Pedro.

  • How to set the Default value in the picklist and LOV

    Hi All,
    I have created a table with some of the columns as picklist and some of the columns as Lovs to insert some data into the tables as per the client requirement.
    I want to make one value as default for the picklist and one value as default for the Lov.
    Could you please let me know how can we show one value as default in the pick list or Lov.
    thanks in advance.
    jay

    can u please help how can we set the initial value dynamically with the userid
    For that i was passing the value from process Request of the lovCO by using the get user id to the vo query in the vo
    but its not giving the initial value as default dynamically depending on the user id
    could you please let me know the solution.
    Thanks
    Ajay

  • How to change default value of a parameter and LOV attached to a parameter

    Hi All
    I am new to discoverer reports and I need to accomplish the following tasks:
    1. Need to change the SQL query of a discoverer report
    2. Need to change the default value of parameter ( from constant to current month). In the discoverer plus responsibility when I open the report and go to tools>>parameter>>edit
    I can see the constant default value given there. On the right hand side there is a drop down which says 'Value'. I guess if i need to put a SQL as defaul value I need to change the drop down to sql or something and then put the SQL. Problem is the drop down is froezen and I cannot change it.
    Even if I try to create a new parameter/report.
    3. Need to change the LOV associated to the item on which the parameter is based.
    I have the discoverer plus responsibility attached to myself and do not have the discoverer administrator tool (desktop developer tool like forms 6i). My questions are:
    1. Can I change the SQL query by using discoverer plus responsibility or do I need discoverer administrator tool?
    2. Any help on how to get the default value from an SQL query? currently it is a constant value.
    3. Is there any way to figure out is the LOV is madeup of fixed constant values (like independednt value set) or they are fetched from some sql query(table validated value sets)?
    Any pointers/solutions will be highly appriciated!!!
    Thanks in advance.
    Thanks and Regards,
    Shashank

    HI,
    Need to change the SQL query of a discoverer reportThe discoverer generate the SQL according to the item, calculation and conditions designed in the worksheet.
    You cannot edit a specific worksheet SQL.
    In order to change the SQL you need to change the worksheet using the "Edit-> worksheet" from the menu.
    To change the SQL generated inside the folders you need to do that using the administrator.
    Need to change the default value of parameterYou cannot use SQL statements for the parameter default value. it is not supported. if you need default you can use only constant (as it was). otherwise you can set the parameter to be optional and then add to this condition an OR saying that <item>= NVL(:Parameter,<your default>)
    as <your default> you can use calculations so that if for example you want the current date you will create a calculation containing: SYSDATE.
    Is there any way to figure out is the LOV is madeup of fixed constant values (like independednt value set) or they are fetched from some sql query(table validated value sets)?They are based on SQL, even they are const then you will see it as
    select 'a','b'... from dual
    you can find the LOV (called item classes) in the administrator.
    Go to the item your condition is based on and see its properties.
    In the properties you should see the item class it uses.
    Close the properties and go to the item classes tab, search for this item class and figure the folder it came from.
    This is the folder you need to change in order to change the LOV.
    Hope it helped a bit, you sure asked several big questions...
    Tamir

  • Setting default values in a php dynamic list

    I have a drop down list that is populated by a recordset consisting of two fields, company (a text field shown in the drop down list) and company_ID (an integer key )
    The default value for the field Company should be "unknown", and the form should not submit if the sleted value is "unknown"
    The selection once made is used to insert the value into  a new record, along with many others on the full form..
    The code is complicated by the fact that it also includes some java script code from a check form behaviour, shown in orange for completeness.
    How do I change the PHP code so that it shows the default value of "unknown" in the select box when run, instead of showing the last item in the companies list?
    Should be simple enough, but I am too close to see the solution.
            <td>
    <select name="Companies_ID" size="1" class="contclass" id="Companies_ID" >
              <%
    while (!compny.EOF) {
    %>
              <option value="<%=(compny.Fields.Item("ID").Value)%>" <%=((compny.Fields.Item("ID").Value == (compny.Fields.Item("ID").unknown))?"SELECTED":"")%> <?php if (!(strcmp("<%=(compny.Fields.Item(\"ID\").Value)%>", $row_rsCompany['ID']))) {echo "selected=\"selected\"";} ?>><%=(compny.Fields.Item("company").Value)%></option>
              <%
      compny.MoveNext();
    if (compny.CursorType > 0) {
      if (!compny.BOF) compny.MoveFirst();
    } else {
      compny.Requery();
    %>
    <?php
    do { 
    ?>
              <option value="<?php echo $row_rsCompany['ID']?>"<?php if (!(strcmp($row_rsCompany['ID'], $row_rsCompany['ID']))) {echo "selected=\"selected\"";} ?>><?php echo $row_rsCompany['company']?></option>
              <?php
    } while ($row_rsCompany = mysql_fetch_assoc($rsCompany));
      $rows = mysql_num_rows($rsCompany);
      if($rows > 0) {
          mysql_data_seek($rsCompany, 0);
                $row_rsCompany = mysql_fetch_assoc($rsCompany);
    ?>
              </select>
              <input name="company" type="hidden" id="company" value="<?php echo $row_rsCompany['company']; ?>" /></td>
            <td>Select from list. If it does not exist, add a Company. </td>
          mysql_data_seek($rsTypes, 0);
                $row_rsTypes = mysql_fetch_assoc($rsTypes);
    ?>
              </select>
              <input name="company" type="hidden" id="company" value="<?php echo $row_rsCompany['company']; ?>" />

    Thanks Bregent - your comment made me think again, and now the problem does not exist - in fact it never really did.
    I did not explain it properly.
    The form that I am using has many different items on it, some of which are static and some that are not.
    All the static fields show the word "unknown" when the page loads.
    None of the dynamic fields do, but I would like them to.
    Here is a section of newly created code as a test. I first created a drop down list with a default of "unknown" and then dynamically populated it. This produced the following code:
    <form action="" method="get">
    <select name="testing" size="1">
      <option value="unknown" <?php if (!(strcmp("unknown", $row_Recordset1['ID']))) {echo "selected=\"selected\"";} ?>>unknown</option>
      <?php
    do { 
    ?>
      <option value="<?php echo $row_Recordset1['ID']?>"<?php if (!(strcmp($row_Recordset1['ID'], $row_Recordset1['ID']))) {echo "selected=\"selected\"";} ?>><?php echo $row_Recordset1['type']?></option>
      <?php
    } while ($row_Recordset1 = mysql_fetch_assoc($Recordset1));
      $rows = mysql_num_rows($Recordset1);
      if($rows > 0) {
          mysql_data_seek($Recordset1, 0);
          $row_Recordset1 = mysql_fetch_assoc($Recordset1);
    ?>
    </select>
    </form>
    When I am in split view, all I see is a box with "unknown" in it, which is what I want.
    When I switch to live view, or view it in a browser, It shows the word "Z Smith & Co" - which is the last record on file in the current sort order.
    What I was trying to attain, was to put the static text "unknown" in this field, so that if the user does not select anything then the word "unknown" goes into the record of the (different) table that is being created.
    However, on reflection, I must allow the user to select whatever he likes into this field. If he does not know the company that should be there, he selects unknown from the list.
    Just shows how thinking wrongly can cause lots of problems.
    Have a merry Christmas and a Prosperous New Year.

  • How to default values on screen using FREE_SELECTIONS_INIT

    Hi Experts,
    I have the following requirement :
    We have developed a screen on which there is a button. On click of the button, a dynamic selection screen is generated using the functions FREE_SELECTIONS_INIT and FREE_SELECTIONS_DIALOG.
    I want when the selection screen is generated for the first time, the fields on it contains some default values taken from a table.
    e.g. If Screen has fields MARA-MATNR, MARA-MTART, MARA-MEINS then MARA-MEINS should be defaulted with a value 'EA'.
    I have tried a lot but could not find a solution to it.
    Kindly help me out as this is very urgent.
    Points are guaranteed..
    Thanks in advance.
    Regards,
    Himanshu

    SELCTION SCREEN
    SELECTION-SCREEN BEGIN OF BLOCK BLOCK_1 WITH FRAME TITLE TEXT-001.
    PARAMETERS : P_RADLOC RADIOBUTTON GROUP GRP1 USER-COMMAND USER  .
    SELECTION-SCREEN BEGIN OF BLOCK SUB1_BLOCK WITH FRAME TITLE TEXT-002 NO INTERVALS.
    PARAMETERS : P_LOCNO TYPE /SAPAPO/LOCNO MODIF ID ABC default 'Specify the default value here.
    SELECTION-SCREEN END OF BLOCK SUB1_BLOCK.
    SELECTION-SCREEN SKIP .
    PARAMETERS : P_RADRES RADIOBUTTON GROUP GRP1  DEFAULT 'X'.
    SELECTION-SCREEN BEGIN OF BLOCK SUB2_BLOCK WITH FRAME TITLE TEXT-003 NO INTERVALS.
    PARAMETERS : P_RESNM TYPE /SAPAPO/RES_HEAD-NAME MODIF ID XYZ.
    PARAMETERS : P_NOB   TYPE /SAPAPO/CRES_NOINDIVRES  MODIF ID XYZ.
    SELECTION-SCREEN END OF BLOCK SUB2_BLOCK.
    SELECTION-SCREEN END OF BLOCK BLOCK_1.
    AT SELECTION-SCREEN OUTPUT.
      LOOP AT SCREEN.
        IF P_RADLOC = WL_SPACE .
          IF SCREEN-GROUP1 = WL_ABC.
            SCREEN-ACTIVE = 0.
            MODIFY SCREEN.
          ENDIF.
        ELSEIF P_RADRES = WL_SPACE .
          IF SCREEN-GROUP1 = WL_XYZ.
            CLEAR : P_RESNM, P_NOB.
            SCREEN-ACTIVE = 0.
            MODIFY SCREEN.
          ENDIF.
        ELSE.
          SCREEN-ACTIVE = 1.
          MODIFY SCREEN.
        ENDIF.
      ENDLOOP.

  • Multiple Default Values in a Multi-Select LOV Parameter?

    Hi,
    I have a report in BI Publisher standalone version 10.1.3.4. The report has a list of values called org_lov. This lov is attached to a multi-selection p_org_code parameter from which it is desirable to also have multiple default values.
    For example, if org_lov has the following values:
    100
    101
    102
    103
    104
    105
    106
    I would like to have 3 default values and have 100, 101,105 as the defaults if the user doesn't specifically select anything from the LOV. So far my testing has only allowed a single default value.
    Here are my settings:
    Data type = string
    Multiple Selection = checked
    Can select All = checked (all values passed)
    On the Default Value field, I have tried the following:
    1. 100, 101,105
    2. [100, 101,105]
    3. '100', '101','105'
    4. (100, 101,105)
    5. ['100', '101','105']
    6. ('100', '101','105')
    I don't need these default values highlighted in the LOV, I just need it passed correctly to the query (a data template).
    Thank you in advance for any input.

    Hi,
    Sorry for the delayed reply. I tried what you suggested but the problem is that by having the "Multiple Selection" property of the parameter unchecked, the result is that it allows the user to only have a single value passed. The user wants the option to select multiple values AND also have the multiple default values.
    Thanks anyway.

  • How  to set default value for Zfeild using statusprofile

    hi experts,
    I need to set a default value for a zfeild using status profile.Although we can default the values,using getter and setter methods,but in my requirement,the feild will be defaulted when the page is locked,also in display mode,which will require me to write code to unlock then set the value and then write a commit,as there wont be any user action performed.
    I have created a zstatus profile and have set the required status to inital,but no luck
    please suggest if this canbe achived through status profile.
    Regards
    Anu.

    Hi,
    You can check in the getter if the Page is locked and then display the value to want to display. Note that this will be just Displaying the default value for the Zfield and it will not set the default value into  the Zfield in DB, because when the document is locked ( means locked for editing - mostly when system status is completed ) , setters are not called and so you can display the value but cant set it. This is fine if the value you want to display in Z field is just for user's informations and its not required to save this default value.
    The best approach would be to set the value in the Zfield before the page is locking. For example, If you wat to set the zfield value when status is set to "Completed" , then you can configure an action that is 1) triggered during saving of the document with 2) start condition "When status is completed"  ( both 1 and 2 you can mention in action defination ), then Implement this action badi in which you can set the Zfield to default value.
    This will ensure that default value is always set whenever the page is getting locked for editing ( i assumed that page lock means status completed ).
    Thanks & Regards
    Suchita

  • How  to set a Default Value  in Combobox

    Dear All,
    I want to set a default value in a combobox  when open the form. How can I set that?
    Default value : It is one of the options of the combobox.

    Im doing it as
      If BusinessObjectInfo.FormTypeEx = "150" And BusinessObjectInfo.BeforeAction = False And BusinessObjectInfo.EventType = SAPbouiCOM.BoEventTypes.et_FORM_DATA_LOAD Then
                oForm = SBO_Application.Forms.GetFormByTypeAndCount(BusinessObjectInfo.FormTypeEx, 1)
                Dim vepcombo As SAPbouiCOM.ComboBox
                Dim vepitem As SAPbouiCOM.Item
                vepitem = oForm.Items.Item("24")
                If vepitem.Enabled = True Then
                     vepcombo = vepitem.Specific
                    vepcombo.Select(10, SAPbouiCOM.BoSearchKey.psk_Index)
                End If
            End If

  • How to set default value to input field dynamically

    Hello Experts,
    I am using adobe forms inside Webdynpro Java.
    Adobe form is having few input fields where at run time i want to assign default value to those fields.
    How can i do it ?
    Thanks in advance,
    Vinay
    Edited by: VINAY on Feb 24, 2011 6:39 AM

    Hi Mate,
    Just set the value to the webdynpro context fields on view init.
    if its like that will override the values entered by use on the form.
    just check if the default value is equall to the field value if yes leave it, if not dont touch that field.
    does this make sense...?
    Cheers,
    Sai

Maybe you are looking for

  • For XML - Oracle Equivalent:

    Hey people, I was wondering... SQL server has the 'for xml path' clause; does oracle have its equivalent? I wasn't able to find any leads online. Thought the experts here'd know. Thanks. Edited by: user10175043 on May 23, 2011 11:06 AM

  • Calling a program inside a splitter container

    hello All, Here is my requirement. In the first screen, If I click on a button, then it should pop a dialogue window which will ask for User Input. Once the user gives his input and clicks on "Submit" button of dialogue window, then it should take di

  • Nokia 6500 slide speed dial settings

    Does anyone know how to change the numbers for the speed dials 1 & 2 number 1 is voice mail but is the wrong number and 2 is video calling which i dont want Thanks

  • Wrong today's date on calendar

    Hi Today's date on my ipod touch is 08 jan 1970. This is wrong, what should i do? + ontacts did no synchronized. What should I do? thks

  • Policy not found / access to URL denied

    Hi, I've installed a policy agent for Apache on redhat and integrated it with SunOne ID server. The authentication works as i can login but i then get denied access to the requested URL. The log of the policy agent says that the policy cannot be foun