Problem simple "selection with submit list.

Im trying to make a list of column selection based on a SQL LOV query in one of my forms. Now, I tried making it a normal life select list without the option to send and when I enter all required data and press the button create a new entry is created in my table.

I changed the column type to select the list to submit. Now when I press the apex of the button create warns me that there are missing values in the required columns and when I write the in the insret in my table works fine.

OK, now I realized that I needed a procedure branch that branches off to the same page of form before validation and sets my value selected on the same page of the form. Ive done pass the value of the selected column. Now when I press the button create the page redirects to itself. I tried to make another redirection process that runs on the button create and redirects to the page of report, but the same thing happens. The page is redirected to itself.

The solution should be simple enough, but it escapes me.

Hey there,

What about branching, what you want to do.

Let's say that your selectlist is called 'P3_SELECT '.

When you change this value, and he sends, it sets DEMAND = "P3_SELECT."

So what you want to do, is to add a condition to the branch where you branch to the same page.

Condition: Request = Expression 1
and enter the field of Expression 1, P3_SELECT.

You can also do the reverse. If your button "Create" submits that CREATE, you can use application = CRΘER one condition to the other branch. "."

However, if you have no conditional branches, the branch with the lowest sequence number first fires.

Hope this helps - good luck.

See you soon,.
Vidar

Tags: Database

Similar Questions

  • Select which type of list APEX 4 replaces the selection with redirection list in APEX3.1

    I have 3 selection lists. The first select list is filled with elements by default, independent of the other element values. The second list depends on the value chosen in the list of the first and the third list depends on the values selected in the list of the first and second.

    APEX 3.1 I did the first and the second list "Select list with redirection", because I don't want the page to be submitted, but I want only the values to set. This solution works very well.

    Now, I want to apply this solution in an APEX 4.0 page. The elements are all defined in a select list. I tried different settings-> Page Action options when the changed value. Redirecting to the page and URL redirection are not an option in this case.
    Submit the page and redirect and SetValue both entail the same problems: after choosing a value in Selectlist1 the other elements are reset, but selectlist2 is populated with the items I want. All elements of the page are reset after choosing a value in Selectlist2 and Selectlist2 (and selectlist3) are still empty.

    So my question is: what is the best option to choose when I want to fill the lists that depends on the other? Are there other solutions to use, and then select list with redirection and SetValue?

    Hello

    For dependent Select lists 4 APEX, LOV cascading is the way to go.

    On the second list, select under "List of values" define "Cascading LOV Parent éléments" =
    On the third first + second or third, only value according to your particular situation.

    And when the value modified the Page Action = None.

    Concerning

  • SELECT with many setting set SQLite (> 200)

    Hello

    I have an exception when I run a simple SELECT with 220 parameters:

    Statement st = mSQLiteDatabase.createStatement ("SELECT name, UserId FROM myTable WHERE UserId =? OR UserId =? OR UserId =? OR UserId =? OR UserId =? OR UserId =? OR UserId =? OR UserId =? OR UserId =? OR UserId =? OR UserId =? OR UserId =? OR UserId =? OR UserId =? OR UserId =? OR UserId =? OR UserId =? OR UserId =? OR UserId =? OR UserId =? OR UserId =? OR UserId =? OR UserId =? OR UserId =? OR UserId =? OR UserId =? OR UserId =? OR UserId =? OR UserId =? OR UserId =? OR UserId =? OR UserId =? OR UserId =? OR UserId =? OR UserId =? OR UserId =? OR UserId =? OR UserId =? OR UserId =? OR UserId =? OR UserId =? OR UserId =? OR UserId =? OR UserId =? OR UserId =? OR UserId =? OR UserId =? OR UserId =? OR UserId =? OR UserId =? OR UserId =? OR UserId =? OR UserId =? OR UserId =? OR UserId =? OR UserId =? OR UserId =? OR UserId =? OR UserId =? OR UserId =? OR UserId =? OR UserId =? OR UserId =? OR UserId =? OR UserId =? OR UserId =? OR UserId =? OR UserId =? OR UserId =? OR UserId =? OR UserId =? OR UserId =? OR UserId =? OR UserId =? OR UserId =? OR UserId =? OR UserId =? OR UserId =? OR UserId =? OR UserId =? OR UserId =? OR UserId =? OR UserId =? OR UserId =? OR UserId =? OR UserId =? OR UserId =? OR UserId =? OR UserId =? OR UserId =? OR UserId =? OR UserId =? OR UserId =? OR UserId =? OR UserId =? OR UserId =? OR UserId =? OR UserId =? OR UserId =? OR UserId =? OR UserId =? OR UserId =? OR UserId =? OR UserId =? OR UserId =? OR UserId =? OR UserId =? OR UserId =? OR UserId =? OR UserId =? OR UserId =? OR UserId =? OR UserId =? OR UserId =? OR UserId =? OR UserId =? OR UserId =? OR UserId =? OR UserId =? OR UserId =? OR UserId =? OR UserId =? OR UserId =? OR UserId =? OR UserId =? OR UserId =? OR UserId =? OR UserId =? OR UserId =? OR UserId =? OR UserId =? OR UserId =? OR UserId =? OR UserId =? OR UserId =? OR UserId =? OR UserId =? OR UserId =? OR UserId =? OR UserId =? OR UserId =? OR UserId =? OR UserId =? OR UserId =? OR UserId =? OR UserId =? OR UserId =? OR UserId =? OR UserId =? OR UserId =? OR UserId =? OR UserId =? OR UserId =? OR UserId =? OR UserId =? OR UserId =? OR UserId =? OR UserId =? OR UserId =? OR UserId =? OR UserId =? OR UserId =? OR UserId =? OR UserId =? OR UserId =? OR UserId =? OR UserId =? OR UserId =? OR UserId =? OR UserId =? OR UserId =? OR UserId =? OR UserId =? OR UserId =? OR UserId =? OR UserId =? OR UserId =? OR UserId =? OR UserId =? OR UserId =? OR UserId =? OR UserId =? OR UserId =? OR UserId =? OR UserId =? OR UserId =? OR UserId =? OR UserId =? OR UserId =? OR UserId =? OR UserId =? OR UserId =? OR UserId =? OR UserId =? OR UserId =? OR UserId =? OR UserId =? OR UserId =? OR UserId =? OR UserId =? OR UserId =? OR UserId =? OR UserId =? OR UserId =? OR UserId =? OR UserId =? OR UserId =? OR UserId =? OR UserId =? OR UserId =? OR UserId =? OR UserId =? OR UserId =? OR UserId =? OR UserId =? OR UserId =? OR UserId =? OR UserId =? OR UserId =? OR UserId =? ») ;

    If I execute the same statement with 10 settings for example, there were no problems!

    Is this another limitation of implementation of Blackberry?

    Thanks in advance.

    You can try this IN operator

    Statement st = mSQLiteDatabase.createStatement ("SELECT name, UserId FROM myTable WHERE UserId in (UserId, UserId, UserId, UserId,... UserId);")

    Note: This is not tested in the Sqlite database.

    But successfully performed in the other RDatabase.

    Thank you

    ------------------------------------------------------------------------------------
    Kudo press to say thank you to the developer.
    Also, press accept it as a button when you got the Solution.

  • ListView / sheet problem - not selected item after the opening of leaf.

    Hello

    In my main.qml, I have a listview using the standardlistitem.

    I have a popup menu attached to the standardlistitems.

    Now, initially, I had a problem of selection of a list item when I called one of the options in the context menu of the element. The element does not get selected when you make the menu appear.

    To solve this, I use the onTriggered signal from the context menu to call select on the listview. He calls the onSelectionChanged listView itself signal.

    Now here is my problem:

    If I call a function c ++ this signal of the main.qml and in this c function onSelectionChanged ++ I call the funtion selected() on ListView to obtain the row function works correctly and the index is returned.

    But if I have everything first to make a visible sheet and call the function c ++ within the call to selected() worksheet returns nothing.

    There is nothing in my qml or CPP which clears the selection, this occurs by default or something when the worksheet is opened?

    THX.

    This answer worked for you?

    Graham

  • Problem of style with printed documentation

    I'm generating printed material in my project, RoboHelp HTML Word. Using some of the tips on the website of Peter Grange, I created my first night out by choosing the option '[none] - use styles CSS for the project' in the printed Documentation Wizard.

    The result was very good and I just had to make some changes to the styles in the Word document to get the styles to look as I wanted. Then, I saved the Word file as a template and import the model into my project.

    The next time that I generated the printed output, I had a problem of formatting with numbered lists. The indentation is not what I had in the model. I tried formatting in a paragraph and update the style of attachment, but not changes to all instances of the style numbered list. In the Word template, I used the same numbered list style that was in my aid project rather than a standard numbered list styles in Word by one of the suggestions in this forum.

    Any suggestions on getting the indentation for numbered lists correspond to what is in my template, without having to set each item in a list me? The main problem I find is that the indentation of each numbered list item gets changed to 0.04 (it is 0 in my model) and an additional tab is added. Also, while in my model the indent and the tab are both set to 0.22, when I generate printed documentation, there are two legs to 0.22 and 0.25, and the hanging indent is set to 0.25. In some cases, a tab gets the value 0.29!

    Thank you
    Alan

    Peter,

    Yes, you were right. Before the regeneration of the printed output, I left all of the Word styles the value '[no - style to use in project] ". RoboHelp then created new styles in the Word document with the prefixes "rh_. The list of the bullet and numbered list styles were in retreat and that I wanted them to be. I then took the path of least resistance, so to speak and adjusted other paragraph styles to align properly with the list styles.

    Thank you.

  • List of selection with zero value Submit reset

    Hello
    I have two list of selection with new submission namely A and B, both are dynamically filled with SQL query. The 'B' selection list is populated based on the value selected by the user from the list "A".
    The problem comes when the user has selected a value from list "B" and by changing the value of 'A', the current value of the 'B' list indicates the value selected previously.

    I'm new to APEX would be grateful if you could tell me How to reset the value of 'B' list when 'A' is selected.

    Thank you
    Spengler.

    Your list for ITEM B should allow a null value and the only other thing is to have a conditional process that fires when the request is POINT A. This process must assign POINT B null.

  • LOV selection list with submit the value Null

    I have a select list with submit in which another fileld fills based on the selection. I have the TEXT Null in the LOV "Select Vendor" value but I do not know how to set the Null VALUE, while I get this error:

    ORA-01722: invalid number
    Calculation of default value of the element of error ERR-1019: page = 2 name = P2_VEND
    Ok

    I tried the following to the default value of the select list with submit without result:
    Replace (: P2_VEND, '%' | 'null %', null)

    Thanks in advance.

    Hello

    You can set the NULL value - 1 (or any other provider code which may not exist).

    Greetings,
    Roel

    http://roelhartman.blogspot.com/

  • Two Select lists with Submit single page branching to different page each?

    Hi all

    I have a page (No. 1) with two 'select list with Submit"(A and B). This page contains also two branches defined. I want to realize that the first list selection with present (A) would always use the first branching (at page n ° 2) and the select list a second with the submit (B) would use the second fork (at page no. 3).

    How can I achieve this? Y at - it a tutorial describing lists of selection and the ramifications?

    Thank you for your time.

    Daniel

    When the selection list submits the page, the value of "motion" is the name of the selection list item. So all you need to do is add a condition to each Directorate-General: Request = Expression 1 and enter the name of the element (top) in the field of 1 the condition Expression.

    Scott

  • a simple form with the "submit" button: can it look better?

    Hi all

    I did not imagine that a simple form (with Textfields and ChoiceFields) could do a lot of problems:

    I would like to ask a few basic questions about it. First the code (Simplified):

       GridFieldManager formfm;    
    
            EditField surname = new EditField("", "-", 25, Field.FIELD_LEFT | Field.FIELD_VCENTER | EditField.FILTER_DEFAULT);
        EditField email = new EditField("", "-", 25, Field.FIELD_LEFT | Field.FIELD_VCENTER | EditField.FILTER_EMAIL);
    
        public FormFieldManager(){
    
            formfm = new GridFieldManager(2,0);
    
            formfm.add(new LabelField("who: ", Field.FIELD_RIGHT | Field.FIELD_VCENTER));
            String[] choicewho = new String[] { "Mr", "Mrs", "Miss" };
            ObjectChoiceField who = new ObjectChoiceField("", choicewho, 0, Field.FIELD_LEFT |Field.FIELD_VCENTER);
    
            formfm.add(who);
    
        formfm.add(new LabelField("Surname :", Field.FIELD_RIGHT | Field.FIELD_VCENTER));
        formfm.add(surname);
    
        formfm.add(new LabelField("E-Mail :", Field.FIELD_RIGHT | Field.FIELD_VCENTER));
        formfm.add(email);
    
        ButtonField sendButton = new ButtonField("Send", Field.FIELD_HCENTER|ButtonField.CONSUME_CLICK);
        formfm.add(sendButton);
        FieldChangeListener listenerSendButton = new FieldChangeListener() {
        public void fieldChanged(Field field, int context) {
    
        try {
            String data = "send=true&surname=" +surname.getText();
            data += "&email=" + email.getText();      httpPost("http://bla/sendData.php", data);
        } catch (IOException e1) {
            e1.printStackTrace();
        }
        formfm.deleteAll();
        formfm.add(new LabelField("Grazie!"));
        }
      };
      sendButton.setChangeListener(listenerSendButton);
    

    now my questions:

    (1) don't miss something (style) for the EditFields? At the present time, it is possible to change them, but the behavior (9700 Simulator) is strange: it is 'difficult' to get from one field to the other and everything moves sometimes when editing...

    How do you define a standard form that seems 'normal' and can be completed as expected in other applications? (Swifts nothing, it is possible to access the next field with the expected key / trackpad (I have no touch screen)) and so on?

    The EditFields do not even have a border, but I guess that's the standard case on BlackBerry.

    (2) the ObjectChoiceField is also very ugly... It's too big... Is it not possible to reduce the size without much effort? (I couldn't everride it correctly). (I also tried with radio buttons, but unfortunately I can't add a RadioButtonGroup to my LayoutManager, strange)

    (3) it is perhaps a stupid question: I can't get the text selected from the ObjectChoiceField (to send it can in data).

    AM EditField, it's simple:

    editfield.getText()
    

    But how is it with my ChoiceField?

    I found getSelectedIndex() but it provides a value int not text...

    Thanks in advance for any suggestions!

    silizia

    1. you have defined fields as follows:

    EditField family name = new EditField ("vorname:", "-", 20, EditField.FILTER_DEFAULT);

    The 20 means 20 characters, so it's all the field allows you to enter.

    2. Yes, the mail filter is pretty useless.  Use the EmailAddressEditField instead

    3. you can play with the scroll, but the best thing to do is to set the focus on the first field that you want people to pull together - usually the upper part of the form.

  • Problem with ScriptUI lists

    Hi all

    I have a problem with a ScriptUI Photoshop for six days.

    This script defines a table of all the images located in a top folder and its subfolders. Then he opens the first found photo and creates a list of the EXIF of the camera.

    I know how to set the items selected by the user in a table. My problem is not the text that I want to extract, but their index numbers (lines 56 and 62).

    Any idea?

    // Enables double clicking from the Macintosh Finder or Windows Explorer
    #target photoshop
    app.bringToFront();
    
    
    var topFolder = Folder.selectDialog("Select the top folder where your images are : ");
    if (topFolder != null) 
    {
      filesArray = scanFolder(topFolder);
    }
    
    
    // Opens the first photo found
    if (filesArray.length > 0) 
    {
      var docRef = filesArray[0];
      app.open (docRef);
    }
    
    
    // Sets the EXIFs of the camera in an array
    var exifArray = new Array();
    var selectedItems = new Array;
    var exifNumber = app.activeDocument.info.exif.length;
    for (var i = 0; i < exifNumber; i++)
    {
      exifArray[i] =  app.activeDocument.info.exif[i][0];
    }
    app.activeDocument.close(SaveOptions.DONOTSAVECHANGES);
    
    
    // User interface
    var w = new Window("dialog");
    var information = w.add('statictext',undefined,'Press the key Ctrl and select the EXIFs you need.'); 
    var columns = w.add("group");
    columns.orientation="row";
    var list1 = new Array();
    var list2 = new Array();
    var halfList = Math.round((exifArray.length)/2);
    for (var i=0;i<halfList;i++) // List 1 (left column)
    {
      list1[i] =  exifArray[i];
    }
    
    
    for (var i=halfList;i<exifNumber;i++) // List 2 (right column)
    {
      list2[i-halfList] =  exifArray[i];
    }
    
    
    var listExif1 = columns.add ("listbox", undefined,list1,{multiselect:true});
    var listExif2 = columns.add ("listbox", undefined,list2,{multiselect:true});
    listExif1.onChange = function()
    {
      selectedItems[selectedItems.length] = listExif1.selection;
    }
    
    
    listExif2.onChange = function()
    {
      selectedItems[selectedItems.length] = listExif2.selection;
    }
    var exeButton = w.add ("button", undefined,"Execution");
    exeButton.onClick = main;
    w.show();
    
    
    // Puts the selected items in an array
    function main()
    {
      for (var i=0;i<selectedItems.length;i++)
      {
      alert(selectedItems[i]);
      w.hide();
      }
    }
    
    
    // Recursive function 
    function scanFolder(folder) {
      var filesArray = [],
      fileList = folder.getFiles(),i, file;
    
      for (i = 0; i < fileList.length; i++) {
      file = fileList[i];
      if (file instanceof Folder) {
      filesArray = filesArray.concat(scanFolder(file));
      }
      else if (file instanceof File && file.name.match(/\.(jpg|)$/i)) {
      filesArray.push(file);
      }
      }
      return filesArray;
    }
    

    Hi Michel,.

    listExif1.selection returns an array of ListItems.  You can get the index using the 'index' property, or get the text using the "text" property

    For example if I put the following code in the listExif1.onChange Manager:

    var selections = "";
    for(var i=0; i < listExif1.selection.length; i++){
         selections += "\nIndex:"+listExif1.selection[i].index+", text: "+listExif1.selection[i].text;
    }
    alert(selections);
    

    I get the following text in the alert after two selections:

    Index: 4, text: Description of the Image

    Index: 7, text: Orientation

    In addition, I don't know exactly what you are trying to accomplish, but as a guess, you want a list of currently selected items when the user press the run button. In this case I consider rather than follow the selections in the onChange for each listbox handler, simply get the current selections at the time when the user presses the run button.

    If the main function might look like this:

    function main()
    {
      selectedItems = listExif1.selection.concat(listExif2.selection)
      for (var i=0;i
    

    If you do not need to follow whenever the user changes the selection in the list box, you need to specify how you add to the selectedItems array.

    Hope that helps.

    Thank you

    Eric

  • Problem with &lt; Mx:List &gt;

    Hello

    I had a problem with the list control in flex. I'm trying to implement a list of a few names where the user can select each name by clicking on the item in the list. My question is if the list with the same name then not able to select the items in the list. (The same reversal isn't the case)

    Here is the code:

    ? XML version = "1.0" encoding = "utf-8"? >

    " < = xmlns:fx s:Application ' http://ns.Adobe.com/MXML/2009 "

    xmlns:s = "library://ns.adobe.com/flex/spark".

    xmlns:MX = "library://ns.adobe.com/flex/mx" minWidth = "955" = "600" minHeight >

    < fx:Declarations >

    <! - Place non-visual elements (e.g., services, items of value) here - >

    < / fx:Declarations >

    < fx:Script >

    <! [CDATA]

    [Bindable]

    private var testArray:Array = new Array("s1","s1","s1");

    []] >

    < / fx:Script >

    < mx:List dataProvider = "{testArray}" >

    < / mx:List >

    < / s:Application >

    If the list of the various inputs, then I can roll over each item and select the wanted item. But if the list with the same name and then everything goes wrong.

    Is there anyway to fix this? Help, please

    the s1 should be "s1".

    
    
              
                        
              
              
                        
              
                        
                        
    
    
  • Problems with the list of the button and drop-down list

    Hello

    I want my users to view revenue by country or city...

    to select country I use a "list of the button' and for the city I'm on a 'combo '... When my select user a country, the cities of filtered accordingly... everything works fine, except the following (it is in step 3):

    Step 1. When I select a country (let's say canada) report gives me an appropriate set of data...
    Step 2. When I filter in a city (let's say Toronto) everyting works very well according to the filter...
    Step 3. When I select another country (let's say the USA), I get no data displayed on my report but good news, it's that my drop down the city will update accordingly
    Step 4. to get the required data, I have to change city (let's say Chicago)...


    what I want is that when my user select another country (step 3)... then the report should display data for all cities and I used the logical

    Select rev table_country
    where
    (b.City =
    CASE
    When: P49_CITY = 'ALL' THEN b.City
    OTHERWISE: P49_CITY END)

    somehow, I want the P49_CITY to 'ALL' value when the user selects a country

    Please advice

    Hello

    This is the way of simply to do.

    1 make the country select list (P49_COUNTRY) a select list with submit
    2. create a conditional branch that dates back to the 49 Page
    3 do the conditional branch of type PL/SQL Expression. In the expression 1 enter

    :REQUEST = 'P49_COUNTRY';
    

    4. in the value of these items , enter P49_CITY and let these values in white.

    So when the country is changed the page will be submitted, take over the management of the status of the page and in the process put the city at null.

    Kind regards

  • Save the selected value from the ListBox with its respective values control tab dropdown selected in another list box

    Hi all

    I'm doing a vi where I save the selected value from the ListBox with values respective tab control dropdown selected in another list box. Whenever I select Item1 can change of course and the respective tab will be open for this element. But now I want to just save the selection and put it into another ListBox.SO I can't renmove or add my wishes. Please help me.

    It will work.

    Probably not the greatest solution well.

  • I need a box multi select drop-down list or list of selection with image or icon faclitliy

    Hello

    I tried to find a plugin or a jquery plugin that allows to perform the task of

    have a list of selection with images and there should be a facility such as multi select.

    How this can be accomplished. One have they implemented it in any of their application

    Any information will be greatly appreciated.

    Thank you

    pauljohny100 wrote:

    Hello

    I tried to find a plugin or a jquery plugin that allows to perform the task of

    have a list of selection with images and there should be a facility such as multi select.

    How this can be accomplished. One have they implemented it in any of their application

    Any information will be greatly appreciated.

    When ask questions user interface-related still State (at least) the full version of APEX, the theme and the version of browser compatibility / required.

    See the plugin jQuery Select2 , for which there is a plug in APEX .

    Pre-plugin when we have implemented requirements like this using a model report, CSS and personal...

  • Unable to set keyframes in the audio clip selected with the pen tool - can no longer see the volume control line after developing the clip. What could be the problem? This seems to be the problem on any project that I opened.

    Cannot set keyframes in the audio clip selected with the pen tool - cannot see even the line volume control more to set keyframes on having developed the clip. What could be the problem?  I use the first CC pro @.

    You can use the Ctrl key and then click with the regular selection tool, clicking with ctrl will make a new keyframe. in this way, have no need for the tools. CTRL has other great shortcuts that will stop you having to spend retouching pads tools too.

    If the automation keyframe line is missing, you can switch on and off in the menu sequence.

Maybe you are looking for

  • Firefox Sync

    HelloI've updated to Firefox. I was using the old version of [email protected] https://support.Mozilla.org/en-us/KB/how-to-update-to-the-new-Firefox-syncOn this page the way which you said. But he did not. How can I get my data.I think that it do

  • How can I turn off the screen on W4 - 820 without putting it to sleep?

    Whenever I press the power button, the Tablet goes to sleep. I know what is happening because, in the power options > power settings button > sleep is selected to "on battery" and "on". The question is how can I just disable the screen without leavin

  • Change the credentials to connect to vCenter

    I'm new to the VoP server and want to be sure I have some basics that I raised questions to predict in the future. We change our admin password on each server and account for all sixty days. So what I wear today in VMware connection will have to be c

  • Draw focus problem

    Hi all I create a field when custombitmap gets field exchange focus bitmap image in the field. I want the focus by default to be transparent... I need to remove the default focus color (usually blue focus) here is my code. public class CustomBitmapFi

  • Files mystery taking 23.7 GB of space

    I'm running out of space on my drive root. Have already run in administrator mode disk cleanup and deleted all the files in the Windows/Temp folder. There is a folder whose properties don't just add to the top. It's c:\Users[user-name]\Music\iTunes\i