By using Java scripting how  can  compare database value to Forms value?

i develop portal form n want to compare field that is Issued quantity with available quantity through java scripting.please send me syntax with an example.
problem:
if issued quantity is greater than available Quantity then appear alert message
Thanks,
Sadaf

this is the false forum for you. Try it in the database forum e.g.

Similar Messages

  • We have a requirement to print the w2 forms for employees using java application, how can i implement this. Please give some suggestion.

    We have a requirement to print the w2 forms for employees using java application, how can i implement this. Please give some suggestion.

    Anyone any ideas to help please?

  • Using Java Script to set cookies of a JSP form

    Hi,
    i m new to JSP as well as Javascript. i have a JSP which has two fields which are generated dynamically based on a no. of rows in a datasource, for eg. product datasource and the fields are productId,A. I also have one href link which opens another jsp. I want to set the cookie for productid when the user clicks on the link. i have written a javascript for setting the cookie. but i get a error saying the variable prodid object is null or not an object.The code is something like this,
    <%@ page contentType="text/html;charset=windows-1252"%>
    <%@ taglib uri="/webapp/DataTags.tld" prefix="jbo" %>
    <HTML>
    <HEAD>
    <SCRIPT LANGUAGE="JavaScript">
    function setck(field) {
    for (i = 0; i < field.length; i++) {
    var pid = field.value;
    if ( pid != null && pid.length > 0)
    document.cookie = "CookieProductId" + i + "=" + pid;
    </script>
    </HEAD>
    <BODY>
    <center>
    <form name=myform >
    <jbo:ApplicationModule id="am" configname="FleetCardsBC.FleetCardsBCModule.FleetCardsBCModuleLocal" releasemode="Stateful" />
    <jbo:DataSource id="dsProd" appid="am" viewobject="FmmProductsView"/>
    <jbo:DataSource id="dsProdRes" appid="am" viewobject="FmmProductRestrictionsView"/>
    <table>
    <%int nRow = 0;%>
    <%
    nRow++;
    String s1 = null;
    Cookie[] cookies = request.getCookies();
    if (cookies != null)
    for (int i=0; i<cookies.length; i++)
    s1 = "name: "+cookies[i].getName()+ " value: "+cookies[i].getValue();
    out.println(s1);
    %>
    <jbo:RowsetIterate datasource="dsProd" >
    <tr><td>Product Id </td>
    <td><input type=text name="prodid" ></td>
    <td>A value </td>
    <td><input type=text name="A" ></td>
    <td>
    <a href="prodresdet.jsp" onfocus="this.value=setck(this.form.prodid)" >More Details</a>
    </td>
    </tr>
    </jbo:RowsetIterate>
    </table>
    </form>
    </center>
    </BODY>
    </HTML>
    Interestingly the cookies get set if instead of a link i use a button. Can someone tell what m i doing wrong, using a link.
    Thanks in advance
    Unmesh

    Doesn't work consistently.
    Here is the file modified with your script:
    https://www.box.com/s/09dzlu2kmiv7uziqef7j
    The way it should work is that, when you enter in a code, such as 1, a type appears on the right hand side- either C or S. A C is an automatic Fail and should appear in the pass/fail box after entering in the 1 under the code column. After the Fail appears, the script should be called and the subform should appear.
    Then, if you were to change the 1 under the code to a 6, the resulting type is an S which makes the pass/fail box turn to Pass. At this point, the subform should disappear.
    Does that make sense?

  • How to pass parameters to a page invoked using java script.--- Very Urgent.

    Hello,
    I have an advanced Table in my page. In the first column there is a
    messageChoice. In the second column there is link item.On the link item i have set the following value for destination uri.
    javascript:var a=window.open('OA.jsp?page=/AutoSales/oracle/apps/per/auto/webui/AutoSurrogatesPG&retainAM=Y','a','height=500,width=900,status=yes,toolbar=no,menubar=no,location=no,resizable=yes,scrollbar=yes'); a.focus();
    The user selects a value from the message choice and when he clicks on the link item, the value selected from the list should go to the new page invoked using java script as a parameter. I need the value selected from choice to generates few fields in the new page. I have preferred java script because i need the base page and a model window should open. I have tried using setForwardUrl() and setting '_blank' and new window for target frame property on the link item. But it isnt working. The new page is opening in the same window.
    I have also tried putting the value in a session.
    Please help with any kind of suggestions or solutions.
    Thank you.

    Uma,
    You need to
    - Have a PPR Action on the messageChoice (this would trigger a form submit to populate the underlying View Attribute)
    - Either
    - Retrive the value from the View Attribute in the pop-up page (as I could see that you are retaining the AM)
    - Use a SPEL in the link (on the modal page) to use the value from the View Attribute as the parameter value (in the form ${oa.current.<ViewAttributeName>)
    HTH

  • As i am fresher Please share the doc of ECMA script using java script in SharePoint 2013 also how we can insert,update,delete records in list using ECMA script.

    As i am fresher Please share the doc of ECMA script using java script in SharePoint 2013 step by step also how we can insert,update,delete records in list using ECMA script.
    Thanks and Regards, Rangnath Mali

    Hi,
    According to your post, my understanding is that you want to use JavaScript to work with SharePoint list.
    To create list items, we can create a ListItemCreationInformation object, set its properties, and pass it as parameter to the addItem(parameters) function
    of the List object.
    To set list item properties, we can use a column indexer to make an assignment, and call the update() function so that changes will take effect when you callexecuteQueryAsync(succeededCallback,
    failedCallback). 
    And to delete a list item, call the deleteObject() function on the object. 
    There is an MSDN article about the details steps of this topic, you can have a look at it.
    How to: Create, Update, and Delete List Items Using JavaScript
    Thanks & Regards,
    Jason
    Jason Guo
    TechNet Community Support

  • How can I get selected EXCEL area using java script office API (v 1.0)

    Hello everyone,
    I need to get values of specified area in an excel sheet using java Script Office API. For an example,
    A1:A7 row load into array using JS. 

    And you posted to a C++ forum, not a JavaScript or Excel forum.... why? 
    Visual C++ MVP

  • Can we use Java Script in SAP BusinessObjects Web Intelligence 4.1?

    Can we use Java Script or any other Script in BI 4.1 Web Intelligence? If possible please do let me know the method/process

    Hi Kranthi,
    You have option to read a cell content as html. else you will have to go for SDK. I think you will get better suggestions, if you can explain your requirement in a little detailed manner.
    refer below links for more details about SDK.
    http://bukhantsov.org/2013/04/how-to-create-a-webi-document-using-java-report-engine-sdk/
    Regards,
    Nikhil Joy

  • How to  build a  Calculator in WAB Template  by using  Java Script......

    Hi ,
    I am  trying   to build a dynamic  calculator in WAD which is as  similar to one in Executive view in Cognos. The  problem i am  facing  is,  i can  able to build a normal  calculator  by using  java script  but  i am  unable  to read the  key figure  values from  the  analysis  item  on from the  data  provider  in to  by  calculator  by using  on click  function. I wanted  to get the all  the  values in to a internal excel , so  that  my calculator can read the  values from  that. can  any  one  help  me  on getting  values in to internal excel by using   java before the  executing the  web template ?...
    Thanks in advance....
    Jhon.
    Edited by: sap bw on Jul 31, 2008 5:51 PM
    Edited by: sap bw on Jul 31, 2008 5:52 PM

    I might not be understanding your question completely since you mention WAD and then Excel, but if you are asking how to get the key figure values using Javascript in WAD, you can go to the Dataprovider properties and enable 'Output Result Data'.  This will embed an XML element into the HTML output that you can then parse using standard Javascript DOM navigation.
    Hope this helps.

  • How to pass values to variables in WAD 7.0 using java script

    Hi.,
    My requirement is based on WAD 7.0.
    The sales value has to displayed in WAD using graph with various chart types.
    I have created variables for plant and material group in a query.
    I have created drop down box for plant with all plants in it, check box for material group and a Submit button in WAD in FORM tag of HTML coding.
    Once all the values are set in drop down box, checkbox and if the user clicks on submit button, the values has to captured by the variables for which I have created and the graph has to be aligned to the new values in variables.
    Kindly help me how to use java script to get the values from FORM and pass it to variables.
    Regards,
    Selva

    Hi Selva,
    You do not need to use Javascript for this. Instead you can achieve this by using API Commands in WAD 7.0.
    Please configure Action on the ButtonGroup webitem to use 'Commands'.
    ->Choose Command 'Set Variables Values / SET_VARIABLES_STATE' under Commands for Web Templates
    ->Set Display Variable Screen setting to OFF
    ->Choose Query Variable for Plant, Select Variable Type as 'Binding Type', Binding Type as 'Data Provider Selection', Data Provider as the one you have assigned to the Dropdown webitem, Characteristic as 0PLANT or as that assigned to the Dropdown webitem
    ->Repeat above steps for Query Variable Material Group
    Now when you make a selection from the Dropdown webitems, the Chart output will change accordingly. Let me know if this helps.
    --Priya

  • How to do Front End Validation for JSP Forms using Java Script with 9iJD...

    How to do Front End validation using 9iJD. Any wizard is there. We need to do the val. using Java Script. If its not available, please include that in the Production Release.

    Thanks a lot. When is the Production Release is scheduled. Please tell us whether itll be available for Free Download. Bec, we couldnt buy. Bec, if its working fine with all the options without any bug only, we can ask our company to buy 9iJD by stating the advantages. Just explain us.

  • How & where to use Java script to create new button in object detail page

    Hi All,
    I want to create "New/Add button" in object detail page. If i am not wrong i need to use java script for that but could you please let me know how & where to use Java script to create new button in object detail page in CRMOD.
    Thanks in advance.
    Regards,
    Manish

    Any related object on the detail page should have an "Add" or "New" or both buttons by default - This is vanilla functionality and will do the required action.
    If you want to modify this behaviour and do something tricky you will potentially have to go for javascript. You should add the javascript on a custom web tab on that Object.
    Admin --> Application Customization --> Contact -->Contact Web Applet
    Now, add your javascript in the code area, after you select the type = HTML for this web applet, expose this web applet on the Contact detail layout and your javascript will be invoked whenever this page is loaded.
    Check this online document to see how javascript can be embedded in CRM on Demand http://helponmyproject.com/TTOCOD/
    Cheers!
    Royston

  • How to use Java Script in jspx pages of ADF Faces?

    I wanna invoke an Applet in a jspx using Java Script...
    How can I do this? :)

    check my other post..that's to know how to use js in jsf pages...not to invoke applet..
    Re: how to Add inline JavaScript to a Page 11G

  • How we close Views without using Java Script

    Hi All,
    can you please suggest me how i close view with out using java script.
    if possible please reply with code.
    Thanks
    Siva

    Hi Siva,
    You can do this either by hiding your window or by closing the window. Following is the sample code to do that
    IWDWindowInfo windowInfo = null;
    IWDWindow window =null;
    windowInfo = (IWDWindowInfo)  wdComponentAPI.getComponentInfo).findInWindows("<<WindowName>>");
    if(windowInfo!=null)
    window = wdComponentAPI.getWindowManager().createWindow(windowInfo,true);
    window.hide();
    Try with this code, might be useful for your scenario.
    Thanks,
    Sandeep

  • How to get the context data using java script in interactive forms

    Hi All,
    How to get the context data using java script in interactive forms by adobe,  am using web dynpro java
    thanks.

    Hi venkat,
    Please Refer this link.
      Populating one Drop-Down list from the selection of another Drop-down list
    Thanks,
    Raju.

  • How to use java script when popups are blocked in browser

    How to use java script when popups are blocked in browser

    Not. When people install a popup blocker they don't WANT popups, so stop trying to force them down their throats.

Maybe you are looking for

  • Error while transporting Generic Datasource in R/3

    Hi All, I have created a generic datasource(R/3) on a view. As it was in $TMP, I have assigned the datasource, ZABCD, and the view, ZVIEW to a devlopment package and also to a transport request. I released the Transport request and when I tried to im

  • Transfer Time Machine backup from one external drive to another

    Surely this has been covered, but I can't find it. If you have your time machine backup on an external drive and get a new (larger) external drive, what is the best way to transfer the backup from one drive to the other (and define the new drive as t

  • Error in applying patch in solman 4.0

    Hi I am in the middle of applying support pack on a solution manager 4.0 system SAPKB70014 SAPKNA7010 SAPKU50010 SAPKITL424 SAPKIPYJ7D SAPKW70014 SAPKW70015 SAPKNA7011 SAPKU50011 SAPKA70014 SAPKITL425 The process has stopped by giving error in Phase

  • Does Photoshop 4.0 --not cs4-- work on Windows 7, anyone know?

    Under Windows 7 natively or through the XP emulation that Pro/Ult offer, I am just wondering if anyone can tell me whether or not Photoshop 4.0 (I know, old) will work. Thanks

  • Printing/crashing issues with Office 2004 after 10.5.3 upgrade.

    I have an iMac on 10.5.3 and whenever I try to print Word, Excel, or PPT, the apps crash. Just recently the apps are crashing just when I attempt to open up a document. I thought it was the fact that I use Carbon Copy Cloner and have a clone of these