Check specific value in alert

dear all,
we have table 'x' with column c1,
we want to create an even alert which will fire when the user enter value equals to 5
Kindly Advice.
Regards...Ashraf

The type doesn't really matter, as long as the value can be validated. But
if you use a drop-down, make sure to tick the option to commit the selected
value immediately, or the script will only kick in once you leave the field.
There are excellent tutorials about using JavaScript in Acrobat on
AcrobatAnswers.com, and of course there's the Acrobat JavaScript API
Reference, here: http://www.adobe.com/devnet/acrobat/javascript.html

Similar Messages

  • Customize Alert messages for checking duplicate value and Success alert

    Hi All,
    I want to show two alert against the same "Submit" button to--
    1. Alert messages for checking duplicate value and show the Duplicate value found alert and
    2. Success Alert if the form is success to commit and no duplicate value found.
    I did all thing but when alert-1 shows and i pressed the ok button of the alert then the second alert also shows which i don't want to show.
    Which i can do in this issue? Have there anyone to help me!
    Arif

    Hi Manu,
    I have placed the following code
    1. against the Submit button--
    if error_code=40508 then
         commit_form;
    elsif :USERDELETION.CANCELLATION_USERID is not null then
    do_key('COMMIT_FORM');
    else null;
    end if;
    2. Code against the key-commit trigger in the form level--
    commit_form;
    DECLARE
    vAlert NUMBER;
    BEGIN
    set_alert_property('ALERT_TO_VERIFY',ALERT_MESSAGE_TEXT, 'Your Form has successfully submitted and your Reference id is '||:USERDELETION.REF_NO);
    vAlert:=SHOW_ALERT('ALERT_TO_VERIFY');
    END;
    3. Code against the on-error trigger in the form level--
    DECLARE
    vAlert NUMBER;
    BEGIN
         if ERROR_CODE = 40508 then
    set_alert_property('ERROR_ALERT',ALERT_MESSAGE_TEXT, 'This user deletion request has already submitted of the user named '||'"'||:USERDELETION.FULLNAME||'"');
    vAlert:=SHOW_ALERT('ERROR_ALERT');
    elsif
              ERROR_CODE = 40202 then
    set_alert_property('ERROR_ALERT',ALERT_MESSAGE_TEXT, 'Existing userid must be filled-up !');
    vAlert:=SHOW_ALERT('ERROR_ALERT');
    else
                   message(error_type||to_char(error_text)||': '||error_text);
    end if;
    END;
    If there have any confusion, please ask me.
    Arif

  • How do check the whether the vector contain specific value

    I store the value retrive from select statement into vector .How do I check if the value is in the vector list . The value I am checking for is from combobox identified as obj.value. Curently I using the following syntax to check whether value is in vector or not.
    if (tran_typ.Contains(obj.value))
    Please answer me soon.

    should be:
    for (int x=0; x<vector.size(); x++)
          MyObject o = (MyObject) vector.elementAt(x);
          if (value == o.getMyValue())
                 //do something
    }Sorry, it is 2:30 in the morning!!!
    Thanks,
    Harold Clements

  • How to check a value for paramter query

    I am passing a paramter value from my text box to my sql statement and I would like to check if the value is entered into a text box. If you have any idea please share it with me, i have been struggling with this for many days.Code below is how i try to check if the value is entered but I do not know how to check the value in the :VendorName
    thanks
    If Not txtVendorName.Text = "" Then
    Sql = Sql & " AND (Upper(V.VNAMEL) LIKE '%' || Trim(Upper(:VendorName))|| '%') "
    End If

    Sorry guys english is not my first language and i will try to be clear and specific.
    I have a search page where customeres can do searching either using a text box or two dropdowns i have on my page. they have the option of doing search either using a text box or dropdowns or both.Everything seems to work fine but if users does not leave the text box blank. but they leave the text box blank and do searching using the two dropdowns then the page comes up empty and i checked my query and i should get a value. Attacehed my code for you to look at it.
    <pre>
    Sub VendorSearch()
    gvSearch.Visible = True
    Dim MinPDate As String = drPur.SelectedItem.ToString
    Dim MaxMDate As String = drPurM.SelectedItem.ToString
    Dim liThisOne As ListItem
    Dim strState As String = ""
    For Each liThisOne In lstState.Items
    If liThisOne.Selected Then
    strState = strState & "'" & liThisOne.Value & "'" & ","
    End If
    Next
    Dim Sql As String = " SELECT distinct V.VENDOR ""Vendor Id"",R.ADDRNUM,V.VNAMEL ""Vendor Name"",R.AADDR1,R.ACITY,R.VASST1, "
    Sql = Sql & "R.ASTATE State,R.AZIPCODE, to_char(Max(P.DATEPUR),'YYYY/DD/MM') ""Plan Purchased Date"" , "
    Sql = Sql & "TRIM (r.aaddr1 || decode(trim(r.aaddr2),null,'',' - ') || r.aaddr2) Address,"
    Sql = Sql & " substr(decode(trim(r.vasst1),null, 'N/A','000/000-0000?','N/A','000/000-0000','N/A', r.vasst1),1,12) Fax, "
    Sql = Sql & " substr(decode(trim(r.aphone),null, 'N/A','000/000-0000?','N/A', r.aphone),1,12)Phone "
    Sql = Sql & "FROM VENDOR V,VENDADDR R, PLANHOLD P "
    Sql = Sql & "WHERE V.VENDOR = R.VENDOR AND P.VENDOR = R.VENDOR "
    Sql = Sql & " AND (P.DATEPUR >= TO_DATE('1999-01-01','YYYY-MM-DD')) "
    Sql = Sql & "AND P.DATEPUR In ( select Max(P.DATEPUR) from PLANHOLD P where P.vendor = R.VENDOR) "
    'If txtVendorName.Text <> "" Then
    ' Sql = Sql & " AND (Upper(V.VNAMEL) LIKE '%' || Trim(Upper(:VendorName))|| '%') "
    'End If
    If (strState.Length > 0 And lstState.SelectedIndex <> 0) Then
    strState = Left(strState, strState.Length - 1)
    strState = "(" & strState & ")"
    Sql = Sql & "AND R.ASTATE IN " & strState
    End If
    If (drPur.SelectedIndex <> 0 And drPurM.SelectedIndex <> 0) Then
    Sql = Sql & " AND to_number(to_char(p.datepur, 'YYYY')) between " & "'" & MinPDate & "'" & " AND " & "'" & MaxMDate & "'"
    End If
    ' Dim Para As String
    ' SqlDataSource1.SelectParameters.
    If Not txtVendorName.Text = "" Then
    Sql = Sql & " AND (Upper(V.VNAMEL) LIKE '%' || Trim(Upper(:VendorName))|| '%') "
    End If
    'If Not IsDBNull(SqlDataSource1.SelectParameters(":VendorName")).val Then
    ' Sql = Sql & " AND (Upper(V.VNAMEL) LIKE '%' || Trim(Upper(:VendorName))|| '%') "
    'End If
    Sql = Sql & " AND V.VOBSOLET = 'N' "
    Sql = Sql & "GROUP BY V.VENDOR, R.ADDRNUM,V.VNAMEL,R.AADDR1,R.AADDR2,R.ACITY,R.ASTATE, R.AZIPCODE, R.APHONE, R.VASST1, P.DATEPUR "
    Sql = Sql & "ORDER BY V.VENDOR "
    Response.Write("Sql " & "<br/>" & Sql & "<hr/>")
    SqlDataSource1.SelectCommand = Sql
    End Sub
    </pre>

  • FRM-40501 Error When Attempting To Change Check Box Value

    I am getting a FRM-40501 error when attempting to update/change a check box value. There are a few factors in my form setup that could be the problem, I will list them below:
    My initial problem was that my INSERT statement would not trigger to fire (based on an IF statement) when my check box value was not initially set to the value of 'Y', even though the initial value was set to 'Y' in the property palette (value when checked was set to 'Y' and value when unchecked was set to 'N'). So, to remedy this I placed a specific literal select of 'Y' and aliased it back to the name of my check box name in the data block query, like: SELECT 'Y' CB_SELECT_SCHOOL FROM user_schools. Then I changed the check box to a database item (value to Yes when it was No before my "SQL select cheat" in the data block query). This made the initial value 'Y' and satisfied my IF statement before my INSERT statement in my trigger. However, now I can not update the check box item.
    Does anyone know a better way to satisfy the initial value of my check box to 'Y', even though in the initial value parameter for my checkbox is set to 'Y' and forms is not really setting the initial value (when the check box is not set to a database item)?
    Thanks in advance.
    Kyle

    I have fixed my issue.
    I have reverted the check box to not be a database item, removed the "SQL cheat" of selecting 'Y' aliasing my checkbox name in the datablock SQL, and changed the initial value of 'N' in the check box property palette. This will force a change by the user making the check box value of 'Y', satifying my insert when-button-pressed trigger to fire and update the selected row.

  • Overwrite specific value on .txt file

    Hello
    Does any one know how to overwrite specific values in a .txt file?
    here's and example of what i need:
    I just want to replace the numbers 1 and 2 every time I run my code, the rest remain the same.
    this is the part of the code Im using
    thanks!

    Hello Tokighy,
    What Bryan mentions is a good approach, you can also check the Write to Text File and Read from Text File.vi in the Find Examples section in LabVIEW, you can take the output from the Read from Text File (having as input your .txt file) and then use either Replace Substring or Search and Replace String functions from the String palette.
    http://zone.ni.com/reference/en-XX/help/371361H-01/glang/search_and_replace_string/
    http://zone.ni.com/reference/en-XX/help/371361J-01/glang/replace_substring/
    Hope you find this information useful!
    Regards, 

  • Javascript to Check Textbox Value

    Hi all,
    I have some simple javascript in the header of my page to check the value of an item...there are no errors coming up in Firebug, but the alert window is also never coming up.
    if ($v('P2_ITEM') == 'VALUE1')
    alert('VALUE1');
    if ($v('P2_ITEM') == 'VALUE2')
    alert('VALUE2');
    if ($v('P2_ITEM') == 'VALUE2')
    alert('VALUE2');
    }Thanks for any help.

    Alright, well here's the script, in the page's header,
    function test_choice()
    if ($x('P2_ITEM') == 'Test1')
    alert("Test1");
    if ($x('P2_ITEM') == 'Test2')
    alert("Test2");
    if ($x('P2_ITEM') == 'Test3')
    alert("Test3");
    }And here's the code for P2_ITEM's Form Element Attributes,
    onChange="javascript:test_choice();"
    This worked when the test_choice was only alert("Test");...I added my logic and now nothing and no errors from Firebug.

  • Using a lookup for mapping program to retrieve the specific value

    Hi All,
    I have a scenario like …I need to use a lookup for mapping program to retrieve the specific value based on the input parameters.
    Here I have got some rough idea like …
    1. Creation of java program to connect the DB table and access the values, Import this java program as archive into XI.
    2. Creation of user defined function to use the above java program
    3. Include the user defined function in the interface mapping.
    Here I feel it needs some more info to complete this scenario, so can anyone provide the step by step procedure for the above scenario.
    Thanks in advance.
    Vijay.

    Hi Vijay,
    Basically you have embed Database lookup code in the UDF. For all kind of Lookups refer to below links..
    Lookup - /people/alessandro.guarneri/blog/2006/03/27/sap-xi-lookup-api-the-killer
    DB lookup - /people/siva.maranani/blog/2005/08/23/lookup146s-in-xi-made-simpler
    SOAP Lookup - /people/bhavesh.kantilal/blog/2006/11/20/webservice-calls-from-a-user-defined-function
    http://help.sap.com/saphelp_nw04/helpdata/en/cf/406642ea59c753e10000000a1550b0
    Lookup’s in XI made simpler - /people/siva.maranani/blog/2005/08/23/lookup146s-in-xi-made-simpler
    How to check JDBC SQL Query Syntax and verify the query results inside a User Defined Function of the Lookup API -
    http://help.sap.com/saphelp_nw04/helpdata/en/2e/96fd3f2d14e869e10000000a155106/content.htm
    /people/prasad.illapani/blog/2006/10/25/how-to-check-jdbc-sql-query-syntax-and-verify-the-query-results-inside-a-user-defined-function-of-the-lookup-api
    Lookups - /people/morten.wittrock/blog/2006/03/30/wrapping-your-mapping-lookup-api-code-in-easy-to-use-java-classes
    Lookups - /people/alessandro.guarneri/blog/2006/03/27/sap-xi-lookup-api-the-killer
    /people/siva.maranani/blog/2005/08/23/lookup146s-in-xi-made-simpler
    http://help.sap.com/saphelp_nw04/helpdata/en/cf/406642ea59c753e10000000a1550b0/content.htm
    /people/sap.user72/blog/2005/12/06/optimizing-lookups-in-xi
    Lookups with XSLT - https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/8e7daa90-0201-0010-9499-cd347ffbbf72
    /people/sravya.talanki2/blog
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/05a3d62e-0a01-0010-14bc-adc8efd4ee14
    How we have to create the lookups?
    Check this weblogs with some screenshots on how to achieve this:
    /people/siva.maranani/blog/2005/08/23/lookup146s-in-xi-made-simpler
    /people/sravya.talanki2/blog/2005/12/21/use-this-crazy-piece-for-any-rfc-mapping-lookups
    /people/alessandro.guarneri/blog/2006/03/27/sap-xi-lookup-api-the-killer
    /people/sap.user72/blog/2005/12/06/optimizing-lookups-in-xi
    /people/morten.wittrock/blog/2006/03/30/wrapping-your-mapping-lookup-api-code-in-easy-to-use-java-classes
    Ranjeet Singh.

  • "Do you know a way to set counters automatically to a specific value when TC (i.e. zero) is reached?

    The inputs of my 6602 counter are two encoder signals, and I want
    to generate an output pulse every n-th increment of the counter.
    On the National Instruments Support Pages there exists a vi
    "Generate pulse every N position.llb" which promises to do that, but
    there are some problems:
    Here the counter is preset e.g. to 20 and then counts down to 2, 1, 0.
    When zero is reached, an output pulse is generated. This pulse now triggers
    the Z index channel in order to set the counter again to 20.
    However, this does only work, if both encoder signals are low when the
    Z pulse is active (or if both encoder signals are high or one is low and the
    other high, but not in
    all of these cases). The consequence is, that the
    example vi does only work with X1 encoders but not with X2 or X4 encoders.
    In the case of X2 or X4 encoders (or even in some cases of X1 encoders) it can
    happen that not both encoder signals are low when the Z pulse is active. Them
    the counter counts 2, 1, 0, -1, ... where -1 actually means a very large
    number because the counter values are unsigned. From then on no further output
    pulse is generated.
    To solve this problem there should be the possibility to set the counter to a
    specific value (here 20) when it reaches TC (i. e.), independently what the states of
    the encoder signals are. It would be best, when for this the Z pulse was not
    used, for many encoders do have a real Z pulse that also may be used.

    You are right in the case when the counter is to be reset
    in the presence of a reference mark.
    However the problem is to generate output pulses every N-th
    increment of for example a X4 encoder. Let N be 6. The
    counter counts 6, 5, 4, 3, 2, 1, 0. Then an output pulse
    is generated which is fed back to the Z channel. Let us assume
    that the Z index reload phase has been chosen correctly. Then
    the counter is reset to 6. It continues counting
    5, 4, 3, 2, 1, 0 and again an output pulse is generated.
    But now the channels A and B of the encoder (which were for example
    low at the time of the first output pulse) are in the inverted
    state (i.e. in the example high) and the Z index reload phase
    does no longer match. Therefore the counter is not reset and
    continues counting 4294967295, 4294967294, 4294967293, ...,
    which is the U32 form of -1, -2, -3, .... After that no more output
    pulses are generated since TC (=0) is no more reached.
    The problem is obvious. Only in the case of values N with N mod 4 = 0
    this approach can be successful. But then X4 evaluation of the encoder
    signals does not make sense, because a X1 evaluation does the same.
    In practice the situation is even worse. As theoretically expected
    the signal generation for X4 encoders never works when N mod 4 is
    unequal 0. If N mod 4 is 0 it only works sometimes. "Sometimes" means
    here randomly every fourth time, when the start phase of the encoder
    signals (which is determined randomly by the starting time of the
    software) matches the preselected Z index reload phase. Here it does
    not matter which Z index reload phase is preselected.
    Therefore the example program definitely cannot be used in combination
    with X4 or X2 encoders.
    There are a series of further arguments why we are not really satisfied by
    the approach proposed by the example vi to use the Z index channel in order to reset
    the counter. One is that we have encoders with real reference marks, which have
    to use the Z index channel themselves to reset the counter. Another is that we
    think that it is a rather complicated approach to reset a counter when TC (i.e. zero)
    is reached by checking the feedback fed Z index channel from time to time in intervals
    given by the internal clock of the 6602 and then reloading the counter value
    if certain conditions for the encoder channels are fulfilled.
    Therefore (and of course above all in order to deal with X4 and X2 encoders) it
    should be possible to reset a counter directly by hardware when TC (zero) is
    reached. We suppose the given 6602 hardware is supporting this, particularly
    because it is already able to react on TC (by generating output pulses) and because
    we think that something like that is already done in continous delayed pulse generation
    (and is only hidden in some code that is not accessible for LabVIEW users.)

  • Set the AVID DV codec specific values programaticly

    Hi,
    I am trying to change the AVID DV codec options settings from NTSC to PAL 420.
    i used the
    SCGetSettingsAsAtomContainer ( video_ci, &container );
    function to save the selected codec settings from the dialog.
    If i read them and check it with the dialog it show Avid Dv pal 420.
    if i start compressing it turns out to be ntsc again.
    and if i read the values back trouch the GetMediaSampleDescription(..) etc...
    It also shows its encoded with an NTSC setting.
    Please help.
    Cheers,
    Peter
    How can i set the Codec specific values.
    Can this be done by SCSetInfo
    if i load the saved compressor data with
    Please can anyone give me a hint were to search and what to do.
    Is there a way to save the compression settings, not the export settings.
    Thanks,
    Peter

    I tried to check what happens if i print the codec settings
    SCGetSettingsAsText( video_ci , &text );
    when i print for example the apple motion Jpeg codec it also shows the option settings
    if i print the Avid DV codec it does not show the the Pal/Ntsc settings.
    so it looks like an avid problem. HMMM or is there another way i could try to get all the settings for the selected codec.

  • How to find a certain usage of a specific value inside an SSIS package

    Hi,
    In T-SQL, there are many tools to search for instances of a specific value in all the objects such as tables and SPs.
    The only way I can think of in SSIS, is to search for a value in the XML of the DTSX, but it is not that user friendly.
    Are there any existing tools or other ways for a value search that can assist ?
    Thanks,
    Dani

    Since a package is just a plain text XML file thus  you are able to perform a text search in the file.
    http://sqlblog.com/blogs/jamie_thomson/archive/2012/06/12/using-find-replace-with-regular-expressions-inside-a-ssis-package.aspx
    Best Regards,Uri Dimant SQL Server MVP,
    http://sqlblog.com/blogs/uri_dimant/
    MS SQL optimization: MS SQL Development and Optimization
    MS SQL Consulting:
    Large scale of database and data cleansing
    Remote DBA Services:
    Improves MS SQL Database Performance
    SQL Server Integration Services:
    Business Intelligence

  • Passing check box values to WHERE clause

    Hi,
    I have created a Data block - 'CONTACTS' (Database data block)
    and has database item - 'Code', 'Descr'
    The number of records displayed is set to 5.
    Value When checked - 'Y'
    Value When Unchecked - 'N'
    Check box mapping of other values - 'unchecked'
    I am writing the code inside 'WHEN BUTTON PRESSED'. My main objective is to return the count of records based
    based on several conditions and one among them is CODE which is can be single or multiple based on the check box checked.
    The requirement is when i check one or multiple checkboxes, i should pass the 'Code' item values to the WHERE clause.
    Right now whenver i am trying to do so, only the current record value is copied to the WHERE clause.
    I have tried using basic loop but things havnt worked.
    Logic tried with basic LOOP
    BEGIN
    GO_BLOCK('CONTACT');
    IF :contact.cb = 'Y' THEN
    LOOP
    IF p_where is null then
    p_where := :contact.code;
    else
    p_where := p_where ||','||:contact.code;
    end if;
    exit when :system.last_record = 'TRUE';
    next_record;
    END LOOP;
    end if;
    MESSAGE ( 'p_where :'||p_where);
    MESSAGE (' ');
    END;
    And Even if i write the LOOP before the first IF, it return me the current record value and move to the last record.
    please guide me where am i wrong.
    Regards.
    Anoop.

    Try something like this:
    FIRST_RECORD;
    LOOP
      IF :contact.cb = 'Y' THEN
        IF p_where is null then
           p_where := :contact.code;
         else
           p_where := p_where ||','||:contact.code;
         end if;
       END IF;
      exit when :system.last_record = 'TRUE';
      next_record;
    END LOOP;
    -- END LOOP;
    MESSAGE ( 'p_where :'||p_where);
    MESSAGE (' ');
    END;

  • Standard Report to check consumption values for multiple materials

    Hi,
    Is there any standard report to check "consumption" values for multiple materials? The user needs to check the consumption values over a period of time for multiple materials (VERP, ROH) before deciding the re-order and safety stock values for them. Any help on this will be greatly appreciated.
    Thanks,
    Swapnil

    Dear Swapnil,
    Report MCRE is widely used for the material cosnumption than checking in COOIS.
    Also these reports can help you.
    MCPF                 Material analysis: Dates                
    MCPO                 Material analysis: Quantities           
    MCPW                 Material analysis: Lead time            
    Regards
    Mangalraj.S

  • How to insert check box value in table?

    Hi all
    kindly help me how to insert check box value in database. what code i have to use as i am new in programing.
    thanx in advance

    Hi,
    There is no "Check box" in a table, a check box is a GUI (Graphical user interface) item.
    What you want is to store a boolean value in a table. For that you can use the varchar2(1) datatype and store Y or N. (or anything else)
    (you cannot define boolean as a datatype for a column).
    If you're using a front-end application like apex then it might be useful for you to read the documentation about chekc boxes :
    http://download.oracle.com/docs/cd/E10513_01/doc/appdev.310/e10497/check_box.htm#CHDDFBFH
    (for the rest if it's Oracle Forms then everything is already said).
    Edited by: user11268895 on Aug 17, 2010 10:44 AM

  • How can I sum the values in a given column on sheet 1 i.e. A1:A50 based on the adjacent columns specific value i.e. B1:B50 = "Living Room" on sheet 2

    How can I sum the values in a given column on sheet 1 i.e. A1:A50 based on the adjacent columns specific value i.e. B1:B50 = “Dinning Room” on sheet 2
    For Example:
    SHEET 1
    A
    B
    $50
    Dinning Room
    $800
    Dinning Room
    $300
    Kitchen
    $1,000
    Master Bedroom
    $100
    Dinning Room
    SHEET 2
    Display the total SUM amount of each Project based on Sheet 1
    Project Name
    Total Cost
    Dinning Room
    $950
    Kitchen
    $300

    Would be a good idea to open iWork Formulas and Functions User Guide and search for the description of the function named SUMIF
    The Guide is available for every user thru the Help menu.
    Yvan KOENIG (VALLAURIS, France) jeudi 19 mai 2011 17:32:42
    Please :
    Search for questions similar to your own before submitting them to the community
    To be the AW6 successor, iWork MUST integrate a TRUE DB, not a list organizer !

Maybe you are looking for

  • How can i check the duplicate NPD project name?

    Dear all, I would like to know on how i can check the duplicate NPD's project name? I found that some NPD's project is initiate serveral time with the same or semilar name from user name. Supposing the project name was "Smart Pilot". I always found t

  • Half downloaded songs, help?

    I noticed the other day, a couple of the songs I've purchased from iTunes have downloaded, but only about half the song? Is there anyway to sort this out at all because I'm getting nowhere with actually trying to contact iTunes themselves

  • How to add sprite component to application

    Hi, In my application i am using a custom component which extends Sprite class. I am adding this component to application as <local:mySprite width="500" height="300" /> but it is showing following error on application run; Type Coercion failed: canno

  • Characteristic Update

    Hi experts, The SAP module which I work on is DMS u2013 Document Management System. 1)     We use u2018Classificationu2019 to classify the document. 2)     For documents we use the class of type 017. This class will have u2018characteristicsu2019 (ct

  • Why do my iphone not work after trying to syncronise

    Hi There I really hope that someone in this space can help me. This morning I tried to load my Iphone battery. I also updated my phone. Then My computer asked me if I would syncronise with my PC, unfortunately I said yes and afterwords I got this mes