The value for an item hidden in a tabular form in detail.

I use Apex 5.0 with database 12 c.

I created a detailed form maser, in detail, that I need a value for the hidden element set.

the code used is

FOR I IN 1..APEX_APPLICATION.G_F02.COUNT LOOP 
APEX_APPLICATION.G_F02(I) := '111'; 
END LOOP;

but it is only useful if the item is displayed on the form.

Reference:--

https://docs.Oracle.com/CD/E14373_01/apirefs.32/e13369/apex_item.htm#AEAPI196

You can use the apex_item.hidden function

for creating hidden point

APEX_ITEM. HIDDEN)

p_idx in NUMBERS

p_value IN VARCHAR2 DEFAULT

p_attributes IN VARCHAR2 DEFAULT NULL,

p_item_id IN VARCHAR2 DEFAULT NULL,

p_item_label IN VARCHAR2 DEFAULT NULL

)

Select

apex_item. Hidden (p_idx-online 1, p_value-online 111) |

apex_item.date_popup2 (p_idx-online 2, p_value => null, p_size,-online 20, p_maxLength => 2000) as "datepicker".

Double;

Tags: Database

Similar Questions

  • link to an interactive report AND apply the filter for 2 items.

    Hi can you help me out here on how to create a link to an interactive report AND apply the filter for 2 items.

    Here is my code

    I have a list of table, clicking the selected item should link to interactive report and create the filter. Below the code does not work for a filter. can you help me what to do with 2 filters.

    A filter = > works very well

    sys. HTP.p ("< ul class =" uChartList"> ');

    sys. HTP.p ("< class li =" uNumber uGrid col_2 col_sart"> ');

    sys. HTP.p ("< a href =" "|") sys. HTF.escape_sc ('f? p ='|: APP_ID |': 0 0 :'||: APP_SESSION |':00:P00_XXX:000, RIR:IREQ_XXX:Test :') |) » » >') ;

    sys. HTP.p ("< class =" uValue"> ' | l_tester |) ("< / big >");

    sys. HTP.p ("< small class =" uLabel"> < /small > Tester ');

    sys. HTP.p ("< /a > '");

    sys. HTP.p ("< /li >" ");

    Scenario 2:

    Two filters = > does not

    sys. HTP.p ("< ul class =" uChartList"> ');

    sys. HTP.p ("< class li =" uNumber uGrid col_2 col_sart"> ');

    sys. HTP.p ("< a href =" "|") sys. HTF.escape_sc ('f? p ='|: APP_ID |': 0 0 :'||: APP_SESSION |':00:P00_XXX:000, RIR:IREQ_XXX:Test:P00_YYY:001:IRC_YYY:test2 :') |) » » >') ;

    sys. HTP.p ("< class =" uValue"> ' | l_tester |) ("< / big >");

    sys. HTP.p ("< small class =" uLabel"> < /small > Tester ');

    sys. HTP.p ("< /a > '");

    sys. HTP.p ("< /li >" ");

    Thanks in advance

    actually the syntax wrong values in the syntax of the passes to several elements.

    is

    f? p = 6000:6004: & APP_SESSION. : NO:6003:MY_ITEM1, MY_ITEM2, MY_ITEM3:1234, 5678

    Use above scenario and verification.

    Go

  • How to select the values for each check box in a group of records

    Hello

    I have a requirement in form 10g. In this form there are 10 records are display each record has a checkbox is there if I click on the check box save number one and number three and make some changes in the text field (field adjustment is the number data type) and then finally, I want to see the total a total amount called field.

    In this, my question is how to select specific to a group of records records? and finally these selected records are inserted in a table.
    Because I am not able to read these records at a time.
    Is there any table to define a record group to fetch each of them individually for example Rec [1] Rec [2]... like this if yes please suggest me the steps how to do this.

    Thanks in advance
    Prasanna

    Published by: user10315107 on December 17, 2008 23:44

    OK, so you want to shoe the total amount in the form itself (I guess that somewhere under the dashboard lines?).

    You can do this easily using formulat elements:

    1 create a new item in your block where the field amount is places, set "section of the database" on the 'No', 'calculation mode' to the 'formula' and the 'formula' himself to something like:

    CASE WHEN :BLOCK.CHECKBOXITEM=CHECKVALUE THEN :BLOCK.AMOUNT+:BLOCK.ADJUSTMENT ELSE 0 END;
    

    This formula returns 0 if the checkboxitem is not checked, otherwise the sum of amount and adjustment (of course you can adjust the names of elements and the value for 'Checked')
    2. place the element in the layout, if you wish.
    3. set the property "Query all Records" to "true" for your block elements, this is necessary for the calculation to work
    3 create a control block to keep summary article in a, "Single Document" set to 'True '.
    4. place a new element in this control block, set 'Calcuation mode' to 'Summary', 'Summary block' to your block elements, 'Summary point' in newly created formula section in the block elements
    and function of synthesis for the "sum".
    5. place the element in the layout

    She's.

  • Getting the values for the attributes of the user in IOM

    Hello

    I have it here is the snippet of code that retrieves the values for all the attributes user OIM 11g. But this code returns the exception of null pointer for attributes with null values. I also put if condition to check for null pointer exception, but always the null value is thrown in the newspapers whenever this code snippet is executed in the event handler.

    Any thoughts?

    private Map getUser(String userKey) {
      Map users = new HashMap();
      User user = null;
      UserManager userManager = (UserManager) Platform
      .getService(UserManager.class);
      try {
      user = userManager.getDetails(userKey, null, false);
      logger.log(ODLLevel.FINE, "User: {0}",new Object[] { user });
    
      } catch (NoSuchUserException e) {
      logger.log(ODLLevel.ERROR, e.getMessage(), e);
      } catch (UserLookupException e) {
      logger.log(ODLLevel.ERROR, e.getMessage(), e);
      }
      Set AttrNames = user.getAttributeNames();
      logger.log(ODLLevel.FINE, "User Attributes: {0}",new Object[] { AttrNames });
    
      Iterator itr = AttrNames.iterator();
      while (itr.hasNext()) {
      try {
      String AttrNAme = itr.next().toString();
      logger.log(ODLLevel.FINE,"Current Attribute is : {0}::",new Object[]{AttrNAme});
      if( user.getAttribute(AttrNAme).toString()!=null && user.getAttribute(AttrNAme).toString().length()!=0){
      String AttrValue = user.getAttribute(AttrNAme).toString();
      logger.log(ODLLevel.FINE,"Attribute: {0} and Value: {1}",new Object[]{AttrNAme,AttrValue});
      users.put(AttrNAme, AttrValue);
      }
      } catch (Exception e) {
      logger.log(ODLLevel.ERROR, e.getMessage(), e);
      }
      }
      return users;
      }
    

    TIA

    A call to ToString on null will give you the exception. You should check that the value is not null before calling toString() on it.

    In addition, you must perform an additional control on the user object that you receive after your try catch block. If the user object is null, then there is no need to run code on the user object.

  • Enter the value for the data files:

    Hi all
    I use 10.2.0.1.0
    I have a tablespace "hg" with two data files.
    whenever I use after an order to drop this tablespace I hv asked values for data files
    Welcome is:

    SQL > drop tablespace hg, including content and data files;

    SQL > drop tablespace hg, including content and data files;

    I have two data files to the tablespace named as hg.dbf, hg1.dbf

    now what I hv value to enter? or how to calculate the value.


    Thank you

    Honey says:
    Yes I know its 'AND' but when I using the '&' then oracle asked me of ' enter the values of the data files: "k".
    Please try first, then the calculation of the value.
    It can be a variable binding value.
    If you find the answer please suggest steps

    Simple words, the "DROP TABLESPACE" command does not support '&' character. & is a substitution of placeholder for SQL variable * more.

    Even if you provide the value for the "data files" prompt, the command does not work as it would lead to "drop tablespace including contents tsname *"details of your file *.

  • Why can I not use hidden or display point only to store the value for insertion?

    Hi, gurus:

    I have a question:

    I implemented a form with the region of report in a page, the update works OK, but the add function has a problem:

    There is a column, offender_ID, which is a foreign key to another table, it must not be null during insertion. However, even I pass the ID of the author of the offence of master page when user click on the button create and he did watch in the form, it must be a text tabled for insert success, why can I not use hidden or display point only to store this value for insert? (If I use hidden or display single element insert will be successful, apex reports I tried to insert a null value for the offender_ID column.)

    Thanks in advance.

    Sam

    Hello

    There is a column, offender_ID, which is a foreign key to another table, it must not be null during insertion. However, even I pass the ID of the author of the offence of master page when user click on the button create and he did watch in the form, it must be a text tabled for insert success, why can I not use hidden or display point only to store this value for insert? (If I use hidden or display single element insert will be successful, apex reports I tried to insert a null value for the offender_ID column.)

    I think that both hidden and display elements have attributes that can cause problems because of different ways these function elements as the only non-display and feature no hidden items. The only items have a "Save Session State' yes/no 'control'? This can be a problem.

    Would you do that? Do these regular items instead and see if you can get those working. Then, we will try to change the fields back to hidden or display only.

    Howard

    Congratulations. I'm glad you found the solution.

    Published by: Howard (in training) April 11, 2013 10:26

  • set the values for the list box item

    Hi all

    How you set values for a checkbox element including more of 2 values.
    You retrieve data from a table, so when you query the table, you get several lines accordingly.
    I think it's something for the table_to_string function, but I don't really know how to use it with bind variables
    Can someone help me?

    Thanks in advance,
    Cleo

    Set the Source of the item box:

    Type of source
    SQL query (separated by semicolons return value)

    Source of value or expression

    /* Something like this, according to your table and columns */
    select course_id
    from student_courses
    where student_id = :p1_student_id
    
  • LOV - get the value for the hidden id

    Hi, I thought that this would have been asked some time earlier, but I can't find it. So I hope that some of you know.

    Once I've done Oracle Forms applications, and now I wanted to do something that I thought was simple in apex. However, I do not understand how.

    I have a form, in this form, I have a field with a value of research. When I do an insert or an update, I can query other tables of search I can't find the value using a LOV, and when I choose that it, it shows on my screen so beautiful! But what I really want, is for sure the id value refers to the base table of my form. An id is not something I want on my screen, I use the ID as a technical data absolutely empty of meaning, so my identification fields are hidden to the human eye.

    I can of course, when I secured the record query, who look to the top of table, once again, but that sounds like extremely bad programming. There should be a way to display the name in the LOV, the name in the visible name in the form field and give the field invisible id the value of the ID.

    What is the technique for this in Apex?

    Any help is greatly appreciated.

    Hello

    Apex, you can use select list/multi select or the shuttle, which displays the value that you want to display to the user, but when you save, it will save the id associated with the display value.

    Kind regards
    Shijesh

  • The values for the items in the list of the other data blocks appear not when running.

    Hello

    I have a new problem again.

    I'm a new form in which there is about 8 blocks. All blocks have their tables in the oracle database.

    Each block has 18 columns with the same column and the column names. But the values in these columns are different and do not match.

    The problem is while I sign the form, it fills only the first data block. Other blocks do not display or fill in the values.

    I can't create a master relationship because all column values are different.

    How show or fill in the values of all the tables?

    Please help me. Thank you.

    Hello

    If your form has really separated tables, then you can simply use a trigger key-exeqry at the level of forms of travel in each block in turn and perform a built-in query execute, eventually returned the starting block.

    That is to say

    go_block('..');

    execute_query;

    go_block('..');

    execute_query;

    etc.

    go_item (...);

    In this case, you would use the block where clause to constrain each table for the game proper.

    If, however, the database has no relationship between the tables, but the content of the data has a correlation, then you could create a relationship of forms manually.

    see you soon

    Stem

  • How to find the first max value for each item

    Hello

    I have the me_result of the table as below,

    SELECT * FROM me_result;

    ID     ||| ELITE     ||||||||||| FREQ_ITEM | COMBINED_STR | SUP
    1     ||; 1; 10; 2; 3; 4; 5; 7; 8. 1     ||||||||||||||; 1; 10; 2; 3; 4; 5; 7; 8 ||| 2
    2     ||; 1; 10; 2; 3; 4; 5; 7; 8. 2     ||||||||||||||; 1; 10; 2; 3; 4; 5; 7; 8 ||| 2
    3     ||; 1; 10; 2; 3; 4; 5; 7; 8. 3     ||||||||||||||; 1; 10; 2; 3; 4; 5; 7; 8 ||| 2
    4     ||; 1; 10; 2; 3; 4; 5; 7; 8. 4     ||||||||||||||; 1; 10; 2; 3; 4; 5; 7; 8 ||| 2
    5     ||; 1; 10; 2; 3; 4; 5; 7; 8. 5     ||||||||||||||; 1; 10; 2; 3; 4; 5; 7; 8 ||| 2
    6     ||; 10; 2; 3; 4; 5; 8; 9. 1     ||||||||||||||; 10; 2; 3; 4; 5; 8; 9; 1 ||| 1
    7     ||; 10; 2; 3; 4; 5; 8; 9. 2     ||||||||||||||; 10; 2; 3; 4; 5; 8; 9 ||| 2
    8     ||; 10; 2; 3; 4; 5; 8; 9. 3     ||||||||||||||; 10; 2; 3; 4; 5; 8; 9 ||| 2
    9     ||; 10; 2; 3; 4; 5; 8; 9. 4     ||||||||||||||; 10; 2; 3; 4; 5; 8; 9 ||| 2
    10     ||; 10; 2; 3; 4; 5; 8; 9. 5     ||||||||||||||; 10; 2; 3; 4; 5; 8; 9 ||| 2


    I need to find the first COMBINED_STR max for each element of the ELITE,
    I mean, max value is the max REGEXP_COUNT (combined_str,' ;')))

    really, I try to write down, but I had a lot of values for each ELITE and I need only the first, that
    SELECT * from me_result
    WHERE (ELITE, REGEXP_COUNT (combined_str,' ;')))) IN
    (SELECT ELITE, MAX (REGEXP_COUNT (combined_str,' ;'))))) ME_RESULT ELITE GROUP);

    I need the result to be as below.

    1; 1; 10; 2; 3; 4; 5; 7; 8-1; 1; 10; 2; 3; 4; 5; 7; : p
    6; 10; 2; 3; 4; 5; 8; 9 1; 10; 2; 3; 4; 5; 8; 9; 1 1

    any help please,.

    Published by: user11309581 on July 10, 2011 22:03

    Can be

    with t as
    (select 1     ID, ';1;10;2;3;4;5;7;8'     ELITE, 1     FREQ_ITEM, ';1;10;2;3;4;5;7;8' COMBINED_STR, 2 SUP from dual union all
    select 2     ,';1;10;2;3;4;5;7;8'     ,2     ,';1;10;2;3;4;5;7;8'     ,2 from dual union all
    select 3     ,';1;10;2;3;4;5;7;8'     ,3     ,';1;10;2;3;4;5;7;8'     ,2 from dual union all
    select 4     ,';1;10;2;3;4;5;7;8'     ,4     ,';1;10;2;3;4;5;7;8'     ,2 from dual union all
    select 5     ,';1;10;2;3;4;5;7;8'     ,5     ,';1;10;2;3;4;5;7;8'     ,2 from dual union all
    select 6     ,';10;2;3;4;5;8;9'     ,1     ,';10;2;3;4;5;8;9;1'     ,1 from dual union all
    select 7     ,';10;2;3;4;5;8;9'     ,2     ,';10;2;3;4;5;8;9'     ,2 from dual union all
    select 8     ,';10;2;3;4;5;8;9'     ,3     ,';10;2;3;4;5;8;9'     ,2 from dual union all
    select 9     ,';10;2;3;4;5;8;9'      ,4     ,';10;2;3;4;5;8;9'     ,2 from dual union all
    select 10     ,';10;2;3;4;5;8;9'     ,5     ,';10;2;3;4;5;8;9'     ,2 from dual
    )
    select ID,ELITE,FREQ_ITEM,COMBINED_STR,SUP
    from (
      SELECT ID,ELITE,FREQ_ITEM,COMBINED_STR,SUP, ROW_NUMBER() over (PARTITION BY ELITE order by id) RN
      FROM t
      WHERE (ELITE,REGEXP_COUNT(combined_str,';')) IN
        (SELECT ELITE,MAX(REGEXP_COUNT(combined_str,';')) FROM t GROUP BY ELITE)
    ) where RN=1
    order by id
    
    ID                     ELITE             FREQ_ITEM              COMBINED_STR      SUP
    ---------------------- ----------------- ---------------------- ----------------- ----------------------
    1                      ;1;10;2;3;4;5;7;8 1                      ;1;10;2;3;4;5;7;8 2
    6                      ;10;2;3;4;5;8;9   1                      ;10;2;3;4;5;8;9;1 1     
    
  • Dynamic action and the sequence for popluating items

    I try to use the sequence to fill an item after the other (on the loading of the Page).

    So basically I'm pushing data using a SQL to item_A then fill item_B based on the result of item_A.

    I thought that if I use the sequence it will work, but I don't get any value for item_B.

    What is the best way to do it?

    See you soon,.

    Mehr

    Mehr wrote:

    With the help of the Source is perfect however although I can easily use it to fill the item_A, but when I write this in the section item_B Source:

    item_A + 10 (example)

    the result is null.

    Can you advise?

    I guess the item_A and B are supposed to be in a sequence type of situation so that one can be done after the other, but I doubt if there is any order for items in a form (page).

    Page elements are displayed in order of sequence / the box item. Their source and default values are also defined in this order. However, the source attributes / by default defines only the values rendered on the page, not in session state (you can see this by using the Session Viewer when the page is rendered in first). This means that you cannot reference the value of an element any defined using attributes source / default to the course to see the page. To set values in the elements of rendering and session state, set the initial values using calculations or process rather than the source attributes / by default.

  • Need help to reset the values and toggle items based on a value

    Experts,
    I have a problem with the set_item_property
    Here's the background. I have a form with a single block, and a canvas. He has 10 points, depending on the value of the first element, the remaining items can be enabled or disabled.

    I wrote a trigger "pre-record", whereas before the outputs in the new record based on the value of the first element of the new record the other elements in the new record are enabled or disabled.

    The problem is any value of the box, if I put it in set_item_property ('blockname.item_name ', set', property_false), sound very good, but in a new record, when I tried to
    activate the same element to help set it set_item_property('blockname.item_name',enabled,'property_true) it does not work.

    In singles, I can do as property_false but not back to property_true.

    And when I used the command set_item_property ('blockname.item_name ', on', ") to reset the value back to its design time value form is to throw an error
    withMessage ' FRM-41046'.»

    Guys I need your help on this. Please let me know how can I this and why the error message when I try to reset the value.

    Property_false value ENABLED also affect the Update_allowed/Navigable FALSE at the same time. You must set these properties to return true explicitly, if that's what you hear ' market do not. Search for 'Propagation of changes to property' in Froms help for more details.

  • What is the value of repeat items only?

    I'm trying to understand the value of repeating only objects. I was hoping to create a list with the editable elements < li > and < li > does not have a tag that is supported for the editable regions. But it is supported as a repeat region. Can someone explain to me, or provide an example of the real world, of why this might be useful to the customer? In other words, why a customer would want the opportunity to move up, down, add, or remove an item, but not be able to change the content of the element?

    Is there a workaround to create a combo box or list items?

    Thank you.

    Hello antlion.

    You can wrap the content of the

  • s in editable divs. You have created your repeating group and applied repeatedly = "true" for the list items, but only InContext Editing allows regions editable on div, th, and td elements.

    In Dreamweaver, select the content of your

  • then choose Insert > InContext Editing > create editable region. Dreamweaver invites you to 'wrap the current selection with a DIV tag and then transform '. Click OK, and then repeat this step for each item in the list. The result will create boxes for your list items, and you look at something like:

  • Clear the cache for all items after going to another page

    Greetings,

    I have an application where I have a group of radio with Submit buttons. When I'm on this page, after sending and it is up to the page, I don't want the cache disabled for items on this page. But once I go to any other page in the application, I hide disabled for items on this page. In other words, I would like the values in my articles to stay until I leave the page. Then, once I go back to the page, I don't want to see the choices I made when I was on the page, the last time. How could I get this?

    Thanks in advance,
    John

    I'm sorry. REQUEST.

  • The value for the attribute Transient

    Hi Expert,

    I use JDeveloper 11.1.1.6.

    I want to put the value of pageflowscope value as for example #{pageFlowScope.userInfoBean.orgid} for a Transient attribute

    so I added a transitional attribute to the object View (VO), but in the value of the expression I put #{pageFlowScope.userInfoBean.orgid}

    This expression, it cannot be used.

    How can I do to set the value to the Transient attribute?

    Please advice me, really appreciate your help

    Thank you

    As someone has already said, this is not recommended (access to bean managed layer model), BUT try to put

    userInfoBean.orgid

    pageFlowScope first and then access this value as I told you

Maybe you are looking for

  • Lenovo Think Pad T520: Officejet 4500

    Printer works fine when it is connected with a USB cable.  However, after a recent update of Windows 10 Wireless does not work.  I tried every fix, I can imagine, turn off everything, check settings on printer wireless (all are correct).  I followed

  • The eloquence of empires 2 conquerors loading screen crash

    After changing the compatibility Win 98 or 95 (the operating system minimum for the game) for Age of Empires conquerors I get message saying of error "the application could not start properly (0 x 80000003). Click OK to close the application. » When

  • HP ENVY 17-j184na driver download page

    Just bought a 17-J184 Envy and the need to find the HP driver page.  As a developer, I'd rather have a completely clean install.  Driver Genius has done its work very well, but it was missing the drivers for the fingerprint reader. While searching fo

  • Unlock windows box disappears after windows automatically locks the screen

    Hello I have a professional Windows XP Tablet from Lenovo X 200 ongoing execution machine. This problem does not occur * too * often, but enough to be annoying. After 15 minutes of inactiviy, windows is the standard screen saver routine by locking th

  • HP Probook 4440 s Bios reset!

    Hi, I am a COMPUTER technician. I have a laptop belonging to a student, the laptop is no longer under warranty. The hard drive has hailed and must be replaced, after installing a new hard drive I tried to boot from a flash drive and noticed that it d