How to make a mandatory KFF on the page of the OPS?

Hello gurus,

I'm making a mandatory KFF by extending a controller. While I get the handle of the KFF, kff.setRequired ("yes") does not work. Here is the code in my controller

Revenue and freight on the page account Site Business purpose are required
Page: / oracle/apps/ar/cusstd/busPurDetails/webui/ArActSiteBusPurPG

OA Framework version: 12.1.3


Revenue OAKeyFlexBean = (OAKeyFlexBean) oawebbean.findIndexedChildRecursive ("reveFF");
oapagecontext.writeDiagnostics(this,"revenue***"+revenue,2); I can see the object printed in diagnostics which means I've got the handle of it
revenue.setRequired ("yes");

Freight OAKeyFlexBean = (OAKeyFlexBean) oawebbean.findIndexedChildRecursive ("freiFF");
oapagecontext.writeDiagnostics(this,"freight***"+freight,2);
freight.setRequired ("yes");

Any help for the resolution of this problem will be greatly appreciated.

Thanks in advance.

I've worked on similar requirements, to account revenues required field in the site use the creation page.

' Public Sub processFormRequest (pageContext OAPageContext, OAWebBean webBean)
{
If (pageContext.getParameter ("apply")! = null)
{
OAApplicationModule am = pageContext.getApplicationModule (webBean);
OAViewObject = accountsViewObject
(OAViewObject) am.findViewObject ("ArBusPurAllVO");

If (accountsViewObject! = null)
{
OARow line = accountsViewObject.getCurrentRow ((OARow));
If (row.getAttribute ("GlIdRev") == null: row.getAttribute("GlIdRev").equals(""))

{
throw new OAException ("Please enter a revenue account for the Bill at the location.", OAException.ERROR);
}
}
}
super.processFormRequest (pageContext, webBean);
}
}

Tags: Oracle Applications

Similar Questions

  • How to make transparent cluster keeping only the elements inside the visible cluster?

    Hello

    Can anyone suggest me how to make transparent cluster keeping only the elements inside the cluster visible in the front panel.

    Thanks in advance,

    Vinciane

    As I said, use the space bar for what is paint. This works. Trust me.

    PS You cannot link to pictures stored on your hard drive. We don't see them. You must add them as attachments and then submit the post they get uploaded to the servers of NOR.

  • I get my email on two computers. How to make a computer out of the loop?

    I get my email on two computers. How to make a computer out of the loop without jeopardizing my Comcast email account?

    Using Outlook Express? Go to: tools | Accounts and delete the account. If you think you can it in the future, go to the properties of the account, and under the general tab, simply uncheck: include this account when receiving or synchronization.

    If you are interested, you can receive messages at a time without losing them on one.

    On both machines:

    Tools | Accounts | Mail | Properties | Advanced - Check: leave a copy of messages on the server.

    On a single computer only, make sure to delete messages after X days to satisfy your allocated space that you get from your server.

  • How to make 'Save to Desktop' save the default value instead of 'This PC'?

    How to make 'Save to Desktop' save the default value instead of 'This PC'?

    Windows 10, I guess?

  • Make a mandatory field if the selection is made in the drop-down list

    Hello

    Does anyone know how to make a field optional mandatory change based on a selection made in a drop down list?

    For example, I have a combo that has option 1-3, and I have a hidden field that is optional. When option 3 is chosen the hidden field is visible, but I also want to be required before a the form submission is possible.

    Thanks in advance for any idea!

    You can place this code in your event out of you in the drop-down list... Just change TextField1 your domain name and make sure that the language is set to JavaScript:

    If (this.selectedIndex == 2) {}

    TextField1.presence = "visible";

    TextField1.mandatory = "error";

    TextField1.mandatoryMessage = ' this field is required ".

    }

    else {}

    TextField1.presence = 'hidden ';

    TextField1.mandatory = "disabled";

    }

  • How to make a bootable USB using the disc with El Capitan utilities?

    Anyone know how to make a bootable USB key using the disc with El Capitan utilities?

    Try this its worked perfectly.

    http://www.Macworld.com/article/2981585/operating-systems/how-to-make-a-bootable - os-x-10-11-el-capitan-installer-drive.h...

  • In windows 7, how to make firefox automatically starts when the computer is turned on

    In Windows 7, how to make Firefox starts automatically when I turn on the computer. Note, I ask how to do this with Windows 7, xp, not vista.

    You place a shortcut to open Firefox in the start menu > programs > startup folder.

    It is essentially the same in all versions of Windows.

  • How to make fonts and icons in the menus for each larger screen?

    How to make larger fonts and icons in the menus on my iMac screen?

    You can change the size of icons, arrange them in a grid and set other preferences for items on your desktop by changing the options to display on your desktop. To change your desktop view options, click on the desktop and then choose the command view > Display Options from the menu bar. You can try different settings to see which ones you like, you will immediately see the effects of your changes.

  • How to make a backup copy of the emails from Inbox?

    How to make a backup copy (on a memory stick) of all e-mail messages in my Inbox?

    Hello. How to do an export of the new Webmail Outlook?

    Thank you!
    Jacqui.
  • How to make a gif to a master page from the new Web site?

    I need to transform an image in motion in a gif for a Web site.

    Use Photoshop to edit images and export to an animated GIF.

    See the link below for more details.

    How to make a GIF animated in Photoshop [tutorial]

    Nancy O.

  • How to make a square patterned with the same race grounds match-up?

    I have a square that is filled with a pattern, he needs a stroke to so that it can be scalloped.  How to make the model of race and fill out the template match-up?pig.png

    You could have transformed one of the models. I try and first just apply a color background and outline of bost. Then apply the model again and not become one of them.

    Another option would be to expand the line and fill and combine the shapes, so that you don't have to deal with the construction of a complex.

  • How to make a backup copy of the purchased software?

    Hello world:

    I just bought PhotoShop elements 12 (download).  How to make a backup copy of this software?  In the case of a system Crash.      I have a copy on my desk and in my Menu start.

    Hi stanulg1952

    Must not be a copy... In case your system crashes, you can download it again...

    Otherwise, you can write on an optical disc and use it in the future... But make sure you keep the installation files on the disk, not one that are there on your desktop after installtion

  • How to make a keyboard navigation in the list multiple choice Flash and control it via actionscript?

    I do a style rpg game in actionscript 3.0 and I want to do a list multiple choice. I know how to make the list with the buttons and to fight against it. My question is, how to make a list that can be done using the arrows on the keyboard? What I'm after is to be able to strike up and down to select the buttons and enter to choose the button.

    You'll need to make the macarons also movieclips so that you can control which display state they are in (highlighted or not).

    Then, you need to configure a listener for the keys on the keyboard so that you can have change the selected button and run if you press Enter.  Here's a basic configuration of a keyboard listener that shows how to detect the three keys you mentioned...

    stage.addEventListener (KeyboardEvent.KEY_DOWN, keyIsDown);

    function keyIsDown(e:KeyboardEvent):void {}

    If (e.keyCode == Keyboard.DOWN) {}

    trace ("Down");

    } Else if (e.keyCode == Keyboard.UP) {}

    trace ("up");

    } Else if (e.keyCode == Keyboard.ENTER) {}

    trace ("Enter");

    }

    }

  • T-Shirt Designing (1): how to make wider white box (using the model of t-shirt)?

    CS6 using

    T-Shirt Designing (1): how to make the white box more wide inside the shirt (using the model of t-shirt)?

    Well, I learned that I can go to file > new from the template > blank template > T-shirt to start to create a design for my t-shirt.

    It shows a small picture of the t-shirt with a rectangle in the middle that also represents the large rectangle (where I create my design).

    Question, am I suppose to create the right design in the large rectangle?

    2nd... I figured out how to adjust the length and width of the largest rectangle (through the corners, then clicking on it to open the section length/width at the top of the screen). However, when I adjust the height and width, is not the same for the rectangle inside the shirt.

    What I'm trying to do, is ensure that my design takes more than forward of the sweater by expanding the width.

    How to make the small rectangle in the large t-shirt too?

    Hello

    The small rectangle in the t-shirt line drawing is a guide. So, what you need to do is unlock guides, remove the small rectangle and create a new.

    (1) go to the view > Guides > release Guides. You will now be able to edit the guides, which are light blue in my document.

    (2) just so that you know what I'm talking specifically, open the Layers panel and place you on the Guides layer. Click the arrow next to reveal the guides within the layer. I locked all the other layers in the document to make it easy for me.

    (3) select the small rectangle, and delete.

    (4) use the Rectangle tool to draw a new in size.

    5) option click on the new rectangle to open a launcher. Select make Guides.

    You now have a guide again, larger rectangle! Let me know if you have any other questions.

  • How to make a transformative effect ignore the line attributes?

    Hi all

    I am intermediate (at best) with Illustrator. I use CS6 on an iMac 2009.

    Could someone advise me on how to make Illustrator ignore STROKE weight/CAP/join parameters when I apply a live effect make rotate/multiple copy on a group of paths? Currently, Illustrator defines the rotation point to the extreme point of my stroke (contained in the atrributes of traits), but I want only to calculate the track structure: the coordinates of my anchor point designated.

    Screen shot 2012-10-16 at 12.04.07 PM.png

    Here are the top/right of paths with a rotation Group / 3 copies effect of 90 degrees. This view looks without problem.

    Screen shot 2012-10-16 at 12.04.24 PM.png

    This band of the top/right of the railways with the addition of a reflection / 1 copy effect of the x-axis. Still no apparent problem.

    Screen shot 2012-10-16 at 12.05.13 PM.pngScreen shot 2012-10-16 at 1.20.14 PM.png

    But this is a close to the alignment of the corner points. As shown, the transformation indeed is based on attributes of the strokes (the tip of his corner), not the actual location of the corner point.

    It does not help to apply styles different heading a corner or race alignments; that only slightly Wizz the pivot point to the Center.

    In addition, this race of a point is somewhat arbitrary. I only put it so in order to see my dynamic effects.

    Refine vertical and horizontal effects of the elements turned/copied movements won't help because this art will subsequently undergo a lot of alteration, changing money, especially in the weight of the stroke (thickness of the line maybe same variable).

    I need the skeleton of the struct to snap together precisely.

    Any solution, regardless of how roundabout, would save this project! I'd appreciate some advice.

    Assuming that you did clean:

    1. check the order of the effects and strokes: this is important if you first apply the effect, then the stroke or vice versa

    2. check that "Snap to grid of pixels" is turned on

Maybe you are looking for

  • Links / links in emails do not work after upgrade to 9.d

    Yes, I had the problem with links to, after an upgrade to 9.3. It happens, everybody can make a mistake... But I'm very angry/frustraded on the silence of Apple. Where the communication? How long should I wait for the fix? It takes a long time alread

  • HP Envy 4520: HP Envy 4520 - black and white

    Hello I want to print a pdf file of the program (default in Mac systems) "Preview" in B & W, but appearantly it is not possible or it is certainly not easy to achieve.I tried settings, but even if they are correct, the printer still print in color (a

  • Clock at 10 MHz continues with 1.8 Vpp using 6544

    Hi everyone, I need to have a continuous 10 MHz clock with the help of 8Vpp 1, NI6544. In the examples, I found these 3 examples for me: 1 dynamic generation with voltage Configuration.vi (example HSDIO) 2 dynamic generation with exported (example HS

  • Too long update

    I was stuck on 16 of 35 updates since last night.  A lot more than 2 hours.  I tried to turn it off.  I tried to close it with Control Alt Delete.  Nothing happens.  How long should I wait.  And then what I do?

  • Several chips debugging

    The signing server down debug so - symbolic time (that brings its own problems) Short or rename files is possible to have several tokens of debugging? I have a Z10 and a Dev Alpha C with a due Dev Alpha B [sometimes] It seems that I have only a debug