dialog box closed = > refresh LOV = > set the new value

Hello

I'm really struggling with the following problem. I want my users to pick up existing customers or create a new if it does not exist. So I have a form (P1), a form is LOV with existing customers and a "Create new customer" button next to the LOV that calls the form of the modal dialog box (P2), where the new customer can be added.

In the P2 process customer's line is an option to return an item, so I return it to P2_CUSTOMER_ID (which is my primary key element). On P1, I created the dynamic action:

Event: Dialog closed

Selection type: button

Button: AddCompany

and there are 2 real actions.

(1) item discount P1_CUSTOMERS_LOV

(2) set

Type: Dialog box return

RMA: P2_CUSTOMER_ID

Affected items = > product (s): P1_CUSTOMERS_LOV

LOV customers is refreshed correctly but the value is not set. What is even more surprising, it's that if I "insert" another action between these two (run code alert javascript ("added customer");), the new value is set correctly as planned.

I really have no idea of what Miss me, and any help would be highly appreciated.

Kind regards

Pavel

Pavel,

I could make it work with a Select list. See once more your example. There is a dynamic onload action using

$("#P2_CUSTOMER_ID").bind ("apexafterrefresh", function() {}

$ ('#P2_CUSTOMER_ID') .val ($ (' #P2_CUSTOMER_ID_H ') .val ());

});

then, who is only triggered if the refresh of the selection list is completed.

Denes Kubicek

Tags: Database

Similar Questions

  • < af:valueChangeListener > sets the new value back to the old value

    Hi people,

    I'm trying to implement a search bar with < af:inputText > and < af:selectOneListbox >.

    When the user selects an item in the listbox control, the inputText will be updated. After hitting the "ENTER" key, the search action will be taken.

    The valueChangeListener will be called when the selection of items in the listbox.

    The problem can be described by the following two cases:

    (1) the user types something in the inputText box and hitting 'ENTER' key for a search. The valueChangeListener is called and sets the value of the string user typed.

    (2) the user selects something in the list box, each time changes the selection in the listbox control, the valueChangeListener will be called. But when the user presses the "ENTER" key, the valueChangeListener is still called, and it sets the return value to the old value. For example, the list has 'a ', ' b', 'c '. The user selects 'a', then 'b '. After hitting the "ENTER" key, the value in the inputText is replaced with "a".

    The code is as follows:

    Code in .jspx:

    < af:inputText value = "#{pageFlowScope.word} '"

    autoSubmit = 'true' immediate = "true".

    valueChangeListener = "#{pageFlowScope.update}" / >

    < af:selectOneListbox valuePassThru = "true" >

    < f: selectItems value = "#{pageFlowScope.items}" / >

    < / af:selectOneListbox >

    Bean managed code:

    publicvoid update (ValueChangeEvent event) {}

    This.Word = event.getNewValue (m:System.NET.SocketAddress.ToString ());

    }

    I don't know how the valueChangeListener behaves like that.

    Could someone provide me with clues or tips?

    Thank you

    Carl

    Carl, tell us your version of jdev, please!

    There is something wrong in your implementation. I do not see an inputText field who's value stored in a variable pageflowscope "word". This field has an attached valuechangelistener which is obsolete, because the field already stores its value in the variable pageflowscope. The same that you are trying to do in the valuechangelistener. So I don't see a selectonelistbox which does not store the value selected anywhere because it doesn't have the value property for it. There isn't an attached valuechangelistener so I wonder how your valuechangelistener is called at all when you change the selectoneListBox.

    Timo

  • A link is not set the new value of page elements

    I work in the Application Express 4.1.0.00.32 in my 223 Page I have a "SQL query" region: select * from (SELECT...             '' link_obstr_attgov,... De........ When I run the page, the "link_obstr_attgov" link seems to work, for example a line produces this link: http:// say mysite.it/html/f? p = 207:225:440911817290726:P223_ROWID_PIANO_EDIT, P225_P_UFFICIO, P225_P_DATA_DAL, P225_P_DATA_AL, P225_p_versione:AABHjqAAHAACAO0AAD, 10AA, 01/01/2015,31/12/2017,1 my problem is that when Page 225, P225_P_UFFICIO elements P225_P_DATA_DAL, P225_P_DATA_AL, P225_p_versione have no value. Any help?

    Francesco wrote:

    (Sorry, I don't know the syntax highlighting feature again, next time I'll try to use)

    I worked initially with the integrated declarative column binding feature and it worked fine, but now my problem is that the value of a certain value of the column in the row, the navigation should move to-let's say - "page one" or "page b", so I would use "CASE...". WHEN"in the report query.

    How the different options regarding the parameters involved are? If they are similar partial substitutions can be used in the connection of the declarative column. Determine the page target in the logic of the query:

    select
        ...
        case ...
          when ... then '225'
          else '226'
        end page
    ...
    

    and use the value of the page in the link URL column:

    f?p=&APP_ID.:225:&SESSION.::&DEBUG.::P223_ROWID_PIANO_EDIT,P#PAGE#_P_UFFICIO,P#PAGE#_P_DATA_DAL,P#PAGE#_P_DATA_AL,P#PAGE#_p_versione:#P223_ROWID#,#EMPNO#,#HIREDATE#,#HIREDATE#,#SAL#
    

    Separation concerns and use declarative functionality is the approach in the APEX. A bit of lateral thinking is often useful.

    Otherwise, URL encode all values of parameter as described above:

    '  link_obstr_attgov
    
  • I just updated my indesign to CC of CS5. One thing I notice which is annoying is some text boxes and images go live. For example, if you close a text box in CS5 you close the box you see reformat the text to set the new size. In the tex CC

    I just updated my indesign to CC of CS5. One thing I notice which is annoying is some text boxes and images go live. For example, if you close a text box in CS5 you close the box you see reformat the text to set the new size. In CC, the text does not reformat until you are done change the size of the box. It's the same for the images when resizing or rotation re. You don't know what you have until its finished. If you are a little guess instead of see what you're doing while. Is there a way to change this, or does anyone else have this problem. Maybe it's just what does CC. But I'm not a fan... Can anyone help?

    When using the image processing manages, click... for a while... then drag...

  • APEX 5.0 after you close a modal dialog box, I want to introduce the parent page, without losing session values

    I have a parent page that triggers a modal dialog box in APEX 5.0. When the user confirms in the dialog box, it closes the dialog box by using the process of dialogue.

    In the parent page, if I do not have a dynamic action "Dialog box closed", the user returned to page with the values, they recently came again here. If I add a closed action dialog box to send the page, the values are lost - it's as if the page refreshes before submitting. Someone knows how to solve this problem.

    Thank you.

    user3282753 wrote:

    Please update your forum profile with a recognizable username instead of "user3282753": Video tutorial how to change username available

    Also, is it possible to display the success message from the Page of the dialog box without updating the parent page.

    See Roels Blog: display a success message after you close a modal dialog box

  • How to set the new tab to open a homepage

    After the recent update to version 44.0.1 I lost the ability to open a new tab and open the new tab homepage. Someone can help me.

    Thank you

    Do you mean when you open a new tab, you want to see your regular home page instead of the page of the new integrated tab on Firefox?

    41 of Firefox is no longer uses the browser.newtab.url setting in about: config because he was constantly attacked by malware. From 41 of Firefox, you need an add-on to change the new tab page.

    Here are a few options (I'm learning more all the time):

    • If you are already using the "Restorer of classic theme" or "Tab Mix Plus" extension: There is an option somewhere (!) in his dialogues of the parameters to select another page in the new tab.

    Use only one of these methods at the same time, otherwise there may be conflicts and dysfunctions.

    Setting up substitute new tab and new tab custom

    After installing one of these extensions, you must use the Options page to set the new desired tab page (instead of use subject: config).

    Open the page modules using either:

    • CTRL + SHIFT + a (Mac: Cmd + shift + a)
    • "3-bar" menu button (or tools) > Add-ons

    In the left column, click Extensions. Then on the side right, find the new tab replace or custom new tab and click on the Options button. (See first screenshot attached).

    New tab Override

    Depending on the size of your screen, you may need to scroll down to enter the address in the form. (See second screenshot attached). For example:

    • (Default) page thumbnails = > subject: newtab
    • Blank tab = > subject: empty
    • Built-in Firefox homepage = > topic: welcome
    • Any other page = > full URL of the page

    Then tab or click this form field and you can test using Ctrl + t.

    Custom new tab

    It is easy to enter your favourite homepage address. If you check either of the boxes, the expansion will set the focus in the page as well, for example, the cursor will be in the Google search box. (See third screenshot attached). I had to leave Firefox and start it up again before new custom tab started working, but this may have been due to tests so many extensions back to back.

    Success?

  • Help on the dialog box permits preventing projection during the passage of location

    Hi all!

    I am trying to add location is fixed on an application and I'm trying to avoid having the permissions pop-up that asks the user to allow using GPS. I have to press at least JDE 4.6.0 and I have been using this article as a guide: http://supportforums.blackberry.com/t5/Java-Development/Location-APIs-Start-to-finish/ta-p/571949

    I used the sample code to get a localization using Cellsite Mode solution, but I still get the permissions dialog box. I figured using the Cellsite Mode, it would not require authorization because he isn't using GPS. Someone at - it one know a way to prevent the permissions dialog box from popping up or always displays because I'm asking for the location of a user? I have to use a new JDE to achieve?

    Thanks, any comment is appreciated.

    I can assure you that you are unable to obtain location information, or information that could help with location (e.g. mast connected information) without some acceptance of the user's permissions.

  • Refresh of Page partial update of form before the data control returns the new value

    Hello

    I have a set of paintings of master detail based on a single data source (Session Bean encapsulating a web service call). The high-level table (t1) shows data of opportunity, as the low level (t2) poster contacts for a special occasion. When the opportunity is selected in t1, the contacts associated with this opportunity appear in t2. These tables of work as you wish.

    I have a read only form (form of the Panel layout) based on a different data control (supported by a Session Bean that calls a LinkedIn API and a table of database using EJB3 entities). LinkedIn Session Bean method takes a parameter which I get from the current row in t2. (#{bindings.relatedContact.currentRow.dataProvider.id}) I put the PartialTriggers as 't2' on the form.

    When the page is loaded for the first time, the first line (line A) from table t2 is selected and the display shows the data associated with this line. If I select another line (line B), the Session Bean is called with the value of the id of the newly selected row, but the display will show the associated data from line A. Thereafter, whenever I select a row in t2, bean is called with the new value, but the form displays the data from the selected line previously.

    I guess what happens is that the form is refreshed (using stale data in the data control), and then the call to the session bean is made. I checked using thread and print statements. Sleep() in the bean.

    Is this a correct behavior and how can I make sure that the call to the bean occurs before the form is updated?

    I use JDeveloper version 11.1.2.2.0

    Thank you
    Michael

    Hello

    as answered on StackOverflow, the trick is to set the refresh option on the iterator (s) to the second access WS (table 2) of PageDef on ifNeeded. The default setting is delayed, which in your case is not optimal because refresh occurs during rendering response, which is too late for the access of WS. Try "ifNeeded.

    Frank

  • While to download Adobe Camera Raw 5.5 plug, the download dialog box shows completeted, and immediately the page internet explore Flash

    Original title: download problems

    I am running vista with internet explorer 7.

    While I try to download the plugin Adobe Camera Raw 5.5, the download dialog box shows completeted and immediately the internet explore page statrsts flashing. I can't do anything with the computer out to turn it off manually.

    I have Adobe flash Player version 10.3 installed and you have disabled the pop ups.

    Help.

    Nick.

    Hi Nick,

    1 download of Adobe successful or you trying to download again and again?

    2. other than this issue is IE works well?

    You can try to download any add ons mode and check.

    You can temporarily disable all add-ons and check what is happening.

    a. click the Start button, click principally made programs, accessories, click System Tools and then click Internet Explorer (No Add-ons).

    You can visit the following link to download the Adobe Camera Raw 5.5 update

    http://www.Adobe.com/support/downloads/detail.jsp?ftpID=4578

    You can also check out the following link and check:

    When you start Internet Explorer, it opens, flashes and then closes immediately

    http://support.Microsoft.com/kb/967896

    Hope this information is useful.

  • Error when setting the minimum value of entry number Spin Box...

    Hai
    I drag and drop a VO and created a table. In this table, I cast a column that contains an InputText field to entry number Spin Box. During loading of the page, the table retrieves data from the database and display of numerical values in the SpinBox.After who, when I scroll the table through vertical scroll bar, the table * "data extract" * and error began as * "the value must be the number" *... In the original Version, this attribute is a number.
    THIS ERROR will PRODUCT ONLY when I put the minimum value of the counter... The purpose of minimum value, I want only the user to select the value of ve only... How can I prevent the user to select only values of ve... ? (IE, * how to set the minimum value of counter?) *

    Try changing the data type of your attribute in the EO to be Double instead of number.

  • When you create a PDF from a scanner, is there a way to set the default value for the size of 8.5 x 11 letter custom every time I make a PDF from a scanner?

    When you create a PDF from a scanner, is there a way to set the default value for the size of 8.5 x 11 letter custom every time I make a PDF from a scanner?

    Hi kevin7frg,

    You can go to "file > create > scanner > configure presets PDF»

    The dialog box that appears, you can choose 8.5 X 11 as the default width and height of PDF pages to scan.

    Hope that helps.

    Kind regards

    Ana Maria

  • How to set the minimum value of a graphic waveform window?

    I have a graphics property of waveform "minimum value", but the graph is not take the value that I gave him. He tends to zero, as well as the first two sliders that I put on the graph. The maximum value "will be" no problem, just like the second slider value. Everyone knows about this problem? Here's a screenshot...

    Is there a reason why my chart does not have what I have to say?

    Thank you

    Sometimes you may have problems if the new minimum is higher than the maximum of old.  Try to write at least again in another node in property after you set the maximum value

    Without seeing your VI and some parameters of the example, (old max and min) new max and min, it is otherwise difficult to say.

  • Extension of EO or CO to set the default values?

    Hi all!

    I spread an EO, ExtBankAccountsEOImpl, which contains the bank details of a provider.

    When I create a new retail bank, I want to set the default value of some fields (for example the currency)

    According to the nationality of the supplier (all fields are null by default oracle). See below.

    bank_det.PNG

    Is this possible with EOs? Can the EO extended somehow get their hands on the party_id?

    Or do I have to extend the CO instead?

    Best regards

    Christian

    Christian,

    Thus, your EO extension works very well, no?

    You need to check the standard code (controller and methods of AM which is called by the CO) and see if the party_id is stored as part of the operation or not. If so, you should be able to get the values in extended OS.

    If this isn't the case, you must extend the CO.

    Note: Changes made by extension EO EO will affect all pages using the OS, if any other page exists.

    I hope this helps.

    See you soon

    AJ

  • How to set the default value of the attribute with a sequence number? Is it possible to add a string to seq.no. like abc0001?

    Mr President.

    How to set the default value of the attribute with a sequence number? Is it possible to add a string to seq.no. like abc0001?

    Concerning

    For the date, you can use groovy expression adf.currentDate to set the current date. reference http://adfgouravtkiet.blogspot.in/2012/11/how-to-set-default-values-for-entity.html

    You already have ways to use the sequence.

    How do you add a new value in the form. You're creating a new line of your page (user interface) and by engaging with validation operation? Unless you commit you will not be able to see anything in the table.

    Thank you

  • How to set the default value of the component selectOneChoice in the table to the ADF

    Hi all

    I use jdev 11.1.1.6.0 version.

    I used an adf table in which an attribute is selectOnceChoice.

    To create the table and selectOneChoice I used the data control java bean.

    and drag and drop a table and after that I have drag and drop one of the attributes as selectonechoice and linked with the return of the method list as < key, value > pair.

    I want the default value to select only one option in each attribute rows.

    I checked with simillar issue on post next, but not yet resolved.

    
    
    
    
    

    My jspx code is

    
    <af:column id="c11"
                                             headerText="Invoice To" >
                                        <af:outputText value="#{row.invoiceTo}" id="ot19"/>
    <af:selectOneChoice value="#{bindings.invoiceTo.inputValue}"
                                                        label="#{bindings.invoiceTo.label}"
                                                        required="#{bindings.invoiceTo.hints.mandatory}"
                                                        shortDesc="#{bindings.invoiceTo.hints.tooltip}"
                                                        id="soc3"
                                                        autoSubmit="true"
                                                        valuePassThru="true">
                                      <f:selectItems value="#{bindings.invoiceTo.items}"
                                                     id="si4"/>
                                    </af:selectOneChoice>
    </af:column>
    
    
    

    where invoiceTo is the table attribute and the invoiceTo attribute is dragged and dropped as a SOC function list Source data mapped data value with the List attribute

    and the display attribute

    Data value = invoiceTo List = lovMasterKey attribute

    Display attribute = lovMasterValue

    that list is maintained at < lovMasterKey, lovMasterValue >

    According to the value of invoiceTo line, it should show as default value is selectOneChoice, but its showing no not as a default value.

    Please, help me how set the default value of selectOneChoice in the table according to each value line invoiceTo.

    Thank you all for the help on this issue.

    Problem has been resolved.

    Reason for this was used

    It is solved using code used for the list built for selectoneChoice more

      List lovMasterList = new ArrayList();
    
    SelectItem siItem = new SelectItem();                      
    
    siItem.setLabel(objAfCmnLovMasterListVO1.getLovMasterValue());
    
    siItem.setValue(objAfCmnLovMasterListVO1.getLovMasterKey());
    
      lovMasterList.add(siItem);
    

    Now, I used the code where the line below. InvoiceTo is the key and row.invoiceToItems are the list of articles for selectOneChoice.

    
    
    
      
    
    

    Thank you very much...

Maybe you are looking for

  • How to get rid of a popup offering to remember my password that appears in the upper left corner?

    Yes, this popup is annoys me no end! It appears each time I fill in a password anywhere! It is more or less said: "Do you remember this password?". first of all I didn't know what program did this, but now I know that it is Mozilla Firefox. Why so ma

  • How to find the correct COM port

    I am trying to load software Palm V Organizer Office but the connection cannot be done byween the cradle of the Palm and the port. There seems to be a free port, but it does not connect. I use a serial to USB adapter and a USB port on my Equium A60.

  • Portege 3440CT: update my O.S.

    I have a Toshiba - Portege 3440CT. My operating system is Windows 98, distributed by Toshiba. Now I need an update for my O.S. and I am looking for Windows 2000 or more. I need a help.Thank you

  • Re: Satellite Pro 6100: can I use RAM PC3200 modules

    Hello I looked on the specification for this laptop and it does not have to go on 1gig, on the site of crucial, it says to use pc2700, But the laptop would always fully work with PC3200 (400 MHz) in it? Also the laptop actually supported on 1gig? Tha

  • Realtek RTL8188EE 802.11bgn wifi

    Buy HP Pavilion Notebook - 17-f123ds and the adapther Wireless does not query my 5 GHz network. I've done many research and cannot find all of the information that works this Realtek RTL8188EE 802.11bgnadapther. There's no sense that this model would