make a mistake in trying to put the text to the value ofa form field

Hi all

When I try to set the text for a field of type value form he gives null pointer exception, please help me.

I tried below.

OAFormValueBean containlineid = (OAFormValueBean) webBean.findChildRecursive ("item11");

containlineid.setText (pageContext, "test");

Thank you

Hello

Please check line 123 XXDPECONTAINLINESCO.java, also make sure you null pointer checking in the

getting and setting the value

for example:

If (pageContext.getParameter ("item30")! = null) {}

If (containlineid! = null)

{

containlineid.setValue (pageContext, recout);

}

If (containlineid. GetValue (PageContext)! = null)

{

String value = (String) containlineid.getValue (pageContext);

}

}

Date of arrival in the same way:

String recout = (String) am.invokeMethod ("getSelectedData");

If (recout! = null)

{

containlineid.setValue (pageContext, recout);

}

Let me know if you still face with the exception of Null pointer.

Kind regards

Had

Tags: Oracle Applications

Similar Questions

  • The value of form field navigation

    This question has been posted in response to the following article: http://help.Adobe.com/en_US/Acrobat/X/pro/using/WSC463C76C-C9CE-4fc0-B56F-41A8DA4E8645.htm l

    I thought it was a bug, but it is actually considered as a feature by Adobe. Acrobat is tries to set the tab order to think logical when you move/change fields. They have finally fixed this with Acrobat 11 by providing a way to disable this behavior and greatly increases the usability of the method of definition of the order allowing you to select and move more than one field at a time. These two features alone if it is worth the upgrade price, at least if you do a significant amount of work forms. Before 11 Acrobat is available, I used Acrobat 7 whenever I had a lot of restructuring to do and do it again. His method is still the most effective, but I fear that we will never see it again.

  • Pass the value of form field into the message of confirmation box

    Hello

    I created a confirmation box that fires when a user presses a button on the form.

    Under "URL redirection" button, I have the following:

    JavaScript:confirmDelete('Please_Confirm_Reduction_of_Call_Off_Pick_requirement.','REDUCE_CALL_OFF');

    This in turn calls a PLSQL process that perform a database update for a form called P4_PICK_LINE text field

    Is that I would have to include the P4_PICK_LINE in the confirmation message, i.e. "Please confirm reduction of call off sampling requirement pick123' where pick123 is the value of P4_PICK_LINE

    I know that I can pass in variables like session & APP_USER. etc in the message of confirmation, but not sure about text form element values.

    I use the apex 4.0.0.00.46 on windows version 7.

    Any help would be great


    Thank you
    Chris

    Edited by: Cashy on 05-Sep-2012 03:44
    javascript:confirmDelete('Please confirm reduction of call off pick requirement ' + $v('P4_PICK_LINE'),'REDUCE_CALL_OFF');
    

    A complete list of javascript API functions can be found here: http://docs.oracle.com/cd/E10513_01/doc/apirefs.310/e12855/javascript_api.htm

    You may not use session variables unless your variables are sent to the server. As long as you don't offer you will rely on javascript ;)

    Concerning

    Nico

  • tried to put the password on windows messaging and now can't open my email

    tried to put the password on windows messaging and now can't open my email

    Tried to put a password?

    Could you be more specific as to what you were doing.

    Try this:

    Restore point:

    http://www.howtogeek.com/HOWTO/Windows-Vista/using-Windows-Vista-system-restore/

    Do Safe Mode system restore, if it is impossible to do in Normal Mode.

    Try typing F8 at startup and in the list of Boot selections, select Mode safe using ARROW top to go there > and then press ENTER.

    Try a restore of the system once, to choose a Restore Point prior to your problem...

    Click Start > programs > Accessories > system tools > system restore > choose another time > next > etc.

    http://www.windowsvistauserguide.com/system_restore.htm

    Read the above for a very good graph shows how backward more than 5 days in the System Restore Points by checking the correct box.

    See you soon.

    Mick Murphy - Microsoft partner

  • cannot set file error when trying to put the photoshop button in adobe muse, he is not 'supported color space. Resave image RGB or grayscale.

    cannot set file error when trying to put the photoshop button in adobe muse, he is not 'supported color space. Resave image RGB or grayscale.

    I believe that this is already the answer here:

    https://forums.Adobe.com/thread/1917435

    Thank you

    Sanjit

  • put the value into the correct column according to (complex) date

    Hello

    the query I'm doing is very complex (for me, of course), so I need help from you experts...
    I have a table as below

    ID | name | value | Date
    1. Ranieri | 254,2 | 2009-01-21
    2. Jorge | 252,5 | 2009-03-23
    2: Ricardo | 584,5 | 2009-04-21
    5. Fabricio | 478.2 | 2009-02-12
    4 > Felipe | 454,5 | 2009-01-30
    7. Leonardo | 484,6 | 2009-02-15
    8. Marcelo | 854,4 | 2009-02-04

    First of all, I need a query that separates each month on both sides, so for this year, I'm having columns like below

    jan01-15 jan16-31 fev01-15 fev16-28 mar01-15 mar16-31 apr01-15 apr16-30 and so on...

    P.S:this query must deal only with the current year

    So, I need the result is the union of these two tables to be as below

    ID | name | value | Date | jan01-15 | JAN16-31 | fev01-15 | fev16-28 | Mar01-15 | mar16-31 | APR01-15 | Apr16-30 and so on...
    1. Ranieri | 254,2 | 2009-01-21 | 254,2 |
    2. Jorge | 252,5 | 2009-03-23 | 252,5 |
    2: Ricardo | 584,5 | 2009-04-21 | 584,5
    5. Fabricio | 478.2 | 2009-02-12 | 478.2 |
    4 > Felipe | 454,5 | 2009-01-30 | 454,5 |
    7. Leonardo | 484,6 | 2009-02-15 | 484,6 |
    8. Marcelo | 854,4 | 2009-02-04 | 854,4 |

    I 'don' t know if my problem is very clear, but for each row based on the column 'date', I need to put the value in the right column "part of month".

    Is there a way to do this?

    I appreciate a lot of help...

    Thank you

    Published by: Ranieri on 09/02/2009 06:20

    Hello

    This is called a pivot; Here's how you can do:

    SELECT     id
    ,     name
    ,     value
    ,     dt          -- date is not a good column name
    ,     CASE (WHEN TO_CHAR (dt, 'MM') = '01' AND TO_CHAR (dt, 'DD') <= '15' THEN value END)     AS "jan01-15"
    ,     CASE (WHEN TO_CHAR (dt, 'MM') = '01' AND TO_CHAR (dt, 'DD') >= '16' THEN value END)     AS "jan16-31"
    ,     CASE (WHEN TO_CHAR (dt, 'MM') = '02' AND TO_CHAR (dt, 'DD') <= '15' THEN value END)     AS "feb01-15"
    ,     CASE (WHEN TO_CHAR (dt, 'MM') = '02' AND TO_CHAR (dt, 'DD') >= '16' THEN value END)     AS "feb16-28"
    ...
    ,     CASE (WHEN TO_CHAR (dt, 'MM') = '12' AND TO_CHAR (dt, 'DD') <= '15' THEN value END)     AS "dec01-15"
    ,     CASE (WHEN TO_CHAR (dt, 'MM') = '12' AND TO_CHAR (dt, 'DD') >= '16' THEN value END)     AS "dec16-31"
    FROM     ...
    

    If you are looking for pivot, you will have many other examples. Almost all of them combine several rows of the table in a line of output, so they use GROUP BY, an aggregate function, such as MIN or SUM. Your problem doesn't have that.

  • How to set the value of a field from the LOV of another field.

    I'm trying to figure out how to set the value of a field (P_PROGRAM) to the value of another field of based lov (P_STATE).

    The P_PROGRAM field is a hidden field. The P_STATE field is a required field and is based on a list of values for the State Codes.

    When a user selects the State to P_STATE, the field of the P_PROGRAM should be set to this value, as well.

    I tried different ways to get there via a function call on the post for the calculation of the field P_STATE, defining the source P_PROGRAM to the value of the page item P_STATE put varialbles, creating a process before SENDING, and they all still come back as having a NULL value for P_PROGRAM, therefore impossible to create the file in the db as the PROGRAM is a mandatory field in the table.

    Can you please help? Thank you, Laura

    Laura,

    It is always helpful if you provide information about the Apex version you are using. The Apex 4 you can use Dynamic Actions to achieve this. In earlier versions is possible using processes to submit or javacsripts, as well.

    Heres how you do in 3.x with treatment to submit, to make it work in 4.0 as well.

    1 do the P_STATE ' select list submits the Page.
    2. Add a calculation on the point P_PROGRAM, or write to him assign a value based on a process. The treatment should be OnLoad after the header
    3. If the page does not have an unconditional branch that loops on itself, add a. NOTE: The direction must be the last branch (larger sequence number) and should have checked "Save Session State".

    This is what will happen
    a. when the State is selected Page will be submitted
    (b) it will take the unconditional branch to himself and save the value of P_STATE
    c. the calculation process / fills the value of the P_PROGRAM element when the page reloads

    Kind regards

  • How to change the color of form fields

    I don't know how to change the color of form fields. They default to gray, but I don't know how to make a different color.

    Gray does not match the color scheme of my landing page!

    Thank you!

    I think you have two options when you are working on a landing page with an embedded format:

    • You can change the background color of the entire form field set by selecting the shape, and then clicking on the Toolbox. In the window that opens go to the second (on a paint brush icon) and select the background color you want.
    • You can change the background color of the actual fields in the form by adding CSS styles. Select the Toolbox, go to the last tab (Tools Extract page) and in the middle of this window, you will see "head | CSS | JS"- select this average CSS tab and enter the style code to get the color you want. Here is an example of code you can put in it. Note that #000000 is the color code for black. Here is more information about the code: css - background in the input fields and text color? - stack overflow

  • How do I delete an article based on the value of another field


    I have a pdf form that I added to the text fields. My challenge is that of the financial section of the form, if the value of a specific field is empty or null, I blank block of signature financial review.  I've been trying to find a way to cover the area of signature with a white box or have a text box with signature block text appear or disappear depending on whether the value is zero or empty.

    If seen many answers on how to make the field itself disappear based on value, but I did find something that causes another field or shape appear or disappear depending on the value of another field.

    Please try the following script,

    var signid = true;

    If (this.getField("finan").value! = 0) signid = true;

    of another signid = false;

    If (SignID) this.getField("signaturefield").display = display.visible;

    else this.getField("signaturefield").display = display.hidden;

    Please let me know if it solves the problem.

  • Fill a field value based on the value of another field

    Hello
    Could someone tell me what is the problem with the following select statement. For a group of records, trying to fill a field with a value based on the value in another field (problem of status), but the Group of records appears empty just when I put this code in the field.
    Any help would be appreciated
    Thank you


    <? choose:? >
    <? When: IssueStatus = "Open"? >
    <? 1? >
    <? end when? >
    <? otherwise:? >
    <? When: IssueStatus = "closed"? >
    <? 2? >
    <? end when? >
    <? otherwise:? >
    <? When: IssueStatus = "Unresolveable? >
    <? 3? >
    <? end when? >
    <? end otherwise? >
    <? end to choose? >

    Use the following syntax.

    
    
    Display 1
    
    
    Display 2
    
    
    Display 3
    
    
    
  • ([JDev12c, ADF] 1) how to get the value of a field of the line currently selected in question 2) af:table: flowScope

    Hallo,

    How can I get the value of a field in the row that is currently selected in an af:table?

    I need to pass this value to a setCurrentRowWithKeyValue who took the record to display in another (by a button) called page:

    Limited workflow

    Page1 - goToPage2-> setCurrentRowWithKeyValue-> PAGE2

    I defined a managed bean flowScope for the workflow in which I created the variable 'CodeToSetPage2Row '.

    I will store the value of the field for the selected line in this variable so that I can move on to the setCurrentRowWithKeyValue.

    Could be this method OK? Ore is there any good practice to achieve this goal?

    The managed bean flowScope used to go to the stubborn task may take some values from the outside?

    The workflow defined will be executed in a dynamic region.

    Thank you

    Federico

    Federico, you cannot use a flow variable scope for this page. The region has no access to the bean. You must use a workflow for this parameter.

    To get an attribute of the currently selected line you make slide data vo of control on the page attribute. This will create a link attribute for this attribute. Once this link exists, switch to source mode and remove the component that you do not want.

    The framework passes the value of the current row in this affair of the attribute (table should be in single selection mode).

    Click on the button, you switch the binding of the attribute for the setting of task flow using a setPropertyListener.

    In the workflow, you call the setCurrentRowWithKeyValue with the parameter of workflow as the default activity.

    Timo

  • How to hide a field based on the value of a field of a different subform - controls null does not work!

    I use Javascript to define actions. I need to hide a text field, if the value of a field in another subsidiary form is zero.

    -J' tried to check the value in the other field NULL - does not work

    -J' tried affecting a variable str2 where I know that the value in the other field is available, then checking this variable when I initialize the text field - does not work

    What Miss me?

    Hello.

    Try this in the form of native void, referring to the text field (X).

    If (this.rawValue = 1)

    {

    X.Presence = "visible";

    }

    ElseIf (this.rawValue = null)

    {

    X.Presence = 'hidden ';

    }

  • How to enable and disable a button depending on the value of a field

    Hello experts,

    I enable and disable a button depending on the value of a field.

    I did the following:

    in a trigger of on_new_form_instrance I put the following
    begin
         
    go_block('OE_HEADER');
    execute_query;
    IF :oe_header.status = 'BOOKED' THEN        
          SET_ITEM_PROPERTY('CONTROL.ACTION',ENABLED,PROPERTY_FALSE);
    else
         SET_ITEM_PROPERTY('CONTROL.ACTION',ENABLED,PROPERTY_TRUE);
    end if;
    
    
    end;
    the problem is that it works but does not change when my header_status value is changed.

    You have to put the same code in when-validate-item trigger of: oe_header.status...

    and I think that this code should be trigger after query

    IF: oe_header.status = 'RESERVED' THEN
    SET_ITEM_PROPERTY('CONTROL.) ACTION', ENABLED, PROPERTY_FALSE);
    on the other
    SET_ITEM_PROPERTY('CONTROL.) ACTION', ENABLED, PROPERTY_TRUE);
    end if;

  • return the value in another field

    Hi all. first I don't want anyone to laugh this is my 1st week with the 10g xe with application express 3.2
    in any case, I have a question
    I have 2 fields in a form that gets information from an another table (customers table) the first field is the name of the customer. which is easy I make a list of selection and display the value of the customer name and return the ID of the customer
    now I have another field in the form which is the region of the customer. I would like to be automatically generated from the table to the customer based on its ID, we chose earlier and I don't want it to be editable manually by the user.

    Please wait more stupid questions in the next 24 hours: D

    Mr. brainwash.

    Change your selection list to select using submit. This way when the value changes the page submit and information will be updated. Second, go to the properties of the item to your customer area and change the Source used to always substitute, the Source of the element of SQL query and finally in the value of the Source element, use a query that looks like this:

    SELECT region             -- region field
      FROM customers          -- your customers table
     WHERE id = :P150_CUST_ID -- this would be the bind variable for your select list.
    

    See you soon,.

    Janet Tyson

  • How do another field the value of a field in a form? As my image shows.

    Mr President.

    How do another field the value of a field in a form? As my image shows.

    I want that when a user enters the value credit then it also presents credit () 1.

    As below

    CREDIT.png

    concerning

    public void setCredit(String value) {
            setAttributeInternal(CREDIT, value);
      setCredit1(value);
    }
    

    Define autosubmit = true for the first column of credit.

    See you soon

    AJ

Maybe you are looking for

  • change default value of newtab

    I just want my homepage appears on new tabs, not the tiles of history. I don't understand why Firefox doesn't do this as simple as selecting a default home page. It could be easily done right to the general or the search tabs in the options. Looks li

  • Novice replacement RAM. Can I do this?

    Hi, I've never tampered with any PC before, much less an iMac, but I want to increase the RAM in my iMac 2010 mid - I currently installed 2 x 2 GB strips, and now it is a little on the slow side. It seems pretty easy to make even for a novice like me

  • DV6-7014nr: no drivers or software not listed on HP Support for dv6-7014nr

    26 July 2016 there is no drivers or software listed on HP's Support page for my dv6-7014nr product. There is a message- We were able to find the drivers for your product. Pilots may be developing, so please, check back at a later date or visit the pr

  • El Capitan 10.11.2 Apple Mail excessively high CPU

    I recently bought a brand new MacBook range with all updates. Equipping themselves with my 2 Gmail accounts in Apple Mail, I noticed the MacBook to start to run very slow and met a lot of spinning. I did a little digging to find out what could be the

  • How to declare the size of the array in a labview subvi