Events Question

Hi folks,
I have some general question about where to place my custom script.
I want to compare 2 dates fields in my form(checking if the start date is not greater than the end date).
Where should I place my code if I want to make this check and also to tell the user to select normal dates range?
Thank you,
Yair

You can place in the exit event of the date fields to compare the dates..
D1 and D2 are two date fields on my form..
Language set to FormCalc
Event set to Exit.
if(D1.rawValue ne null and D2.rawValue ne null) then
if(D1.rawValue>D2.rawValue) then
  $host.messageBox("More");
endif
endif
Thanks
Srini

Similar Messages

  • Albums and events question

    Hi when I drag folders containing photos into Iphoto it creates an event. What I currently do is after the event is created, I select an event, I hit the + sign in the bottom left and create an album.
    I like having my albums on the left side for quick access to my library of photos. The problem is that if I add 30 folders, 30 events are then created.
    I have to manually create an album out of each event one at a time. Is there any way that once an event is created it automatically creates and album. So say that 10 events are created, 10 albums will appear on the left.
    If I select a couple events and hit the + option and hit create an album, it will only create one album out of the events selected. I would like to select multiple events at one time and have multiple albums created instead of just one. How do I do that?
    Is what I want to do possible? thanks

    Well let me answer a question with a question
    Why have all your Events mimicked in Albums? IF you can find the pic in an Event, you can find it in an Album.
    To say nothing of all the basics: If you have the year, month, day. Title, keywords, camera a model etc etc you can use any (and all) of these to find your pics too.
    To merge Events: Simply drag one to another in the iPhoto Window.
    Regards
    TD

  • Alter system set events Question

    Version 10202 on AIX
    sql> alter system set events '4030 trace name heapdump level 536870917; name errorstack level 3';
    Questions about this statement..
    what this command is doing, i guess creating tracefile for event 4030...& the location of trace file would be the current direcotry?
    & how to setup same kind of event trace for other events, any tips....& what to check in tracefile for problem?

    The values for level I have record are 1, 2, 3, 8, and 32 so I am guessing the number shown is the address of a specific heap to be dumped. The address of a heap would potentially change with a change in the shared pool storage parameters. Where did you get the address value?
    The dump should go to the user background dump destination and not the current directory.
    PS - if you have metalink look at document: #218105.1 Introduction to ORACLE Diagnostic EVENTS
    HTH -- Mark D Powell --
    Message was edited by: MDP add PS to Metalink Doc
    mpowel01

  • Click Event Question - VB6 SDK 6.5

    A quick question for you guys:
    On the A/R Invoice form, I have a UDF that exists as a combo box.  I can trap the et_COMBO_SELECT event on that combo box just fine, however, I would like to generate a click event on the 'Name' field on the main form from the UDF et_COMBO_SELECT event.  The problem I'm running into is that because the form that contains the UDF has a different UID from the actual A/R Invoice main form, I get an error when I try to perform the click event on the 'Name' field.  The code I'm using is below.  Any help would be appreciated.
    Thanks,
    Greg
    '(A/R Invoice) Change value of eqp_DivisionCode global variable when combo select event triggers
    If eqp_pVal.FormType = -133 And eqp_pVal.FormMode = fm_ADD_MODE And _
       eqp_pVal.ItemUID = "U_Division" And eqp_pVal.EventType = et_COMBO_SELECT Then
       Set eqp_frm = SBO_Application.Forms.Item(FormUID)
       Set eqp_cmbDivision = eqp_frm.Items("U_Division").Specific
       eqp_DivisionCode = eqp_cmbDivision.Selected.Value
    End If

    Hi Greg,
    if you want to access a User Defined Field on a System Form but in header level you need to approach it as follows:
    If (pVal.EventType = et_FORM_LOAD And pVal.FormType = 139 And _
        pVal.Before_Action = True) Then
            Set oform = m_App.Forms.Item(FormUID)
            Dim oUsrForm As SAPbouiCOM.Form
            Dim num As Long
            Dim UDFformUID As String
            num = Right(FormUID, (Len(FormUID) - 2))
            num = num + 1
            UDFformUID = "F_" & num
            Set oform = m_App.Forms.Item(UDFformUID)
            oform.Items.Item("U_1").Specific.String = "Test"
        End If
    Regards,
    Lisa Mulchinock
    SAP SDK Consultant
    Galway

  • Calendar Event Question

    I'm new to iPhone, coming from Blackberry. I would like to be able to schedule an event to repeat every five weeks and another event every four weeks. Is there a way to customize this? If not, can you recommend an app which will give me a reminder every four and/or every five weeks? Thank you!

    Sorry, answering my own question. It seems you have to do it on iCloud. Kind of frustrating if you're not on your computer but at least it's possible. Thanks for reading.

  • 10G event question

    Hello all
    I am coding Forms in 10G and i have an architectural question. If i am coding a form event with plsql that is not hitting the database how do i know that it is not making a call to the app server. I am worried about coding events that make too many calls back to the server which limits performance. I have coded in .NET and the ability to have events on everything is great for features but really bad for performance. I don't want to create features that are hindering performance due to round trips.
    thanx in advance

    Hi,
    good, question, that I don't have an answer for. I would assume it to be three round trips because the trigger fire in different times and as far as I remember Forms only bundles triggers that are on a specific item.
    Forms does not know whether or not PLSQL code is associated with a trigger and this currently is discussed internally at Oracle as well as here on the forum (some month ago).
    The outcome so far is that it is difficult to not ping the server about actions taking place on thw Forms client because it could be a navigation involved. This, if not reported back to the server, leads e.g. to the :system.cursor_item giving the wrong return value. As said, this is something we are discussing but haven't come to a conclusion.
    For you this means that no matter if there is a PLSQL code associated with a trigger, a network round trip is made. However, keep in mind that we are not issuing a round trip for all triggers on an item but bundle all triggers that fire to the same time (e.g. all POST triggers on an item will cause one roundtrip)
    Frank

  • Iphoto Events Question

    This is probably a very easy question.
    If you have one event called Trips and drag photos out of that event into a few others to break them down into seperate events like Trips 2007 and Trips 2008, do the pictures you drag over to new albums get copied over so you can delete the original Trips event or does it just create a pointer from original event to new event?
    I just want to be sure so I dont have multiple copies of photos taking up space if I dont have to.
    Thanks in advance

    Patrick
    You need to be really clear on your Terminology for this one.
    do the pictures you drag over to new albums get copied over so you can delete the original *Trips event* or does it just create a pointer from *original event to new event* ?
    Are you talking about Albums or Events?
    When you drag from Event to Event the actual file is moved. Events in the iPhoto Window correspond exactly with the Folders in the Originals Folder in the iPhoto Library package file (Right click on it in the Pictures Folder -> Show Package Contents). You can move photos between Events, you can rename Events, edit them, create them, as long as you do it via the iPhoto Window. Check out the Info Pane (wee 'i', lower left) the name and date fields are editable. Edit a Event Name using the Info Pane, the Event Folder in iPhoto Library/Originals will also have the new name.
    When you add a photo to an Album it's a reference and not moving an actual file.
    So which are you talking about, Albums or Events?
    Regards
    TD

  • Events question can anyone help?

    I am brand new to the mac world...( bye bye PC forever!) I love it. I just have a quick question about iphoto events. I have my photos in events and I like that. when i double click on an event to open it up, I used to see thumbnails on the page of all events. For whatever reason, now when I go to open up a particular event it opens with one picture at a time. large pic. how do I get back to the thumbnails...I see thumbnails when I scroll over the event.....
    thanks! Nancy

    Nancy
    Welcome to the Apple Discussions.
    At the bottom right of the iPhoto Window is a slider. Drag it left.
    Regards
    TD

  • Postmerge session event question

    We have implemented a custom session event listener that utilizes the postmerge session event.
    We have observed some unexpected behavior and were hoping that the product architect or manager could explain this behavior.
    We have the following graph of objects:
    A has a many-to-many privately owned collection of B
    B in turn has a many-to-many privately owned collection of C
    After commiting a transaction involving object A we observe:
    postMerge event for A
    postMerge event of each of A's privately owned Bs
    yet NO postMerge event for any of B's privately owned Cs
    Questions:
    1) Is this the expected behavior?
    2) Since we need to do some processing of Cs, we are using the postMerge event that occurs on Bs to update the Cs. Is this a safe/correct approach?
    3) In a transaction that involved only updates to Cs, (no changes to A or B), would we see a postMerge event for each updated C?
    Thanks in advance for any clarification you can provide.
    ...Steve

    You could paste the results (tkprof ?) of the trace.
    The "missing" time could be an uninstrumented wait --- i.e. a wait event that is not captured in v$session_event. Particularly because you are using external calls.
    For example, see "Case Study 1" at http://blog.tanelpoder.com/2007/08/27/advanced-oracle-troubleshooting-guide-part-2-no-magic-is-needed-systematic-approach-will-do/
    Hemant K Chitale

  • Emailing calendar event question

    Is it possible to email a calendar event from my iMac to someone with an iPhone, so they can easily add the event to their calendar?  If I email an event, the outgoing message says:
    "To add it to your calendar, click the link below"
    But when they click the iCal...ics link in the email, nothing happens.  I know if I view the same email on my Mac in the Mail app and click on the link, I'm prompted to add the event to my calendar.
    -Thanks

    Sorry, answering my own question. It seems you have to do it on iCloud. Kind of frustrating if you're not on your computer but at least it's possible. Thanks for reading.

  • Validation Script for Dates and General Event Questions

    I have just started using Javascript, and am now using some objects and methods etc. that I did not even know about. It's progressing rather well, now I need to know some Livecycle Designer Basics that I can't seem to answer from my searches.
    Here's what I am trying to do in English:
    I want users to choose a date that they will miss at our Farmers Market. I have the date field on the form - works well.
    I want to validate the entry for:
    The date must be today or in the future
    AND
    The date must be before the closing date
    AND
    The date must be a Saturday
    Here's some script I've written and placed in the Validation Event (I have actually written more for testing out that the results are coming out properly):
    ----- form1.#subform[0].Missdate::validate - (JavaScript, client) ----------------------------------
    var entereddate = this.rawValue;// The date vendor will not attend as entered on the form
    var dentry = new Date(entereddate.slice(0,4),[entereddate.slice(5,7)-1],entereddate.slice(8,10),0,0,0); // month starts at 0!
    var closingdate = "October 04,2008" // closing date of the market
    var today = Date();// today
    (dentry.getDay() = 6);// and attempt to validate that the day = Saturday - nothing happens!
    But now -
    How do I actually validate this - my last statement seems to be ignored. How to I force a 'false' being returned? In Formcalc I simply put a camparison statement here and if it resulted in 'False' validation failed and if it resulted in 'True' it passed - What's the JS equivalent? Or are the variables giving me troubles?
    Maybe I'm putting this in the wrong Event? If so which one should I place it in.
    I want to force the user to enter the correct data - how do I code this - and put in a custom message refering to this. I may even get fancy and ask the user if the next Saturday is what they meant if they enter the incorrect one (this will be a real challenge!)
    I think I'm lacking some basic knowledge here that other posts have assumed. Please refer me to any help pages as well - although I've done extensive searching on this and have not really found a good explanation of Validation - only specific pages that are not basic or general enough for my understanding. Thank!

    In the validation script you have to allow the field's length to be 0, or
    it will not be possible to clear it...

  • Contextual event - Question

    Hi ,
    I have the following scenario :
    There is a region A which raises a contextual event. There is a page (say Test.jsff) containing region A and region B both of which can be invoked as popups . Region B also contains Region A.
    Both Test.jsff and Region B subscribe to the contextual event raised by Region A. The requirement is that Test.jsff should subscribe to the contextual event when it is raised directly from Region A but ignore when the event is raised from the Region A within Region B.
    The only way I could think of achieving the above is by adding an EL expression in the handleCondition of the handler method in subscriber's page def (Test.jsff in this case). This was the information I found in dev guide for conditional subscription. Is this approach correct?
    Are there any other ways to go about it for e.g:
    i)such as event be consumed by the direct parent only ?
    ii)Do you think raising two different events one for Test.jsff and another for Region B is a good idea?
    Would really appreciate help from experts on the above queries.

    Any updates?.
    Appreciate your inputs on the above.
    Thanks!

  • Contextual Event question (Currency Change Event)

    Hello,
    I have published a contextual event on my table (Currency Change Event)
    I also have a SelectionListener on the same table.
    Will I have to manually/programmatically publish the event within the selection listener code? (and if so, how?)
    The reason I ask is that I practiced with a small app containing a region from an ADF library that handled currency change event from the referenced task flow and everything was great, but now I am trying to apply the same principles to my "proper" application and there is no currency change event being received in the parent application.
    I had a look at Andrejus example (http://andrejusb.blogspot.co.uk/2010/10/contextual-events-framework-and-adf-11g.html) but he has hand crafted the events on the page binding will I have to do that too? Is it not enough that I have the currency change event declared?
    Any help appreciated, thanks
    JDeveloper 11.1.2.2

    I've applied the same processing to another table that uses the standard collectionModel.makeCurrent selection listener and it's firing the contextual event handler in the parent application, so that almost confirms that it's the bespoke selection listener that needs code adding to it to invoke the currency change event
    edit :
    I added this code to invoke the makeCurrent and everything is ok again, thanks for listening
    FacesContext fc = FacesContext.getCurrentInstance();
    ELContext elContext = fc.getELContext();
    ExpressionFactory ef =
    fc.getApplication().getExpressionFactory();
    MethodExpression meth = ef.createMethodExpression(elContext, "#{bindings.partnersVO1.collectionModel.makeCurrent}", Object.class, new Class[]{SelectionEvent.class});
    meth.invoke(elContext, new Object[]{selectionEvent});

  • Workitem ID  / Workitem through event Question

    Hi I have a requirement that I need to send few details from an ABAP report as a workitem to certain users.Iam using the module 'SWE_EVENT_CREATE' to trigger an event linked to a task which sends the workitem. This is working fine.
    I need to send an EXCEL attachment in the same workitem is it possible?
    I tried using SAP_WAPI_ATTACHMENT_ADD in the method but didn't know how to retrieve the work item ID in the run time..is there  a better way to achieve this requirement or a way to find the work item ID in the method
    Thanks for your help!
    Larry

    Hi,
    Please use any of follwing Fm to start for the workflow directly. You can find the workitem id in as the export paramenter.
    SWW_WI_START_SIMPLE   : General Task not required
    SWU_START_WORKFLOW   : General Task not required
    SAP_WAPI_START_WORKFLOW  : General Task Required
    EWW_WORKFLOW_START   : General Task not required
    Thanks and regards,
    SNJY

  • Moving a movie clip via key press event question.

    I have a project where I'm trying to move the movie clip: "wally", up and down three levels of a stage.
    However, from the default position I have him move up 145 pixels, and down 120 pixels.
    I want to limit this action to one use, meaning if wally goes up once from his default position he must come back down, and vice versa, if he goes down he must come back up(or stay on that level). Also, if he goes up the 145 pixels, he needs to come back down 145 pixels, likewise if he goes down 120 pixels, he needs to come back up 120 pixels. I might be over-thinking this, as I had to strip it back to the starting code the other day, and am at a loss once more. If this'd be easier performed by moving with keyboard arrows and case statments, let me know, as I'm stumped.
    Starting code:
    stage.addEventListener(KeyboardEvent.KEY_DOWN, keyPressHandler1);
    function keyPressHandler1(event:KeyboardEvent):void
              if(event.keyCode==38)
                        wally.y -= 145;
                        else if(event.keyCode==40)
                        wally.y += 120;

    use:
    wally.startY = wally.y;
    stage.addEventListener(KeyboardEvent.KEY_DOWN, keyPressHandler1);
    function keyPressHandler1(event:KeyboardEvent):void
              if(event.keyCode==38)
    if(wally.y==wally.startY){
                        wally.y -= 145;
    } else if(wally.y>wally.startY){
    wally.y=wally.startY
                        else if(event.keyCode==40)
    if(wally.y==wally.startY){
                        wally.y += 120;
    } else if(wally.y<wally.startY){
    wally.y=wally.startY;
    p.s. please mark helpful/correct responses.

Maybe you are looking for

  • Blue Screen of Death Windows 7 - (64bit) - Locale ID: 1033

    Hello there. I've been having issues with the blue screen that has been frequently occurring. I don't know a whole lot about computers so I was hoping if you could help me out. The Information regarding the bluescreen is below.  Problem signature:  

  • Query take long time in fetching when used within a procedure

    The Database is : Oracle Database 10g Enterprise Edition Release 10.2.0.3.0 - 64bi Query just takes a second from toad but when used inside a procedure as a cursor it takes takes 3 to 5 minutes. Following is the Tkprof information when running from p

  • Finder can't shut down because copy and trash still running

    I was working in pictures, deleted and moved several . . . or tried to. After about 4 hours, the boxes for each show "Preparing to move to . . ." Set to stop an now below rolling bar it says "Stopping . . " How do I get rid of these functions so I ca

  • Getting the remote layer working with a Tascam DM3200?

    After talking with a very helpful Apple tech, it seems my Tascam DM3200's emulation of a Mackie Control in Logic Pro 9.1.7 was the source of the weird "unresponsive transport" problem on my system (I'm not saying that this is the source of EVERY vers

  • SELECT statement help_HR ABAP

    Hello experts. i have browsed the forum about the how to solve my current issue. i am creating an FM where i have to update an infotype. here is my code: IF sy-ucomm EQ lc_route.     gwa_p0490-zzeval = zneweval.                  <<<<this already has