Need Help :: Controlling Lov validation programatically.........

Hi Frds,
Plz... give ur valuable suggestions ........
I have a requirement that i have to set LOV  Disable validation property to yes /No based on the condition....
How can i achieve this...............Plz.. give ur valuable suggestions.........
Regards & Thanks,
Jaya

Hi Jaya,
  Try below in PFR
if(pageContext.isLovEvent())
       String lovInputSourceId = pageContext.getParameter(SOURCE_PARAM);
          if(lovInputSourceId != null && lovInputSourceId.contains("Item")){
                am.invokeMethod("handleitemLovChange");
Also Refer below link for Controlling validation in PR.
Re: Hiding Region:Urgent
Thanks,
Dilip

Similar Messages

  • Need help in date Validation Urgent

    Hi ,
    We need help in Date Validation.
    we have 2 Date fields on the form Start Date, End Date
    The requirement is: End Date (May not be greater than 30 years from the start date).
    I have written following script on End Date Exit event. But the problem is its calculating 30 years from the Current Date not from the Start Date
    var tDate = util.scand("mm/dd/yyyy", new Date());
    var M = tDate.getMonth();
    var D = tDate.getDate();
    var Y = tDate.getFullYear();
    var SRes = util.printd("yyyy-mm-dd", new Date((Y+30), M,D) );
    //app.alert(SRes)if (SRes <= this.rawValue){
    app.alert("May not be greater than 30 years from the start date")
    xfa.host.setFocus(
    this);}
    can someone please help me
    Regards,
    Jay

    Hi,
    You'll need to get javascript date from LCD field, and calculate & compare with the future date in javascript date.
    try following script;
    var sDate = StartDate.rawValue;
    var wkStartDate = util.scand("yyyy-mm-dd", sDate);
    var nYear = wkStartDate.getFullYear();
    var nMonth = wkStartDate.getMonth();
    var nDay = wkStartDate.getDate();
    var wkFutureDate = new Date(nYear  + 30 , nMonth, nDay);
    sDate = EndDate.rawValue;
    var wkEndDate = util.scand("yyyy-mm-dd", sDate);
    if (wkEndDate.getTime() > wkFutureDate.getTime()){
      xfa.host.messageBox("May not be greater than 30 years from the start date");
      xfa.host.setFocus(this);

  • Need Help controlling the time my program stays connected to a network

    Hi,
    Every time I open a Thread to listen to client connections, ou to send data to a server, i need to control how long the other side takes to respond.
    This is to fulfill two objectives:
    1) if the client or the server takes to long to respond the connection is terminated.
    2) if, for example, 30 seconds have passed, the server could send a packet with information that tells the client to wait a little more.
    Any help is appreciated, thanks.

    BigDaddyLoveHandles wrote:
    Before you read, remember the timestamp:
    timestamp = System.currentTimeMillis(); When you want to calculate how much time remains:
    long soTimeout = socket.getSoTimeout();
    if (soTimeout == 0) {
    //handle no timeout case
    } else {
    long now = System.currentTimeMillis();
    long timeLeft = soTimeout - (now - timestamp);
    //use timeLeft somehow
    Great, that works.
    i think i will also try to use the classes Timer and Calendar to create a scheduler, and see which option if better for what i need.
    Thanks for your help.
    regards.

  • Need help regarding form validation

    Hi all,
    I have particular doubt regarding form validation. I have a form based on a table. ( One data block ) . I have a function in program unit which return boolean value based on some conditions. I will be calling this function in block validate trigger.
    What i need is , if function return false i need to stop any insertion,updation action that's going to be done by forms.( point to control insertion and updation)
    I don't want to use form triggure failure builtin. What should i do ? plz guide
    regards

    what are you going to do stop insert/update upon commit?
    -- use on-insert trigger
    if allowed_to_insert then
    insert_record;
    end if;
    -- use on-update trigger
    if allowed_to_update then
    update_record;
    end if;
    if when entering data, you might want to check set_block_property

  • Need help creating a stationglobal programatically

    My objective is to dynamically create a stationglobal variable which is an array of numbers with dimensions 2. I have been playing around with the TestStand API to do this but havent had any luck. I looked at a few similar posts on this forum to get started and the things I've mainly experimented with are the NewSubProperty and similar methods of the class PropertyObjects and NewPropertyObject of Engine class. By trying different things as inputs to these calls, I have not been able to dynamically create a stationglobal (or a local or a parameter) at all. I have been able to access methods like GetNumElements etc which can tell me the number of stationglobals or locals.
    Please help. I do want to indicate that I want this task to be accomplished in TestStand and not through a call to a LabVIEW VI, if possible.

    val does not do what you would like.  It returns the value of the property.  It does not let you change the value.   I have used an ActiveX/COM step to accomplish what you want.
    If you run this sequence a second time, it generates an error because the StationGlobal already exists.  You'll need to handle that case.
    Message Edited by daijoubu on 02-03-2006 10:28 AM
    I am the founder of CnCSoftwareSolutions. When not cleaning up baby drool, I write about test data or work on Vision, a tool for understanding your test data. Visit me at www.cncsoftwaresolutions.com
    Attachments:
    Test_File.seq ‏22 KB

  • Need Help controlling Garageband Jam Pack File Sizes

    I recently purchased all of the Jam Packs, and would love to make use of them with both Garageband and Logic Pro. The problem is the HUGE amount of space HD space they demand. I've researched these forums, and read about the plan of installing the Jam Packs, moving the Apple Loops to an External HD, and then cleaning out the Apple Loops Library & Index files on my main HD. The problem is, once I did this (testing it with just the World Jam Pack), I STILL lost over 10 GB's of HD space, compared to what I had before the initial Jam Pack instillation! What's taken up all of this space, and how do I get my space back? CAN I put the Jam Packs on an external drive, or not? Thanks in advance!

    I don't think there's 10 gig worth, but the Jam Packs install instruments as well. Leave those where they are.
    X
    (I miss San Diego)

  • AS1/2 - need help controlling mc from another mc

    I'm mostly a point-and-click user of flash. I'm in CS5 and have built a simple flash website (with A/S1-2) having a primary swf (content.swf) and other transparent swf (home.swf, contact.swf, etc.) that load in for each menu button. When another menu button is clicked, my A/S instructs to unload all mc's from level 1 and load in the next swf in that same level.
    My challenge. I need to have a button in "home.swf" go to, say, "contact.swf". How can this be done?
    Thanks, John

    You can probably use whatever you have now though it may require and added argument or so (unless you don't understand what you have now).  The main file as it currently is could load sections based on a function being passed an argument that identifies which section is to be loaded.  So you click a button and that button calls the loading function, passing the name of the file that will be loaded.  The main file's function does the loading work.  Your loaded section(s) can do the same by using a _root reference to call that function (or possibly a _level0 reference).

  • Need help controlling external FW drives

    I have three external 800 FW drives: one WD and two G-Drives. They are each 1TB in size, and they are daisy-chained. The WD is directly connected to the MacBook Pro. The two G-Drives are chained to the WD. The G-Drive in the middle spins down with a loud click after ten minutes. It is annoying. I have changed my powermanagement plist file with text wrangler so that external disks sleep after 45 minutes. But the middle drive still clicks and spins down after ten minutes, while the last G-Drive on the chain does not. Could this be a problem with the drive itself?

    What happens if you use the drives one at a time? Have you tried changing their physical order?

  • Need help. I am running a 27 in imac with 16 gigs of ram. Photoshop runs really fast, except when opening files. It takes 5-10 minutes to open even a small file of 1 meg. I cleaned and validated all the fonts and removed all questionable fonts. Reset pref

    Need help. I am running a 27 in imac with 16 gigs of ram. Photoshop runs really fast, except when opening files. It takes 5-10 minutes to open even a small file of 1 meg. I cleaned and validated all the fonts and removed all questionable fonts. Reset preferences and still have problem. Slow to open and in force quit "Photoshop not responding" At this point should I uninstall and start over.

    What are the performance Preferences?

  • Need help finding a control

    I want to list all of the connectors on a board on a vi front panel (e.g. J1, J2, etc...). If the user clicks on e.g. J1, all of the pins on J1 will be displayed, like when using a treeview. The user will then be able to select multiple pins from J1 (e.g. he/she clicks on J1-1 and J1-3). Whatever pins are selected I will set high. I thought I'd be able to put multiple treeviews on my vi, one for each connector, but it seems that with a treeview no more than one selection can be made. Basically I need a control that is expandable and multiple selections can be made. Is there a control that does this?
    Thanks and regards

    Could you please draw us a picture (text is fine) of approximately what you are looking for.
    It sounds to me, if I read your question correctly, that a text indicator will do the trick.
    For example:
    Before:
    J1
    J2
    J3
    J4
    After J2 selected:
    J1
    J2
    Pin 1 -
    Pin 2 -
    Pin 3 -
    Pin 4 -
    etc...
    J3
    J4
    This can be done with a bit of work using a simple string indicator, a table, a list, etc.
    For a string indicator, you would detect the selection by either polling the selection and an "Okay" button, or using a mouse up event on the control then checking the property corresponding with selection.
    List indicators may be easier to work with programmatically, but I don't know if they are any cleaner looking. I suspect they are
    probably the same. I can whip up a simple example if you wish...
    I hope this helps
    -Mike Du'Lyea
    Advanced Test Engineering
    http://advancedtestengineering.com

  • Need help in understanding the error ORA-01843: not a valid month - ECX_ACT

    Hello All,
    We need help in understanding the Transaction Monitor -> Processing Message (error "ORA-01843: not a valid month - ECX_ACTIONS.GET_CONVERTED_DATE").
    And how to enable the log for Transaction Monitor -> Processing Logfile.
    Actually we are trying to import the Purchase Order XML (OAG) into eBusiness Suite via BPEL Process Manager using the Oracle Applications Adapter. The process is working fine with expected payload until it reaches the XML Gateway Transaction Monitor, where we are getting this error.
    thanks
    muthu.

    Hello All,
    We need help in understanding the Transaction Monitor -> Processing Message (error "ORA-01843: not a valid month - ECX_ACTIONS.GET_CONVERTED_DATE").
    And how to enable the log for Transaction Monitor -> Processing Logfile.
    Actually we are trying to import the Purchase Order XML (OAG) into eBusiness Suite via BPEL Process Manager using the Oracle Applications Adapter. The process is working fine with expected payload until it reaches the XML Gateway Transaction Monitor, where we are getting this error.
    thanks
    muthu.

  • Need help on how to a user can control a video clip using their mouse

    I need help. I've got a video clip of a rotating 3D
    object(left to right) and i would like the user to be able to
    control the rotation of the object using their mouse. I've looked
    everywhere and i'm at a lost. Can anyone help me
    Here is a link to what i'm trying to achieve:
    http://www.sun.com/servers/blades/6000/gallery/index.xml?p=1&s=2
    I know they use Java but i'm sure this can be done in Flash.
    Thanks
    Ray

    Here are the instructions...
    Update firmware with DOS CD
    To boot from CD you have to hold down the option key (<alt>) during startup. A HDD icon and a CD should appear on the gray screen. The HDD has the volume name written below and the CD is named Windows. Select the CD and boot to DOS.
    Hit <ESC> to skip the README.TXT
    Use PG UP/DOWN keys on an external keyboard to scroll through the readme, using arrow keys may lock DOS.
    SeaFlash offers some options you should explore before performing the update. If you just want to do it ASAP then hit <D>.
    Hit <L> to list compatible drives and FW version. (Column New FW version should state SD24, hit <ESC> to go back to main menu.)
    Hit to scan your drive(s). (Shows your model and FW, <ESC> for main menu)
    Finally hit <D> to update your Momentus XT to SD24. (takes about 15s to update)
    Power off your Mac.
    -- Although it did made sense to what you are saying to just follow Seagate's instructions. But they only had instructions outside the realm of MS Windows is to burn it on a disk and run a cold boot to the disk drive. Otherwise if Seagate did provide detail instruction on how to install this then can you provide me a link?
    Thanks again....

  • I need help with controlling two .swf's from third.

    Hi, thanks for reading!
    I need help with controlling two .swf's from third.
    I have a problem where I need to use a corporate designed
    .swf in a digital signage solution, but have been told by the legal
    department that it can not be modified in any way, I also can't
    have the source file yada yada. I pulled the .swfs from their
    website and I decompiled them to see what I was up against.
    The main swf that I need to control is HCIC.swf and the
    problem is it starts w/ a preloader, which after loading stops on a
    frame that requires user input (button press) on a play button,
    before the movie will proceed and play through.
    What I have done so far is to create a container swf,
    HCIC_container.swf that will act as Target for the HCIC.swf, and
    allow me to send actionscript to the file I'm not allowed to
    modify.
    I managed to get that done with the help of someone on
    another forum. It was my hope that the following script would just
    start HCIC.swf at a frame past the preloader and play button, and
    just play through.
    var container:MovieClip = createEmptyMovieClip("container",
    getNextHighestDepth());
    var mcLoader:MovieClipLoader = new MovieClipLoader();
    mcLoader.addListener(this);
    mcLoader.loadClip("MCIC.swf", container);
    function onLoadInit(mc:MovieClip) {
    mc.gotoAndPlay(14);
    But unfortunately it didn't solve my problem. Because there
    is a media-controller.swf, that is being loaded by HCIC.swf that
    has the controls including the play button to start HCIC.swf.
    Here's a link to a .zip file with all 3 .swf files, and all 3
    .fla files.
    http://www.axiscc.com/temp/HCIC.zip
    What I need to do is automatically start the HCIC.swf file
    bypassing the pre-loader and play button without editing it or the
    media-controller.swf in anyway. So all the scripting needs to be
    done in HCIC_container.swf.
    I know this is confusing, and its difficult to explain, but
    if you look at the files it should make sense.
    ActionScripting is far from my strong point, so I'm
    definitely over my head here.
    Thanks for your help.

    Got my solution on another forum.
    http://www.actionscript.org/forums/showthread.php3?t=146827

  • Need help on how a user can control a video clip using their mouse

    I need help. I've got a video clip of a rotating 3D
    object(left to right) and i would like the user to be able to
    control the rotation of the object using their mouse. I've looked
    everywhere and i'm at a lost. Can anyone help me
    Here is a link to what i'm trying to achieve:
    http://www.sun.com/servers/blades/6000/gallery/index.xml?p=1&s=2
    I know they use Java but i'm sure this can be done in Flash.
    Thanks
    Ray

    Just use the plain linear fit!
    (If you are discussing something you found in the forum, you should always include a link so we can see what you area talking about. What you probably found was a workaround that forces an intercept of zero for a special scenario. If you want to use general linear fit anyway, your matrix simply also needs a constant term)
    If you still have problems, show us your code and some data.
    LabVIEW Champion . Do more with less code and in less time .

  • I need help with validating signatures.

    I have Adobe Acrobat X and Reader 9 and need help with how to validate signatures.
    I have a document that I am emailing to all employees that require the signature; but, when the form is emailed back, it states that the signatures requires validating.

    Or, is the validation something I do once the form is emailed back to me?
    I guess a subquestion would be, how to establish/manage trusted certificates with reader or acrobat 8. 

Maybe you are looking for