Select the element on a form as a table with a different dynamic LOV on each line

I would use a tabular form when one of the columns is a Select based dynamic LOV, and where this is dynamic LOV refers to a column on the values in each row.

So if the tabular presentation was a list of teams and the column selection LOV was the current head of the team, I would like to than this selection list to be filled only with the members of this team (different for each line). As the list of the members of the team is in a different table (all_players or something) I won't fill the LOV with a query with a where clause clause that only selected records of players from team-membership equal to the id of the current team tabular form. Thus, on each line the content of this list would be different.

-Justin

This is explained here:

http://HTMLDB.Oracle.com/pls/OTN/f?p=31517:176

Denes Kubicek
-------------------------------------------------------------------
http://deneskubicek.blogspot.com/
http://www.Opal-consulting.de/training
http://Apex.Oracle.com/pls/OTN/f?p=31517:1
-------------------------------------------------------------------

Tags: Database

Similar Questions

  • Addition of the attribute of the element of tabular form filling

    Hi all

    I have the following in the attribute of the element of tabular form to make uppercase data once it is added. I found a problem where users are paste data in the field, and he added a space at the end of the data. Therefore, I would like to see if I can cut the data while making it uppercase. Can someone tell me how I can change this to mow all the spaces as well?

    OnChange = "This.Value = This.Value.toUpperCase (); »

    Thank you
    Mike

    Mike,

    Replace it with

    this.value.replace(/^\s+|\s+$/g,'').toUpperCase();
    

    Thank you
    Manish

  • Form on a Table with report - Auto number

    Hello

    Scenario:
    I want to create 'Form on a table with report' which would allow my users add records...

    Steps and questions
    I have created a table with a field named "TRACKING_NO" as a type of automatic numbering in MS Access and there is a primary key... I intended to use it to link the report to the form
    When I downloaded the array to Oracle, it changed the varchar2 type... can you please advice how to change back to automatic numbering...?
    and it'll work if my user adds a record to the table (using APEX built in option to create a record)...?

    Thanks in advance

    Hello
    That's what I'd do.
    1. download the MS Access table, lets call it TAB_A
    2. using SQL-workshop get the DDL (SQL statement) for this table.
    3. change names or data types as required
    4. create a new table with the DOF, lets call it TAB_O
    5 copy the contents of TAB_A to TAB_O (TAB_O IN INSERT for example (id, colx, coly) SELECT TO_NUMBER (tracking_no), col1, col2 FROM TAB_A ;))
    6. create a sequence that begins with the last PK + 1 table TAB_A
    7 Add a trigger to TAB_O to use this sequence to fill his PK

    Furthermore, work with APEX requires a good understanding of the Oracle SQL and PL/SQL, no matter what anyone says, even Oracle.

    Regards Garry

  • Select the list in tabular form

    Hi all
    APEX Oracle 11.2 4.1 using SE (Oracle Linux Server release 6).

    I have a Page with a region based on a tabular presentation.
    The query Source in the region has several columns, including an id I have also added a DATE column and a column of "Buttons" that appear on all ranks.
    The extra DATE field is displayed as a list select a named LOV.
    The extra button field appears as a standard report column and has the link column attributes that cause a branch to another page when you press.

    I want to make is that when the user presses the button on one of the lines, APEX defines two elements of application before going to the new page:
    1. the ID column of the line in which the key has been pressed
    2. the value currently highlighted in the select list, for the line in which the key has been pressed

    Using a link of #ID column element value # I can successfully get their hands on the ID column for the line concerned.
    But do the same thing for the select list column invariably returns by default in the Select list (i.e. the value initially selected). It does not pick up the change if the user has entered in the select list and chose a different value.

    Can someone advise how best to gain the value selected in a Select list in a tabular presentation?

    This approach works:

    1 make sure you have unique names for the id on the elements of the apex for example. in the use of sql, something like:

    ID = f02_' | rownum

    2. Add a hidden column in the form of table containing the rownum (named p_row in this example)

    3 put the URL of the link column:

    JavaScript: Window.Location.href = ' f? p = & APP_ID.: 49: & SESSION.: P49_EMPNO, P49_DEPTNO: #EMPNO #, ' + $v('f02_'+'#P_ROW#');

    example of

    http://Apex.Oracle.com/pls/Apex/f?p=579:48

    If you need SSP then you will need to send the page by using the apex.submit function and a PLS process to prepare the URL and branch

    See you soon

    Shun

  • warnings to leak memory for the elements in a form

    We meet the warnings below in our newspapers:

    WARN [nucleusNamespace.atg.dynamo.servlet.pagecompile.DAFDropletEventServlet] (ajp - 0.0.0.0 - 8109-110) form elements 29057 added to the last item of the form /shop/wishList/viewWishList.jsp.addItemsToCart name project/commerce/wishlist/WishListFormHandler.wishItemValueObject.quantity.27025374. Form elements are saved permanently if this table continues to grow, it's a memory leak. Recode your page in order to use consistent names for form elements.

    Added form elements 21542 WARN [nucleusNamespace.atg.dynamo.servlet.pagecompile.DAFDropletEventServlet] (ajp - 0.0.0.0 - 8209-57) to the last item of the form /shop/wishList/viewWishList.jsp.addItemsToCart name project/commerce/wishlist/WishListFormHandler.wishItemValueObject.quantity.28506088. Form elements are saved permanently if this table continues to grow, it's a memory leak. Recode your page in order to use consistent names for form elements.

    Thank you

    Published by: 986774 on February 7, 2013 05:39

    After getting the leak memory, look at DropletEventServlet in the Navigator component of/dyn/admin, and you can see the accumulation of mappings element of the page in question form. DropletEventServlet is a component to extended global (regardless of the scope of managers form she monitors) and does not remove the entries over time (which is why it is important to not use IDS in the form element cards FormHandler, and he issues a warning once you 500 for a form).

    My guess is that the bug you see is a fixed bug CCS been resolved in more recent versions of the ATG (2007.1 and later versions). You can see a newer version of the ATG to see if the form is always encoded in the same way.

  • How to pass the value of the element from one form to another form?

    Hi all

    I need your help to complete this task.
    I have a form page named reserve form.i have some five fields selection list in the form of reserve, after I chose the first value from the selection list, I create a button in the form of reserve, when I click on the button create, it will open another form page named set form in this form page , I have a field selected, the list of values in configure the form depends on the values selected as a reserve, it means that I have to change the value of page of a form to another form.

    Please suggest a solution, how to pass the value?

    Thank you
    Robette.

    Check out the button create on Page 8.

    In the Action when the button is clicked, the configuration is

    The value of these P35_IT_PRODUCT
    With these values & P8_IT_PRODUCT.

    Kind regards

  • Met cursor jumping within the element of list forms

    Hello world

    I have this item in the list that is populated by record group. When click a value in the list (as expected), it climbs to another form and then do remove it from there. The problem is when I closed the form called (records all measures was), when I'll be back in the list, waiting list update its value (to not display the record that has been deleted (which is what is happening - I have the script to populate the list at a time new point instance) but when click on in the list it gives me to jump the cursor in the value (when I clicked on the second value it is selected) third or another value in the list)

    hope you can help me with this... Thank you

    go_record does nothing with the selection list. It causes forms to navigate to a different record in the current block. is the block where the listitem is placed a block of data? If so, create a new data-block non-base and put the listitem. to refresh the list, just call the same code that you use in the when-new-form-instance-trigger.

  • Select the element with PL/SQL

    Hi all

    In the thread: can you disable an item with some javascript and activate with pl/sql, Salvatore suggested a solution for the activation of an element after him be handicapped at the start as follows:
    Howard:
    
    It is possible albeit a little contorted.
    You could define a hidden page-item named P1_HIDE_THIS say.
    In the page-item's HTML Form Element Attributes specify &P1_HIDE_THIS.
    
    You can then set P1_HIDE_THIS using pl/sql or sql to ' disabled ' or '' . The setting of P1_HIDE_THIS will of course have to happen before the item is rendered.
    
    
    Varad
    Anyone outthere knowing the above solution especially this part:
    You can then set P1_HIDE_THIS using pl/sql or sql to ' disabled ' or '' .
    Please explain it to me in detail (with examples). Any help is very appreciated!

    Concerning
    Kamo

    Published by: Kamo on 2009-03-10 23:03

    Hi Kamo

    Any value of the element that is already stored in the session can be used on a page using & nom_element. Notation. What city suggests is that you create a hidden page called P1_HIDE_THIS element and set it to the value either "Disabled" or ". You can then use & P1_HIDE_THIS. wherever you want the value to appear. In your case, you put this into the attributes of elements of HTML form to the page elements you want to turn, it becomes part of the attributes of the INPUT tag when the item is rendered on the page - if P1_HIDE_THIS is "and then nothing happens, but if it is"disabled", then the item becomes invalid. How do you set the value of P1_HIDE_THIS depends on how you determine when goods are intended to be disabled. This must be done until the page is loaded (the front header point of process or calculation would) so that the value is available when the elements are rendered. For example, suppose that you want to disable the items when the current user is 'ABC ':

    IF UPPER(:APP_USER) = 'ABC' THEN
     :P1_HIDE_THIS := ' disabled ';
    ELSE
     :P1_HIDE_THIS := '';
    END IF;
    

    Add as a process that runs before Header on the page.

    A very simple example to do this kind of thing: [http://apex.oracle.com/pls/otn/f?p=2371:6]

    Andy

  • How can I keep the open structure display after selecting the element catalog?

    A really irritating feature with FM9, is that the structure display disappears when I open the catalog of the element. Precisely what I don't want to because I want to see the position the element takes after its insertion. Because the structure display disappears each time leads to many problems especially adding invalid structures in the document. As a solution, I copy and paste already used elements within the structure and then empty or adapt the content to the need, almost elliminating the need to use the catalogue of the item altogether. But it is tedious and error-prone and I'm sure that there must be a way to get the catalog and the element structure view to display simultaneously.

    Roach,

    By some probably internal defect in FrameMaker, the structure display and catalogue of the element are anchored in a bag. Simply drag the display structure, or in the catalogue of the element by its TAB out of the basket and drop it outside the basket. Now you can organize them as you wish. When you save the workspace, FrameMaker will remember this layout the next time you open it... at least for a while. My experience is that through some sequences that I still understand the view structure migrates to the pod with the catalogue of the element. I don't know why, but it happens about once a month or less. So, no big deal, I just hang out once again and save the workspace again.

    Van

  • Form on a Table with report - change of the source table after created form

    Hi all

    I have a 'form on a Table' where the various fields have the "Source Type" = "column of the database. I have 2 Questions for this type of shape:

    1: in the field "Source value or expression", it is possible to change the name of the field in the Table. But I can't understand how view or even change the underlying Table (which had to be chosen at the beginning, when the form was created at the start).

    2: my question in section that relates to the first question would be, if it is possible to have multiple underlying tables in the same region. Or whether it would be necessary to create a second region or change the "Column of the database" type in a type of SQL query?

    Thank you and best regards,

    David

    To change the table, you need to change the process of the page. A process has been generated called:

    Extraction of line of

    Here, you can modify the table, but you also have to make in your shipment after processes. Who are probably named:

    ApplyMRD and ApplyMRU

    If you want a form to be based on more than one table, you can create a view and base your form on this point of view instead of on the table, or you need customized treatment.

  • Add dynamic buttons to each line of the report and bind the data line to this line-specific buttons

    I have a page with a form in the upper part and a report at the bottom that is bound to a table. I need to add a pair of buttons for each row in the table and add dynamic actions for these buttons. I need to submit the data corresponding to the line to a REST service and update the table/line. I know that it is possible to add ajax call and refresh the table after receipt of the response. But I don't know how can I dynamically include a pair of buttons on each line and access the data corresponding to the record when a particular button is clicked. I was not able to find such a feature using the help page. Can you please let me know if this is possible. Thanks in advance.

    Here is the representation of how I need to the page to look like.

    Col 1

    Col 2

    Col 3

    data 1

    data 21

    data 31

    Button 1

    Button 2

    data 2

    data 22

    data 32

    Button 1

    Button 2

    data 3

    data 23

    data 33

    Button 1

    Button 2

    data 4

    data 24

    data 34

    Button 1

    Button 2

    I should be able to access the data 1, data21, data button 31 11 and button21 etc.

    Select data1,

    data2,

    data3,

    ......,

    Button1 null,

    Button2 null,

    ROWID r_id

    Of...

    If you change the column for button1 and navigate to the area of column formatting you can create your button here, in several different ways.  You will need to play with the way you prefer.  See below:

    or or you could use and apply css of your theme.

    You create also two buttons in a single column.  From here you can reference columns in your selection by using the format #COLUNMNAME # (as I did with R_ID).

    Then, you will need something similar for all columns that you want to be able to recover when you click the buttons.  See below:

    -It would be Data1 column

    #DATA1 #.

    You would do this for each column that you want to access click the button as shown above.  You can skip this step and use jquery to iterate through the DOM using the. closest() and. find() and give each column a separate class.  Is your preference.

    You then create a dynamic action, when it is clicked on .button1.  Now that you have this object, you can get the id of the trigger object that would be your r_id and from here you can access all your individual data points (all this in a JavaScript in the dynamic action) and assign to items hidden on your page.  The next step in this dynamic action, you could run pl/sql and transmit the page elements.

    Hope that all of the senses.

    David

    Post edited by: DLittle

    As a bit of clarification: the r_id column does not have to be rowid, but it must be unique for each return line.  You can use your primary key or rownum.  Just what works for your scenario.

  • How do I either set channel name of a graph of cluster or get a 1 d waveform chart to start different time (t0) for each line of the waveform?

    I have a chart single 2D out a conditional of a loop indexing output such that over the rows of the table are not the same size. -Basically, they have different starting and ending points and sizes. -Not so concerned by the endpoints, because as soon as I get correctly starting points, everything shows fall in place.

    The challenge is that when I try to have the variable t0 (start time) for each line, the wave of construction vi form would always keep each line at the same starting point.

    I used the approach bundled with success (the cluster approach ensures that each waveform starts at different times according to the guidelines of my t0 defined for each line) but then I'm not able to get in the channel names I could make using the graphical approach (wave generation) waveform.

    In essence what I get here, I'm losing here.

    Because I don't want one of my mentors, Bob and Altenbach have fed up with me I have attached a vi this time

    Attached VI shows a combination of the two attempts (first with the waveform graph) and then with the graph of cluster

    1. with the first (graphical waveform), I get my channel names as you wish, but the alignment of the wave is not correct.

    2. with the second (graphical cluster), the alignment is good, but I can't do the names of channel in the chart, even if they are present in the cluster.

    I read some reviews that mentions that attributes can be displayed with waveform and data Dynamics (not clsuters) so I guess that's why.

    I saw another report indicating the start time for a waveform 1 d will always remain the same for the rest lines defined for the first line even if changed for the following lines in a loop.

    So I guess my question is: what is the way around questions like that?

    First of all, let me be the first to the congratulate and thank you for finally posting a code!  I'm not 100% certain I understand your question or your code, but I have an idea, perhaps, of what you want to do, so I wrote a little VI who made something simple that could be relevant.

    You mention waveforms of different lengths and beginning at different times.  You also want everyone to have a unique attribute (although I'm not sure what you want to do with the attribute).  So, I did the following:

    1. Generated an array of 100-sample random to represent one second of a waveform.
    2. Created 4 waveforms on this 100-sample basis.  The first waveform (channel 0) is just these 100 points.  The second, 1 channel, is the concatenation of string 0 with the base of 100 samples, or a waveform "double".  Channel 2 is 1 string concatenated with the base, and channel 3 is 2 string concatenated with the base.
    3. In order to trace the four channels that they rest 'on' the other, the waveform has the number of the channel added to it.  Channel 3 is 3 + (4 copies of the basis of 100 points), a waveform 400-point random centered around a shift of 3.
    4. All channels have dt value 0.01 (but I guess I could have varied, as well).
    5. To make the channels start at different times, I started channel N N seconds before channel 0 (by subtracting the index of the loop, I, T0).
    6. For each channel, I created an attribute called "Chan" equal to "Channel N" (where N = 0, 1, 2 or 3, as the case may be).

    This is the plot that results. Scale X is the absolute time value (no Date) using the 24-hour HH: mmS format.  You can see that the plots are 1, 2, 3 and 4 seconds of time, and are offset from each other by a second.  I used the trace attributes to change the name to the respective attribute.

    The code to do this is very simple - I almost don't need to show it, because I think it is completely described by the text above, but this is here:

    Now, it was not that much faster that some of your previous posts, when you refused to your postcode, "guess us" what you wanted (but not to not correctly guess), you tried to "push" us in the right direction (still refuses to post code), and no one seemed very happy?

    Bob Schor

  • The script generation is not supported for Table with XML or UDT column Types

    I get this message trying to generate a script to create a table with an XMLTYPE column.  We use the Oracle Developer Tools for Visual Studio to generate scripts as SQLDeveloper does still not support TFS integration.  He was always pretty easy to generate scripts and maintain control of source code in this way (with the exception of materialized views).  It was great, just right click and generate a script for the project and check it in.  Unfortunately as the adoption of XML grows, we find passage to the SQL Developer more often to perform tasks not supported and then return to the VS IDE to manage source code control.  Free of any chance that it will be supported in the future?

    Yes, our plan is to support several types as time goes by.

    You possibly can speed things along by voting or by filing a request for new feature here:

    http://Apex.Oracle.com/pls/Apex/f?p=18357:46

  • Studio EN - is there a work around for the problem of referencing data from a grid with a different connection of DB and # different dimensions?

    Hello

    I'm making reference to a column in a different grid with a different database connection. I did some searching in the forums, and it seems that it is a known problem with EN Studio. The problem is that if 2 different database connections have different number of dimensions, then the reference will throw an error.

    For example, what I try to do, is below:

    In grid2.column [A], I have the following formula:

    Grid1. Column [A]

    The result is an error.

    The ultimate goal is to have a base of variance formula in the grid between grid1 and grid2, who have connections to different database with a different number of dimensions. Is there a solution to this bug? The example of the basic formula is less to:

    Grid1. Column [A] - grid2.column [A]

    Any help is very appreciated!

    Thank you

    Tiffany

    Have you tried to change the database connection in a row instead of create a new grid?

  • Prevention of ListView, select the element for multi select

    How do you keep a user to select specific items during a statement select multi. You can use the MultiSelectHandler to do?

    I have essentially two types of elements. Setting caching and QUERIES.  When the user performs a Multi Select on a cached item... I want only their selection to other cached items.  Even if the user is running a Multi Select statement on an item not cached... I want only their selection of other items not cached.

    Is anyway to do this?  Been Googling for half an hour and can't find that everything about this use case.

    Since I use an element of custom list, I went to this subject a little differently. My CustomListItem implements a ListItemListener. I've implemented the select method as such.

    void CustomStandardListItem::select(bool select) {
        bb::cascades::ListItemListener* lil = static_cast(m_sli);
        bb::cascades::ListView * view = qobject_cast(this->parent());
    
        if (view->multiSelectHandler()->isActive()) {
            bool isCached = view->property("isMultiSelectTypeCached").toBool();
    
            if (m_cachedImageView->isVisible() && isCached) { // is cached.. allow selection of other cached objects only
                lil->select(select);
            }
            else if (!m_cachedImageView->isVisible() && !isCached) { // is not cached.. allow selection other cached objects only
                lil->select(select);
            }
        }
        else {
            lil->select(select);
        }
    }
    

    The dynamic property 'isMultiSelectTypeCached' is just a bool on ListView value that gets defined the type of ListItemComponent. It could have just as well been the type of ListItemComponent.

Maybe you are looking for