How to refresh Portal form with dependent LOVs ?

I have a portal form which has dependent LOVs, the first LOV is
a Site LOV and the next LOV is a Teacher LOV. Once a Site is
selected, the form refreshes to load the Teacher's LOV with
teachers belonging to the selected Site.
In some cases the Site is assigned internally (using Javascript)
in such cases the form does not refresh automatically; which
causes the problem, as all the Teachers of all the Sites are
loaded in the LOV.
Any suggestions are welcome.
Thanks,
Hilal

Put this code into the javascript onChange event of the list box
that you want to automatically refresh the screen with:
do_event(this.form,this.name,1,'CUSTOM','');
that should cause the screen to refresh when an item is chosen.
at that point, the 2nd list box (if you used the :paremter in
the LOV and bound it to the right field in the form) should come
up with the proper set of values Thanks Michael,
But my problem is not with that part of refreshing; that is
refreshing, when a value is picked from the first LOV to re-load
the second LOV works fine.
My problem is only when the value of the first LOV is internally
set, the form does not refresh to re-load the second LOV. The
value of the first LOV is loaded(internally) using one of the
fields in "wwsec_api.person_info", eventhough this value is set,
it does not trigger a refresh to re-load the dependent second
LOV.
I guess a solution to this problem would be to explicitly
refresh the form (I am not able to figure out how).
Hope I have clarified myself.
Thanks.

Similar Messages

  • How to refresh Portal form with LOV POPUP ?

    I have a portal form which has a LOV which is a POPUP.
    When the POPUP is filled, I need that another LOV (a combo box) be refreshing by its dependent bind variable.
    When the Popup is filled, nothing happens.
    I tried with this javascript:
    do_event(this.form, this.name, 1, 'CUSTOM', '');
    But it works only if the first LOV that is the Popup is use as a combo box.
    I still need to use the Popup.
    Thanks.
    Enrique.

    This is a known issue and this is soon going to be fixed .It might be available in the next patch.
    Actually you will see that if you have written code in onChange of POPUP then if you change the value in the text box of the POPUP lov it will work but when you will select it from the POPUP values the event will not be generated.
    rahul

  • Urgent, how to refresh a form with a returned parameter?

    Hi people,
    I am working in web application using EJB and ADF.
    In the main page I have a form and a "search" button.
    The "search" button opens a popup window that displays the same form's data in a table with selection and submit. I want to choose a record from the table then submit, close the popup, back to the main page and refresh the form so the current record shows by the form is the record that I have choosen in the popup window.
    I did the following:
    Created named query "MyEntitySearch"
    @NamedQuery(name = "MyEntity.Search",query="select o from myEntity o where o.id = :id"
    I made some things so that if id == null -> return all records of the table
    else return the selected record.
    I dragged and dropped the same method in the main page and in the popup.
    In the popup: the submit action listener takes the id of the selected row and close the popup.
    public String commandButton1_action() {
    System.out.println("retID");
    JUCtrlValueBindingRef selectedRowData=(JUCtrlValueBindingRef)
    this.getTable1().getSelectedRowData();//return the selected table from the interface
    RowImpl row =(RowImpl)selectedRowData.getRow();//get the selected row myEntity selectedValue=(myEntity)row.getDataProvider();//from the entity bean
    System.out.println("ID = "+selectedValue.getId());
    AdfFacesContext.getCurrentInstance().returnFromDialog(selectedValue,null); //close the dialog window and send the value
    return null;
    In the main page backing been:
    private Long ID=null;
    //in the return action listener of the "search" button :
    public void ret_action(ReturnEvent returnEvent) {
    MyEntity myentity = (myEntity)returnEvent.getReturnValue();
    //**return the selected row from the dialog window
    ID=(Long)myentity.getId();
    BindingContainer bindings = getBindings();
    OperationBinding operationBinding =
    bindings.getOperationBinding("queryMyEntitySearch");
    operationBinding.getParamsMap().put("ID","id");
    operationBinding.execute();
    System.out.println(ID+"the returned value");
    I made the form partial triggers with "search" button, immediate and autosubmitt.
    After all of that, unfortunately the form doesn't change its current record to the selected id record.
    The returned selected ID from the popup is returned correctly when I printed it. But no changes in the form.
    Please to those who know or faced the same problem; I am waiting.
    Regards.

    Hi,
    if you need to access the return value of a method you need to ceate an attribute binding for its result set. Go to the pagedef file, create a new attribute binding and choose the method's result item. Then reference the attribute binding.attributename.inputValue
    Frank

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

  • Mandatory fields on the same page with dependent LOVs

    Hi,
    I am working on an ADF-BC application using JDeveloper 10.1.3.4
    I have an ADF Creation form with dependent LOVs and while implementing dependent LOVs we set the autoSubmit property of the selectOneChoiceListBox as true.
    If I have some mandatory fields on the same page then because of the autoSubmit property set as true whenever I select a value in the list the page gets submitted and the mandatory fields give an error that the values are required therefore I had to remove the mandatory fields.
    I tried using f:subview but even that dint serve the purpose because what I want is something like partialSubmit so that my mandatory fields do no give an error when I select a value in the list.
    Can somebody help me on this, how to have a dependent list and mandatory fields on the same page.
    P.S: It is very crucial for my application
    Thanks,
    Raksha

    Hello,
    This bug has been around since 10.1.3, its even still present in Trinidad and now in 11.
    One of the ways to avoid is to make your fields use:
    showRequired="true"instead of
    required="true"I have not found a decent way to avoid this in general.
    My idea was that this shiould be possible with a phaselistener and determine if this is a partial page event instead of a normal submit, but this didnt work.
    -Anton

  • How to Refresh System Form on Before Action using DI

    Dear All,
    Please give me idea for Refresh System Document in Run Time on Before Action using DI,basically I am using  system columns for update for some scenarios.
    So please give solution that how should refresh system form.
    Thanks a lot.
    Ashish Singh.

    Hi,
    See i already descrived you my case what i am exactly doing.
    Now,
    Document Name -Purchase Order
    All The item is non excisable and i want to put value in Assable Column for calculation Tax but when i non excisable then you can not put value in Assable column.so when user will add purchase order then i updating Excisable columns with value of 'Y' for Assable value.now this case is running correctly.
    But if any change will come of particular purchase order then user need to put value in any field and now i am supposing change field is remarks.
    And Then user click on update filed button then system giving error that "there is excisable item with non-excisable tax code" and after this not allow to update.but i wrote code in item press before action for update excisable filed with value of 'N' for time being. but the case is sap not refresh doc when i changed any any value ,
    so main concern is i want to reflect value with front end immediate.
    Thanks
    Ashish

  • How to Refresh System Form in Run Time

    Dear All,
    Please give me idea for Refresh System Document in Run Time using DI,basically I am using  system columns for update for some scenarios.
    So please give solution that how should refresh system form.
    Thanks a lot.
    Ashish Singh.

    Hi,
    Please post above discussion in SDK forum.
    Thanks & Regards,
    Nagarajan

  • How to format a form with adf

    Hi,
    I want to format an adf form like this :
    http://dl.dropbox.com/u/33421977/adf_form.PNG
    To do this I have used af:panelDashboard and af:panelBox with af:panelFormLayout inside.
    Now I don't want to use panelBox anymore, but I don't know how to achieve this without panelDashboard/panelBox.
    What is th best aproach to do this? Can you send me some links which explain how to format a form with adf?
    Thanks.

    Is just a question of style. In the real application this form is included in another panelBox. So it looks too... I don't know how to say it... too heavy?
    In fact I don't want to see these panelBoxe's borders. Maybe I have just to change the style of these boxes? Do you know if it is possible?
    But more generally, what is the right way to format adf forms? Can I achieve this sort of formatting just using panelFormLayout?

  • How to call a form with dabble clicking on a record with one time where

    Hi All,
    How to call a form with dabble clicking on a record with one time where clause. I mean when i dabble click on the current record i want to call another form with details of the
    record with onetime where clause. Can anyone help me in this regard.
    Now i am calling a form with parameter with onetime where but this should avoid.
    Thanks in advance
    Arif

    Hello,
    I mistakenly mark it as solved. There is a problem remain. when i placed the code below it do not execute with the where condition. I mean the condition to execute is not work.
    All records executes. Please correct my code--
    Here the WHEN-BUTTON-PRESSED-trigger on the Edit-Button:
    :GLOBAL.MODE:='EDIT';
    :GLOBAL.REQ_ID:=:PROBLEM_REQUEST.REQ_ID;
    CALL_FORM('REQUEST_ID_PARAM',NO_HIDE,DO_REPLACE,NO_QUERY_ONLY);And also, WHEN-NEW-FORM-INSTANCE-trigger of REQUEST_ID_PARAM:
    DEFAULT_VALUE(NULL, 'GLOBAL.MODE');
    DEFAULT_VALUE(NULL, 'GLOBAL.REQ_ID');
    IF :GLOBAL.MODE='EDIT' THEN
    GO_BLOCK('PROBLEM_REQUEST');
    EXECUTE_QUERY;
    SET_BLOCK_PROPERTY('PROBLEM_REQUEST', INSERT_ALLOWED, PROPERTY_FALSE);
    END IF;Arif

  • How to link a form with MSC2N

    Hi,
    Somebody know how to link a form with MSC2N.
    I want to complete the characteristic in the classification and after I want to print them with MSC2N;
    Thanks a lot for your help.
    Best regards
    Kari

    I explain you my problem.
    I want to link a form with MSC2N in order to print all the characteristic, and  all the informations of the good issue.
    That's why I want to link a form with MSC2N.
    My customer ask me to ceate a form with these informations and I don't kow how to join the characteristics in MSC2N and the datas which come from MIGO.
    Somebody could help me?
    Thanks a lot
    Kari

  • How to design a form with multiple lang(Arabic and Eng) in a page

    Hi All,
    Could you pls help me how to design a form with multiple languages. when I set the form proprties-->Form Locale as Arabic. English text is comming in reverse and when set the FormLocale as English, Arabic text is comming in revese.
    Pls help me how to design
    Thanks in advance.
    Regards,
    Jayakar

    I am not sure how you can have two different languages inside the same PDF.
    Alternatively, if you want to place only the static labels, you can convert all the static label in one language to images and set the form language setting to other. And place the images inside the form using Image field. For example, you can keep the form language as English and then convert all the arabic language labels/ Static text to images.
    Anotherway,
         Have same sections in both the languages and hide and unhide based on the user selection of the language..
         if your user chooses Arabic, then you can unhide the Arabic sections and change the form language properties programmatically..
    Thanks
    Srini

  • How to design a form with multiple lang(Arabic and Eng) in a pge

    Hi All,
    Could you pls help me how to design a form with multiple languages. when I set the form proprties-->Form Locale as Arabic. English text is comming in reverse and when set the FormLocale as English, Arabic text is comming in revese.
    Pls help me how to design
    Thanks in advance.
    Regards,
    Jayakar

    I am not sure how you can have two different languages inside the same PDF.
    Alternatively, if you want to place only the static labels, you can convert all the static label in one language to images and set the form language setting to other. And place the images inside the form using Image field. For example, you can keep the form language as English and then convert all the arabic language labels/ Static text to images.
    Anotherway,
         Have same sections in both the languages and hide and unhide based on the user selection of the language..
         if your user chooses Arabic, then you can unhide the Arabic sections and change the form language properties programmatically..
    Thanks
    Srini

  • How to Open multiple form with only one screen painter file

    Hi all ,
    I want to reopen the form without closing the active form ,i want to use same srf file ..
    I have already try it but form already exist error occur .
    pl help me , how to do it ?
    how to open multiple form with same srf file without closing active forms .
    thanks in advance,
    msw

    <?xml version="1.0" encoding="utf-16" ?>
    <Application>
      <forms>
        <action type="add">
          <form appformnumber="-1" FormType="-1" type="0" BorderStyle="0" uid="BOE" title="Bill of Entry" visible="1" default_button="1" pane="0" color="0" left="365" top="62" width="801" height="410" client_width="785" client_height="372" AutoManaged="1" SupportedModes="15" ObjectType="">
            <datasources>
              <dbdatasources>
                <action type="add">            
                </action>
              </dbdatasources>
              <userdatasources>
                <action type="add"/>
              </userdatasources>
            </datasources>
            <Menus>
              <action type="enable">
                <Menu uid="1282"/>
              </action>
              <action type="disable">
                <Menu uid="5890"/>
              </action>
            </Menus>
            <items>
            </items>
            <ChooseFromListCollection>
              <action type="add">
                <ChooseFromList UniqueID="-1" ObjectType="-1" MultiSelection="0" IsSystem="1"/>          
              </action>
            </ChooseFromListCollection>
            <DataBrowser/>
            <Settings Enabled="0" MatrixUID="" EnableRowFormat="1"/>
          </form>
          <form appformnumber="-1" FormType="-1" type="0" BorderStyle="0" uid="BOE1" title="Bill of Entry" visible="1" default_button="1" pane="0" color="0" left="365" top="62" width="801" height="410" client_width="785" client_height="372" AutoManaged="1" SupportedModes="15" ObjectType="">
            <datasources>
              <dbdatasources>
                <action type="add">
                </action>
              </dbdatasources>
              <userdatasources>
                <action type="add"/>
              </userdatasources>
            </datasources>
            <Menus>
              <action type="enable">
                <Menu uid="1282"/>
              </action>
              <action type="disable">
                <Menu uid="5890"/>
              </action>
            </Menus>
            <items>
            </items>
            <ChooseFromListCollection>
              <action type="add">
                <ChooseFromList UniqueID="-1" ObjectType="-1" MultiSelection="0" IsSystem="1"/>
              </action>
            </ChooseFromListCollection>
            <DataBrowser/>
            <Settings Enabled="0" MatrixUID="" EnableRowFormat="1"/>
          </form>
        </action>
      </forms>
    </Application>

  • I HOW I FILL PDF FORM WITH HEBROW ON CHROME ?

    I HOW I FILL PDF FORM WITH HEBROW ON CHROME ?

    Chrome uses its own (incompatible) PDF viewer.
    Download the PDF to your local disk, then fill it from there with Adobe Reader.  Or use a browser that uses the Adobe PDF plugin.

  • How to populate smart form with new values

    Hi!
    I am new to smart form . Can anybody help me in how to populate smart form with some new fileds. Actually i have to populate credit memo form with some customized values..

    Hello,
    Please elaborate your query more in order to be comprehendable.
    Regards,
    Shehryar

Maybe you are looking for