How to set a particual as sysdate field value, if it is null

Hello
I have a custom OAF page requirement.
In the table of results, if the value of the DATE field is NULL, then we must set as default SYSDATE.

For this I use the following code. Could someone suggest me I'm correct or not?

Indicative PFR:


if(xxMDateBean == null)
{
OAMessageDateFieldBean xxMDate = (OAMessageDateFieldBean) webBean.findIndexedChildRecursive ("xxMDate");
oracle.jbo.domain.Date date1 = am.getOADBTransaction () .getCurrentUserDate ();
Impossible displayDateFormat impossible new = ("dd-MM-yyyy');
String OracleDateForm = displayDateFormat.format (date1.dateValue ());
xxMDate.setValue (pageContext, OracleDateForm);
}

I get the following error:


Error (81.8): variable xxMDate not found in the class (CONTROLLER)

Published by: Eddy on January 20, 2011 17:09

Nanoo,

I think that the code I gave you can use directly by changing just the VO, the column names.
Please let me know what exactly you are looking.

You might be the method call AM to run the query, after which followed this procedure (with your VO, columns).

Thank you.

With respect,
Kali.
OSSI.

Tags: Oracle Applications

Similar Questions

  • How to set the alignment of the field in a table in jdev 11.1.2.3?

    Hello
    How to set the alignment of the field in a table in jdev 11.1.2.3?
    for example: to display a body of numbers in a table as right aligned.
    I tried to put field (amount) VO UI Hint Format Type: Number; Format: 0000.00
    and jspx, flowing, but it doesnot work.
    Thank you.
    Bao

    < af:column sortProperty = "#{bindings." VO1.hints.amount.name}.
    sortable = "true".
    headerText = "#{bindings." VO1.hints.amount.label}.
    ID = "c44" width = "60".
    Align = "center" >
    < af:inputText value = "#{row.bindings.Amount.inputValue} '"
    label = "#{bindings." VO1.hints.amount.label}.
    required = "#{bindings." VO1.hints.amount.mandatory}.
    columns = "#{bindings." VO1.hints.amount.DisplayWidth}.
    maximumLength = "#{bindings." VO1.hints.amount.precision}.
    shortDesc = "#{bindings." VO1.hints.amount.ToolTip}.
    ID = "it58.
    secret = "false".
    inlineStyle = "" text-decoration: overline; ">"
    < f: validator binding="#{row.bindings.Amount.validator}"/ >
    < / af:inputText >
    < / af:column >

    Hello
    To set a field right alignment in a table:
    It doesnot work when InlineStyle-> text-align: right;
    It works when ContentStyle-> text-align: right;

  • How to set horizontal scrolling to horizontal field Manager when fields are added using a loop for?

    The following code snippet contains a horizontal field Manager to which are added five buttons.

    1. I can't the value of horizontal scrolling to horizontal management Manager because of who I am not able to access the keys 4 and 5.

    2. usually, we put horizontal scrolling in the following way:

    container = new HorizontalFieldManager(USE_ALL_WIDTH|HORIZONTAL_SCROLL|HORIZONTAL_SCROLLBAR);
    

    3. so I also tried setting of horizontal scrolling in the following way

       container = new HorizontalFieldManager(Manager.HORIZONTAL_SCROLL|Manager.HORIZONTAL_SCROLLBAR)
                {
    
                    protected void sublayout(int maxWidth, int maxHeight) {
    
                        Field field = null;
                        int x = 0;
                        int y = 0;
                        int maxFieldHeight = 0;
                        int maxFieldWidth = 0;
                        for (int i = 0; i < getFieldCount(); i++)
                        {
                            field = getField(i);
                            layoutChild(field, maxWidth, maxHeight);
                            setPositionChild(field, x/*width-field.getWidth()*/,y);
    
                            x+=field.getWidth();
    
                            maxFieldWidth = maxFieldWidth + field.getWidth();
                            System.out.println("field width"+field.getWidth());
                            System.out.println(" max field width"+maxFieldWidth);
    
                            if(i==0)
                            {
                                maxFieldHeight = field.getHeight(); // height set of the first button since all components have the same height
                            }
                        }
                        System.out.println("final max field width"+maxFieldWidth);
    
                        setExtent(maxFieldWidth, maxFieldHeight);
    
                    }
                };
    

    but it's not working.

    4 I found this property: (position) horizontalFieldManager.setHorizontalScroll; that contains the parameterioo where the post is supposed to be the new horizontal scroll position. I tried passing the coordinate x of horizontal field Manager, but it does not work. I should pass as a parameter position?

    HorizontalFieldManager container = new HorizontalFieldManager()
    {
        protected void sublayout(int maxWidth, int maxHeight)
        {
            Field field = null;
            int x = 0;
            int y = 0;
            int maxFieldHeight = 0;
            for (int i = 0; i < getFieldCount(); i++)
            {
                field = getField(i);
                layoutChild(field, maxWidth, maxHeight);
                setPositionChild(field, x,y);
                x+=field.getWidth();
                if(i==0)
                {
                    maxFieldHeight = field.getHeight(); // height set of the first button since all components have the same height
                }
            }
    
            setExtent(Display.getWidth(), maxFieldHeight);
    
        }
    };
    
    ButtonField button1 = new ButtonField("Button1");
    ButtonField button2 = new ButtonField("Button2");
    ButtonField button3 = new ButtonField("Button3");
    ButtonField button4 = new ButtonField("Button4");
    ButtonField button5 = new ButtonField("Button5");
    
    container.add(button1);
    container.add(button2);
    container.add(button3);
    container.add(button4);
    container.add(button5);
    
    add(container);
    

    Need your valuable comments and suggestions. Please help me.

    I think that there is a bug in the sublayout (your HorizontalFieldManager 0 mode.  Given that the code did what I think WHAT HFM will do anyway, I recommend that you try to do this with a standard HFM, using this style:

    Manager.HORIZONTAL_SCROLL | Manager.HORIZONTAL_SCROLLBAR

    Let us know how you go.

    When I have more time I'll explain the bug, but if you want to investigate something, be aware that the maximum size that you can use in setExtent are the values that are passed to sublayout.  Compare the width as you try to define in setExtent whose width is increased.

  • Question on how to set the position of the field.

    Is there anyway to set the field position TOP of the screen as Screen.setTitle (Field)?

    My problem is when I add my Manager (who has a backgrond color) for the title. I see a gray line between the title and the body region (the body has a background color even my manager), so I did ' t like it.

    Reason I want to 'FIX' my manager at the top of the screen position is I want to see my manager every time I scroll the screen each time as setTitle().

    THX in advance

    -Maz-

    Try using setBanner() instead of setTitle(). I think that the banner does not normally include a field separator (which is what this line gray).

  • How to set the focus on the field?

    This is my screen:

    image //add by function (thread)

    RichText //add by function (thread)

    button_next //add by function (thread)

    button_back //add directly on-screen

    I already manage the display as above

    but my problem is the firsttime I get my screen is my focusable on button_back.

    I want to set the focus on image when I get the screen.

    no idea what I need to do?

    they are all put under the focus name, I just don't want to when I go to the screen, focus on button_back

    your back button is added directly to the screen

    and the rest are added by the threads,

    so son take some time to complete that work and until then the button "return" is added

    all your work, once you can do--

    image. SetFocus();

    and you will get the focus on the desired position

  • How to set up the toggle between fields on a form in Adobe Acrobat?

    I have a customer who wants a PDF interactive form, I've done a fair bit of now. They were the first people to raise this question anything that bothered me until I did the ' can configure you it to move to the field following?

    Seems like a simple enough question, but I can only figure it out and I can't find any article explaining.

    Anyone got any ideas?

    Thank you.

    Is not possible. To do this, use Tab and Shift + Tab.

  • How to set the presence of the field "(screen visible only)" by JavaScript object?

    Hi all

    I am new to Livecycle form design. As the title I have mentained above, I know that the presence of the subject field can be configured by the JS code.

    for example: this.presence = 'visible ';

    or this.presence = 'hidden '; ....

    However, I want to configure the visible field (screen only) object code. I search for all keywords, but I can't find any information on this subject.

    Question:

    1. are there any code in javascript to do this? Or any way to do this in the code?

    The code is:

    This.relevant = '-print '.

    Paul

  • How to encode a calculation from a field value, and a check box?

    How to make a field to calculate a commission based on another field (we'll call it "Total amount" for this example) and multiply % according to a box.  I have 3 different series that are check boxes. Depending on whether one chooses a customer, "Total amount" would be multiplied by 8%, 3% or 0% to get our total commission

    Good point George.

    AdobNewbee, modify the script to be:

    Set the text field's custom calculation script

    var v = this.getField("Rate").value;
    var t = this.getField("Total_Amount").value;
    {if(v!=="OFF")}
    Event.Value = v * t/100;
    }
    on the other
    Event.Value = "";

  • How do reset you a conditionally required field value?

    Hello

    I have a checkbox and joined it a group of Radio and script to require Radio group if the box is checked:

    getField("JanCorrespondence").required = event.target.value = "Enclosed_Jan month"? true: false;

    But how to reset the required field if someone clicks on Jan by mistake, he let fly and clicks Feb instead?

    Thank you

    It seems that it should function in the mouse event to the top of the boxes in the left column:

    // Make the radio button group required if this check box is selected
    getField("JanCorrespondence").required = event.target.value !== "Off";
    
  • How to set up digital channels to change values on the trigger and the counter in c#

    Hello world!

    I work with the driver NI - DAQmx 6025 and want to know, how do I configure the digital channels in c# for control lines different ports by trigger rising "PFI0" and the meter "ctr0.

    digitalWriteTask = new Task();
    digitalWriteTask.DOChannels.CreateChannel ("Dev1/Port3 / line0:7", "", ChannelLineGrouping.OneChannelForAllLines);
    digitalWriteTask.Control (TaskAction.Verify);

    digitalWriteTask.Triggers / / how to configure to change Digital line on rising "PFI0"?

    digitalWriteTask.Timing / / how to configure to change Digital line on County "ctr0?

    -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

    Hi an alle!

    Am mit dem OR-DAQmx 6025 und möchte like wissen, die ich wie digital channels in c# konfigurieren muss um einzelne Ports der Leitungen auf dem Trigger "PFI0" und dem Zahler "ctr0' anzusteuern.

    digitalWriteTask = new Task();
    digitalWriteTask.DOChannels.CreateChannel ("Dev1/Port3 / line0:7", "", ChannelLineGrouping.OneChannelForAllLines);
    digitalWriteTask.Control (TaskAction.Verify);

    digitalWriteTask.Triggers / / Wie konfigurieren, um den logical Pegel eines feature pine bei der der zu winds PFI0 goods?

    digitalWriteTask.Timing / / Wie konfigurieren, um den logical Pegel eines pines beim ctr0 zu go digital?

    NEITHER told me, with the NOR-DAQmx 6025 driver not supported!

    ICH habe von NOR learn, dass dies mit der 6025 OR AQmx supported wird nicht!

  • How to set e-mail address as the value by default if photos can be sent by email?

    When I try to send a picture of the 'My pictures' folder I get a message "no e-mail program to perform the requested action.  "Install an e-mail program or if it is installed, create an association in the default program control panel.  How can I do this?  I use Internet Explorer and I have an AT & T email address email, but also had this message when I was with Comcast, then how can I know what is the default email on my computer?  Your help is very much appreciated!

    You can't do AT & T or Comcast Webmail by default. There are solutions for Gmail and Yahoo, but no one else I know. Customer e-mail like Outlook Express, Outlook, Windows Live Mail can be done by default and it is looking for the error message.
     
    Start a new message, and that join the pix.
  • How update the form element in IR with value when it is null when you press Go?

    Hello

    in an international registration, I created a Date picker component. I want this element when the user enters the page to have a default value. I would also like when the user clears this area the corresponding item to get a default value. I realized the 1 but not the 2nd. I need this replacement to the value of the element because he his need in one between day where expression in the report query and I want to have the bind variable only, not NVL them in order to avoid to analyze all the partitions table. Thi point is used as an additional lookup field in the report and it is included in the elements of the Page to submit. Advanced report attributes.
    How can I do this?

    What I put up the atm:

    The source used
    Still, replacing value that exists in session state

    Type of source
    PL/SQL Expression or a PL/SQL function

    Source of value or expression
    TRUNC (SYSDATE)

    and also in default:

    Default value
    RETURN TO_DATE('01/01/1980','DD/MM/RRRR')

    Default value type
    Body of the PL/SQL function

    TIA

    Mrs..,

    Try this, sorry I did not test it ;)

    onblur="if (!this.value){this.value = $v('PX_HIDDEN_DATE_ITEM')}"
    

    Kind regards
    Dan

    http://danielmcghan.us
    http://www.skillbuilders.com

    You can reward this answer by marking as being useful or correct ;-)

  • How to set focus on PaneManager Field after it is created.

    I'm trying to set the focus to the first title of the pane Manager view... for the first title in the tab...

    Content is dispaying the first tab on the opening screen.

    I tried these ways.

    LabelField historyTitleField = new LabelField ("History", Field.FOCUSABLE |) Field.FIELD_HCENTER);
    Component = new part (historyTitleField, value);

    After setting PaneManagerView added this line to set the default focus: historyTitleField.setFocu ();

    It did not work...

    I have tried both the options below:

    paneManagerView.getField (0) .setFocus ();   Did not work

    paneView.setFieldWithFocus (historyTitleField);  Not work...

    Anyone has an idea... How to set the first title of the focus of the Manager pane tab?

    try to wrap it in an invokelater

  • How to set a field in a form of DML to only display?

    It seems that it would be obvious, but I can't figure out how to set a field in a DML form read-only.  Thanks for all the ideas.

    The most obvious thing is to define the type of item to display only. Save Session State to Yes if the value of the item is required in after not submit treatment or if the value is only for display on the page.

    Alternatively, if you want the element to appear as a normal text control, but do not be modifiable, set the item text field and the custom attributes type to readonly .

  • How to set different date formats for different metadata fields?

    Hello

    Can I set different date for different fields of metadata formats? Standard Date format has a seconds. But I metadata fields, where I need to only show the date.

    I tried to use the rules and side effects. My code is: $xMyDate = formatDateOnly (xMyDate) $ >. But it does not work.

    Please how can I do?

    Thank you

    Martin

    Hi Laurent,.

    Large. This works. Good definition is:<$setValue("DOC_INFO","xDatumUkonceniRizeni",formatDateOnly(xDatumUkonceniRizeni))$>

    M.

Maybe you are looking for