Why cannot I use hidden or display only item to store value for insert?

hi, Gurus:
I have a question:
I implemented a form with report region 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 for another table, it should not be null during insert. However, even I pass the offender ID from master page when user click the create button, and it did shows in the form, it must be a text filed to insert successfully, why cannot I use hidden or display only item to store this value for insert? (If I use hidden or display only item, insert won't be successful, apex reports I tried to insert a null value to offender_ID column.)
Many Thanks in advance.
Sam

Hi,
There is a column, offender_ID, which is a foreign key for another table, it should not be null during insert. However, even I pass the offender ID from master page when user click the create button, and it did shows in the form, it must be a text filed to insert successfully, why cannot I use hidden or display only item to store this value for insert? (If I use hidden or display only item, insert won't be successful, apex reports I tried to insert a null value to offender_ID column.)I think both hidden and display items have attributes that can cause problems because of different ways these items function than non-hidden and non-display-only items function. Display Only items have a "Setting" of "Save Session State" Yes/No? That can be a problem.
Would you do this? Make these items 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. Glad you found the solution.
Edited by: Howard (... in Training) on Apr 11, 2013 10:26 AM

Similar Messages

  • I want to use my external display only...

    Hello
    I have the white MacBook and a 32'' panasonic TV connected via mini-DVI/DVI/HDMI, I have both wireless Apple Keyboard and Mouse (by bluetooth). How can I close the MacBook's screen without getting it to sleep mode and use the external display only while the MacBook's screen is closed??
    Please help.

    Click here and follow the instructions.
    (47126)

  • Displaying diff dates using PL/SQL expression for 'display only' item ?

    Hi ,
    I am having a display only item -- :P2_FROM_Date . If its Thu,Fri,Sat or Sun I want to set the date as the last Monday's date . If its Mon,Tue or Wed then it should be the present Monday's date .
    E.g: Today is Friday and the last Monday was on 18th .
    So for yesterday , today,tomorrow and Sunday , the date should be displayed as 18-JUN-2012.
    From the coming Monday to Wednesday , the date should of be the coming Monday i.e , 24-JUN-2012
    I tried it doing under 'Source ' of item using PL/SQL expression and PL/SQL function body. Not working
    Can someone help ?
    Thanks & Regards
    Umer

    Nice1 wrote:
    declare
    lv_date number;
    begin
    select to_char(sysdate,'D') into lv_date from dual;
    if lv_date=2 then
    :P2_FROM_DATE := to_char(sysdate-1);
    end if;
    end;I tried this under " PL/SQL function body " in "Source " tab of the item P2_FROM_DATE
    When I run this , nothing is displayed corresponding to the item P2_FROM_DATEExactly as expected. This code will only set a value for <tt>P2_FROM_DATE</tt> when run on Mondays in territories where the first day of the week is Sunday, and when run on Tuesdays where Monday is the first day of of the week:
    SQL> var P2_FROM_DATE varchar2(30)
    SQL> alter session set nls_date_format='Dy DD-MON-YYYY';
    Session altered.
    SQL> select sysdate from dual
    SYSDATE
    Mon 25-JUN-2012
    SQL> alter session set nls_territory='AMERICA';
    Session altered.
    SQL> declare
      2  lv_date number;
      3  begin
      4  select to_char(sysdate,'D') into lv_date from dual;
      5  if lv_date=2 then
      6  :P2_FROM_DATE := to_char(sysdate-1);
      7  end if;
      8  end;
      9  /
    PL/SQL procedure successfully completed.
    SQL> print p2_from_date
    P2_FROM_DATE
    Sun 24-JUN-2012
    SQL> alter session set nls_territory='UNITED KINGDOM';
    Session altered.
    SQL> exec :p2_from_date := null
    SQL> declare
      2  lv_date number;
      3  begin
      4  select to_char(sysdate,'D') into lv_date from dual;
      5  if lv_date=2 then
      6  :P2_FROM_DATE := to_char(sysdate-1);
      7  end if;
      8  end;
      9  /
    PL/SQL procedure successfully completed.
    SQL> print p2_from_date
    P2_FROM_DATE
    SQL>Hence the questions about language above.
    >
    I am having a display only item -- :P2_FROM_Date . If its Thu,Fri,Sat or Sun I want to set the date as the last Monday's date . If its Mon,Tue or Wed then it should be the present Monday's date .
    E.g: Today is Friday and the last Monday was on 18th .
    So for yesterday , today,tomorrow and Sunday , the date should be displayed as 18-JUN-2012.
    From the coming Monday to Wednesday , the date should of be the coming Monday i.e , 24-JUN-2012
    >
    The coming Monday is 25-JUN-2012.
    Aren't these rules equivalent to "Monday this week, where Monday is the first day of the week"? In which case the PL/SQL Expression you require is:
    trunc(sysdate, 'iw')For example:
    SQL> with t as (
      2    select date '2012-06-21' + level d from dual connect by level <= 17)
      3  select
      4            d
      5          , trunc(d, 'iw')  monday
      6  from
      7            t;
    D               MONDAY
    Fri 22-JUN-2012 Mon 18-JUN-2012
    Sat 23-JUN-2012 Mon 18-JUN-2012
    Sun 24-JUN-2012 Mon 18-JUN-2012
    Mon 25-JUN-2012 Mon 25-JUN-2012
    Tue 26-JUN-2012 Mon 25-JUN-2012
    Wed 27-JUN-2012 Mon 25-JUN-2012
    Thu 28-JUN-2012 Mon 25-JUN-2012
    Fri 29-JUN-2012 Mon 25-JUN-2012
    Sat 30-JUN-2012 Mon 25-JUN-2012
    Sun 01-JUL-2012 Mon 25-JUN-2012
    Mon 02-JUL-2012 Mon 02-JUL-2012
    Tue 03-JUL-2012 Mon 02-JUL-2012
    Wed 04-JUL-2012 Mon 02-JUL-2012
    Thu 05-JUL-2012 Mon 02-JUL-2012
    Fri 06-JUL-2012 Mon 02-JUL-2012
    Sat 07-JUL-2012 Mon 02-JUL-2012
    Sun 08-JUL-2012 Mon 02-JUL-2012
    17 rows selected.
    SQL> alter session set nls_territory='AMERICA';
    Session altered.
    SQL> alter session set nls_date_format='Dy DD-MON-YYYY';
    Session altered.
    SQL> with t as (
      2    select date '2012-06-21' + level d from dual connect by level &lt;= 17)
      3  select
      4            d
      5          , trunc(d, 'iw')  monday
      6  from
      7            t;
    D               MONDAY
    Fri 22-JUN-2012 Mon 18-JUN-2012
    Sat 23-JUN-2012 Mon 18-JUN-2012
    Sun 24-JUN-2012 Mon 18-JUN-2012
    Mon 25-JUN-2012 Mon 25-JUN-2012
    Tue 26-JUN-2012 Mon 25-JUN-2012
    Wed 27-JUN-2012 Mon 25-JUN-2012
    Thu 28-JUN-2012 Mon 25-JUN-2012
    Fri 29-JUN-2012 Mon 25-JUN-2012
    Sat 30-JUN-2012 Mon 25-JUN-2012
    Sun 01-JUL-2012 Mon 25-JUN-2012
    Mon 02-JUL-2012 Mon 02-JUL-2012
    Tue 03-JUL-2012 Mon 02-JUL-2012
    Wed 04-JUL-2012 Mon 02-JUL-2012
    Thu 05-JUL-2012 Mon 02-JUL-2012
    Fri 06-JUL-2012 Mon 02-JUL-2012
    Sat 07-JUL-2012 Mon 02-JUL-2012
    Sun 08-JUL-2012 Mon 02-JUL-2012
    17 rows selected.Also note that using the item source properties will only set the <tt>P2_FROM_DATE</tt> in the rendered page, not in session state.

  • Set value of a display only item using javascript

    I was trying to find an answer in the forum but my searches gave me no results. How do
    I set a value of a display only item using javascript (ajax)?
    Denes Kubicek
    http://deneskubicek.blogspot.com/
    http://htmldb.oracle.com/pls/otn/f?p=31517:1
    -------------------------------------------------------------------

    Vikas,
    Thanks for a fast responding. The type is Saves State. However, I tried to set the value
    of a display only item using:
    <script>
      function f_setDisplayOnly ()
        {$x('P80_X').parentNode.childNodes[4].nodeValue = 1;
    </script>without a result (or error). What am I doing wrong?
    Denes Kubicek
    http://deneskubicek.blogspot.com/
    http://htmldb.oracle.com/pls/otn/f?p=31517:1
    -------------------------------------------------------------------

  • Mapping display only item to three output parameters from a procedure?

    Hi all
    I have a procedure with three output parameters, which I would like to map the three output parameters to three display only items on the page.
    there is a page process called the procedure, which output statement1,statement2,statement3 parameters.
    I have three items on the page which I would like to map them to the three parameters respectively,
    how can I achieve this?
    thanks

    Rajesh,
    please check if this following proposal could serve you.
    Define the Query with mode FixedQueryWithOutput. In the package define a ref cursor as IN OUT parameter. To get your 3 values back, open the cursor in your procedure like "Select val1, val2, val3 from dual". Then the values should get into your query.
    Here is an example how this could be defined.
    Package:
    type return_cur IS ref CURSOR;
    Procedure:
    PROCEDURE myProc(myReturnCur IN OUT return_cur) ...
    OPEN myReturnCur FOR SELECT val1, val2, val3  FROM dual;
    Query:
    DECLARE
      MYRETURNCUR myPackage.return_cur;
    BEGIN
      myPackage.myProc(
        MYRETURNCUR => ?
    END;
    Good luck.
    Michael

  • Why cant i use a bought call-tone bought through I-tones for calling tones for just one of my contacts?

    Why cant i use a bought call-tone bought through I-tones for calling tones for just one of my contacts?

    What makes you believe that you can't? To set a custom ringtone (or SMS tone) for a contact, go to that contact entry, tap the Edit button in the upper right. You can then edit both ringtones and SMS tones for that contact.

  • How to force carraige return in display-only item

    Can I somehow force a carraige return in the text for a display only item? Aesthetically, I'd would like to have strategically-placed line breaks.
    Thanks,
    C

    Scott -- Sorry, I posted the wrong example entirely. Here's the assignment statement. If it isn't clear I'll try to put an example on apex.oracle.com... which I've not done before, so would be another learning experience :)
    :P1_MESSAGE_1 := 'my display text line1< br>my display text line2';
    My assignment statement is exactly the same format as what you posted on
    Jul 29, 2008 2:51 PM, with the space after the opening bracket removed, as you
    indicated it should be.
    :P1_MESSAGE_1 is a display only, saves state item. After the assignment
    statement (and submit), what is displayed is exactly what's in the single quotes, including the brackets and the "br" -- the html doesn't appear to be recognized as such:
    Item display is: my display text line1< br>my display text line2
    Does this clarify what I'm doing?
    Thanks,
    C

  • Using iphone 5 and 5c on ios7.0.4 and would like to use these on wireless only with no carrier service for voip apps.    how to i prevent the Iphone is not activated contact your carrier?

    Hi i am using iphone 5 and 5c on ios7.0.4 and would like to use these on wireless only with no carrier service for voip apps.    how to i prevent the error Iphone is not activated contact your carrier?

    tnguyen9 wrote:
    when i remove the sim card it gives me errors that there is no sim. 
    You should only need a SIM in it to actually activate it in iTunes.  Once activated, leave the SIM in or remove it, it should not matter.
    Then, turn on airplane mode.  And then, go into wifi settings and re-enable wifi (this leaves the cellular radio in airplane mode = powered off).
    Now your iPhone is effectively no more than a (wifi only) iPod Touch.

  • Dynamic hyperlinks as Display Only item?

    Hi, I need to add a hyperlink on a page, and the hyperlink will partially be derived from a page item on that page.
    When I put a Display Only item on that page, with the source type as Static Assignment and set to something like:
    <a href="http://webserver/page.html?number=:P2_NUMBER">blah</a>It displays exactly that, ignoring the HTML, and doesn't display it as a link.
    Simple I'm sure, but what am I doing wrong?

    What you set for the item would be its value (of an input HTML item)
    Try adding it to post or pre-element text of the item as
    &lt;a href=&quot;http://webserver/page.html?number=&P2_NUMBER.&quot;&gt;blah&lt;/a&gt;

  • Setting values to Display Only item during AJAX request

    Hello,
    Good Morning!
    In a master-detail form, in the detail report, I am populating two columns SERVICE_TAX_PCT and SERVICE_TAX_AMOUNT by making an AJAX request after selection of ACCOUNT_CODE.  Values are populated with out any issue. 
    However, as soon as I make those two fields as Display Only, the values are not getting set.  Is there a way to set the values to a field in the same time it should be restricted for user to change it?
    (APEX 4.2.6)
    Thanks,
    -Anand

    Hi Anand,
    anand_gp wrote:
    Hello,
    Good Morning!
    In a master-detail form, in the detail report, I am populating two columns SERVICE_TAX_PCT and SERVICE_TAX_AMOUNT by making an AJAX request after selection of ACCOUNT_CODE.  Values are populated with out any issue.
    However, as soon as I make those two fields as Display Only, the values are not getting set.  Is there a way to set the values to a field in the same time it should be restricted for user to change it?
    (APEX 4.2.6)
    check the example
    Step 1: Edit your page
    under CSS->Inline put the code given below
    .row_item_disabled {
       cursor: default;
       opacity: 0.5;
       filter: alpha(opacity=50);
       pointer-events: none;
    Step 2 : I guess you have Javascript function similar like given below
    you have to extract rowid first, for which you want to set the percentage , see line 6
    and see line 18, for disabling the column of that row.
    <script type="text/javascript">
       function f_fetch_tax_percentage(pThis) {
       var ajaxRequest;
       var ajaxResult;
       var row_id = pThis.id.substr(4);
       var percentage    = 'f05_' + row_id;   // replace f05 with the rowid of percentage column
       ajaxRequest = new htmldb_Get(null,$x('pFlowId').value,'APPLICATION_PROCESS=TAX_DTLS',0);
       ajaxRequest.addParam('x01',$v(pThis));
       ajaxResult = ajaxRequest.get();
       if ( ajaxResult.length > 0 ) {
       // set percentage
       $('#'+percentage).val(parseFloat(ajaxResult));
       // disable percentage column
       $("#f05_" + row_id).attr("readonly", true).addClass('row_item_disabled');        
    </script>
    Hope this helps you,
    Regards,
    Jitendra

  • How to display texts automatic. besides entered value for a field in Trans.

    How to display texts automatically besides the entered value for a field in a standard transaction screen. For example you have a value table and a text table associated to it. Then on entering the value field and pressing enter the text associated should get displayed immediately besides the value. Like if you have 'LOC' as the value and 'Location' as the text associated to it, on entering this value 'LOC', you automatically get the text 'Location' printed besides it automatically in a transaction screen ?
    Message was edited by: Sarika Kedia

    Hi sarika,
    Welcome to SDN.
    1. first of all, such display of text,
       is not automatic.
       (it appears to be automatic)
    2. At design time,
       a) take one extra field for text
         and mark it as OUTPUT ONLY
    3. Then in PBO coding,
        call some module, and in that module
        write code
    4. The code should be to
       select from TEXT Table
       into the work area.
    EG. THE SCREEN TEXT FIELD NAME IS
    T510A-FIELDNAME.
    CLEAR t510a.
      SELECT SINGLE * FROM t510a INTO t510a
      WHERE trfar = FIELVALUE.
    5. This will take care of
       displaying the text value of that field.
    regards,
    amit m.

  • CR2008 and SAP BW - Only limited number of values for static parameter

    Hello Experts,
    we have the following constellation / problem:
    - SAP Query BW 7.0 with variables
    - a report built upon this query with Crystal Reports 2008
    - now if we execute the report and try to fill in the parameters (= SAP BW variables), not all values are displayed for selection and there seems to be no possibility to further scroll down; e.g. the months 01.1993-08.2006 are displayed, but not later than 08.2006
    This is really a problem for us since the users won´t be able to select e.g. the desired time range !
    I read already the SAP notes 1218588 and 1211902 and I 'implemented' 1211902, but still only a few values are displayed (the same as before I changed the values for BrowseTimeout and MaxNBrowseValues). Besides that, in the solutions in the SAP notes Crystal Reports 2008 is not explicitly mentioned (so I manually created the DWORD-keys).
    Many thanks for your help in advance !
    Frank

    See
    CR2008 and SAP BW - Technical Values for variable values not displayable ?
    for the answer.

  • Why does my 27" LED Cinema Display only display maximum resolution of 1920x1200, when my Mid 2009 13" MBP says it supports up to 2560x1600?

    When I have my MBP connected to my 27" LED Cinema Display, my display settings only show a maximum resolution of 1920x1200, when the specs on both my MBP and Display say they they support up to 2560x1600?  Am I missing something?

    I finally decided to just take my MBP down to the Apple store and see what would happen if I connected it to one of their new ACDs.  At 1st, the guy at the Genius Bar told me that my MBP only supported 1280x800 as a maximum resolution.  I told him that was for my MBP screen, and not an external monitor.  Finally I convinced him to let me connect my MBP to one of their monitors.  Low and behold, looking at the Display settings pane I saw some addtional resolutions, including 2560x1600!
    So, now I have confirmed that my MBP can drive an external monitor to a resolution of 2560x1600, using just the single mini displayport connection.  I just have to figure out what's wrong with my ACD.  Suspecting that my older ACD might not support this higher resolution, I did finally discover that my model only supports a maximum resolution of 1920x1600.
    Sorry for all the confusion...

  • Using an external display only

    Heres my setup: An iMac with an HDMI cable to another room into a 1080p TV. Mirroring mode would be ideal but it won't run my TV at its native resolution or aspect ratio. So my only choice is extended mode, the problem with it is windows open where they last were usually so they pop up on the wrong display.
    My current work around is to enable spaces (even though I don't use them) in a hot corner which shows you what windows are on the other monitor so you can drag them to the right monitor. Also I arrange the displays corner to corner so I don't lose the cursor as easily. What I would like is:
    To force 1080p 16:9 while mirroring
    Or have a 'gather windows to extended display' button on the dock
    Or any other solution you can think of
    What I'm doing isn't that unusual, I'm surprised theres no option for it.
    Thanks

    You need to define the TV as the primary display so that when it's available, the dock and the apps will display there. When it's not available they display on the iMac. Here's how:
    In System Preferences > Displays > Arrangement tab > drag the white bar at the top of the primary display over to the secondary.
    Regards,
    Captfred

  • Why does Apple Mail preview pane display only sender's first name?

    Some, but not all, of the mail I receive shows only the sender's first name in the preview pane. I've checked the three areas others have mentioned as possible sources of the problem: 1.) Both first and last names appear for these senders in my Contacts. 2.) None of these senders appear with only first names in my Previous Recipients list. 3.) The full headers don't show first name only.
    When I used Entourage, emails from the same senders never showed only first names in the preview pane.
    Is this a bug in Apple Mail? Is there a workaround?

    I came here looking for a similar answer. Some of my HTML messages show up just fine in Mail 3.5. Others, I get the plane text alternative or a bunch of raw HTML. With no answer in sight on the Discussion groups, I decided to look at the raw mail message of one of the offending emails.
    Under the View menu I found a sub menu called Message then there are 6 choices beneath that:
    *Long Headers*
    *Raw Source* (which is what I was looking for)
    +(and then below a separator I found a surprise!)+
    *Plain Text Alternative* (grayed out)
    *Previous Alternative* (grayed out)
    *Next Alternative* (available)
    *Best Alternative* (available)
    Only the appropriate ones for the current message display format are available.
    So low and behold selecting "next" or "best" changed my message into fully readable HTML format with pictures, formatting, etc.
    I am assuming that something in the way that the multipart MIME message is assembled by some senders' systems does not sit well with Mail. I'm not going to bother figuring it out, but I'm sure that close examination of the raw message would give some clues.
    Now if only I could figure out how to choose the message format based on the sender, I could eliminate having to change every message that comes in from that sender. Maybe AppleScript and a Mail Rule?
    Message was edited by: sjmvideo

Maybe you are looking for

  • How do you erase mountain lion to install snow leopard?

    Hi, My mother now has a new to her late 09 mini that originally shipped with snow leopard. When she bought it it came with mountain lion preinstalled from a private seller. We were thinking that to be on the safe side that it might be better to erase

  • Problem with apple installing with itunes.msi in windows 7

    At the beggining my computer showed an error with itunes.msi and I tried to fixed the error. Then I tried again to install the itunes but now itunes say that the program cant be installed. Can somebody help me??? Thanks

  • Redirect some users on signon (Tools 8.50)

    All, I have a requirement for a subset of my users (those possessing a certain role) to be redirected to a particular page at logon (i.e. they need to be forwarded to a page without seeing the PIA homepage). These users need to use the same PeopleSof

  • Gadgets missing from homepage - just a white blank - I am not on Classic. Tried everything I know.

    This happened about a month ago. It doesn't matter what computer I am on or where I am. The Theme I chose is intact and there is a menu to the left that lists the gadgets I had selected but it seems to be inactive and is cut off by the blank white fi

  • Caller Can't Hear Me

    For some reason, I can receive a call and get in just enough time to say Hello before the caller can't hear me at all. It doesn't drop the call, simply silences me. I have never had this problem and haven't dropped my phone on anything hard. My firmw