FormCalc Script problem

Hi,
We have a couple of problems with FormCalc Script.
We have different RADIO BUTTON Groups which needs to be ENABLED during CREATE mode and needs to be disabled in other modes.
So, we have attached a FormCalc Script as shown below.
<i>if($record.CONTROL_PARAM.ISR_MODE == "CREATE")
then
     this.access = ""
else
     this.access = "readOnly"
endif</i>
And when we test our Adobe Form our SCRIPT is working only for one RADIOBUTTON group. But it is not working for other RADIOBUTTON groups.
I dont understand why it is behaving this way.
I have attached the same coding for all the groups in the same event - INITIALIZE. Still I am getting this problem.
Can anyone help me out.
Regards,
<i><b>Raja Sekhar</b></i>

Hi Juergen,
Thanks for the patient reply.
Sorry,I lost my patientence with these RADIOBUTTONS Problem. That's why I am not able to reply you promptly.
Anyhow's I checked the below mentioned stuff and here are my observations.
1) I have added the MESSAGE BOX and checked the ISR_MODE value and this.access value also. During the creation of form <i>ISR_MODE</i> value is <b>CREATE</b> and <i>this.access</i> is <b>OPEN</b>.
And during the Approval at first level supervisor, the value of <i>ISR_MODE</i> is <b>CHANGE</b> and <i>this.access</i> is <b>readOnly</b>.
The values are getting populated as expected.
2)Coming to the SCRIPT INTERFERENCE, this is the only EVENT defined for this field and there is no script defined at the FORM LEVEL.
Regards,
<i><b>Raja Sekhar</b></i>

Similar Messages

  • Using context variable in formcalc scripting language.

    Hi all,
             I wanted to know if it is possible to use context variables in formcalc. I wanted to use those variables in "if else" condition in formcalc scripting language. Please post the sample code also as i am new to adobe forms.
    Regards,
    Vinod

    Hi ,
    Each variable define in the context can be used on the layout of the form and/or in script linked to fields.
    This can be done in formcalc or in javascript language , without any problem . You have only to acess the correct variable in the script.
    For getting variable in a script you must define the complete name of the variable, example "Myform.Header.Data.Myvariable" get access to variable MyVariable define in the context under nodes Header/Data .
    Hope it's help you
    regards.

  • Regarding FormCalc Scripting for Adobe Print Forms

    Hi Friends
       I am working on Adobe Print Forms.
    I wish to write some FormCalc Scripting  in form on date field.
    I want to know the meaning for the below scripring :
    $.format.picture = DateFmt(2, $.locale);
    $.ui.picture = DateFmt(2, $.locale);
    $.assist.toolTip.oneOfChild.value = LocalDateFmt(2, $.locale);
    Can anyone please explain me the above scripting in detail.
    Points are assured for useful answers.
    Regards,
    Sree

    Hi Susy,
    This is a problem with the transaction SPF. The Adobe form painter i.e. SPF transaction is still not very stable.
    I had faced the same issue when I was working with SAP labs for developing the SAP standard reports.
    Hope this problem is resolved in future versions. But currently there is no solution as such to it.
    I think its better that you create the form yourself rather than uploading the PDF document.
    Lokesh
    Pls. reward appropriate points

  • Error in FormCalc Script of Adobe Interactive Forms

    Hi,
    We created certain <b>Custom I.S.R. Scenarios</b> and attached them to Workflows. So in these regards, we had already created the needed forms in Adobe Interactive Forms Transaction(SFP) and launched the Scenario successfully in Enterprise Portal.
    But we have a couple of requirements like during <b>Create</b> mode of the form, I should be able to modify certain contents of the form, and during the <b>Change</b> mode of the form, I should be able to modify certain other fields of the form. So I had opted for <i>FormCalc</i> Scripting in these regards.
    I used the following code...
    if($record.CONTROL_PARAM.ISR_MODE == "CHANGE")     
    then
         this.access = "readOnly"
    else
         this.access = ""
    endif
    Well, I used the same script in two of my forms. For one form, it's working very perfect. But for other form, it's giving the following error..
    Error : accessor '$record.CONTROL_PARAM.ISR_MODE' is unknown.
    I am very much mazed, why the same code behaves in 2 ways in two different forms.
    So can anyone help me in these regards?
    Regards,
    Raja Sekhar

    Hi,
    I solved the problem by applying alternate solution.
    I used Java Script instead of FormCalc Script.
    That cleared my errors.
    Regards,
    <b><i>Raja Sekhar</i></b>

  • FormCalc/Script query?

    Start Time
    End Time
    Mode of Transport
    Journey Time
    HH:MM
    HH:MM
    Drop Down List
    Auto calculated on start/end times
    Total Time Traveling
    Sum of Journey Times
    Mode of Transport
    Total Time Journey Time
    Drop Down List
    I have created an interactive form which requires members of the general public to fill out a travel diary. I have got all the calculations to work except the bottom table. I'm trying to figure out which formcalc scripts to use to give a total time for each mode of transport, based on the users choice. For example, if the user want's to see how many mins they have cycled this week, they pick cycling from the drop down list on the bottom table and then in the total journey time it tells them how many mins they have cycled that week.

    Hi,
    I am all for learning and hope that this returned form helps. But a little annoyed that Managers do not "appear" be place a value on it.
    https://acrobat.com/#d=HJIBeWz3ZjvcBZjsSW-Vrw
    I have sorted out the first two pages, in how I believe it would be best to approach the problem:
    I have deleted the rows and just kept one row which is repeatable (see Object > Binding palette). This is easier to maintain, as all of the script is in one row. The row is then set to have a minimum of 10 occurrences.
    I have also included tool tips in the fields for accessibility. Local Authority and all.
    You should name objects based on their role. This makes it much easier to script against. See here: http://assure.ly/mxZO9T.
    I have inserted a page and table for the summary. I have taken an approach where all of the categories would be visible and the corresponding times. I have also includes a bar chart. You could colour each bar based on the greenness of the mode of transport.
    You need to look at the script in the summary times. This loops through the first two pages AND loops through each of the 10 rows in each of these tables.
    Looping script for anyone interested:
    // Set up some variables
    var vTime = 0;
    var currentRow;
    // Calculate a summary for car
    for (var i=3; i<5; i++) // work through the first two pages
         for (var j=0; j<10; j++) // work through the ten rows in each page
              currentRow = xfa.resolveNode("Page" + i + ".Table1.Row1[" + j + "]");
              if (currentRow.modeTransport.rawValue == "Car")
                   vTime = vTime + currentRow.journeyTime.rawValue;
    // Set summary journey time
    this.rawValue = vTime / 60;
    Hopefully your manager will see value!
    Niall

  • Hiding Pages in ADOBE form using formcalc scripting.

    Hi Experts,
    I am new to ADOBE form and currently working on invoice print output. (NOT an  Interactive adobe form)
    My requirement is
    i wanted to print one main page and 5  different annexures(anexures are having different layouts so is in diff forms and contained in diff pages)
    Deppending on 'Oreder reason' (made as global variable)  , i need to select appropriate annexure and print
    main page and any one of the annexure.
    so i should hide all other annexure, to achive this i used formcalc scripting.
    i tried hiding annexure 2 by following code,
    data.Annexure2::ready:form - (FormCalc, client)
    if ( data.G_F_ORDER_REASON.rawValue == "ANX" )
    then $.presence = "hidden"
    endif
    i have passed value 'ANX' to this , i could see the value of order reason printed on page Annexure2 but it is not executing (getting in to if condition) condition and not hiding the page ...
    Experts please help me...
    this way i have to hide 4 other annexures...please help me or give me some other option to achive this.
    thanks and regards
    varun
    Edited by: skyblue on Aug 6, 2011 3:30 PM

    coding Formcalc is a pain.
    But you're doing the right thing by passing in a variable and hiding based on the content of it.
    Here's an example of where I'm hiding a subform on a page.
      if ( main_sf2.charter_only.CHARTER_DOC.rawValue eq "X" ) then
       main_sf2.pts_sf.presence = "visible"
      else
       main_sf2.pts_sf.presence = "hidden"
    endif
    Looks like your code is similar - try changing
    ( data.G_F_ORDER_REASON.rawValue == "ANX" )  to
    ( data.G_F_ORDER_REASON.rawValue  eq "ANX" )
    or instead of $.presence = "hidden"  fully qualify the name of your page to  data.Annexure2.presence = "hidden"

  • Adobe Forms - FormCalc Scripting Question for Image Control

    Hi All,
    I have three images on my master page. I have a hidden text field. Based on a certain value within this text field I need to turn off Imagefield B and ImageField C and Leave ImageField A visible.
    I know this can be done via FormCalc scripting.
    My Questions:
    Which event shoudl I put the script in? I was thinking the textfield initialize event.
    What would be the EXACT syntax to turn turn image fields on or off?
    Please inform if know.
    Regards,
    Salil

    I solved it now, just changing the FormCalc expression.
    Instead of using the expression:
    this.value.image.href = xfa.resolveNode(this.value.image.href).value;
    I used this:
    this.value.image.href = xfa.record.Images.URL;
    The URL value of Image Field, in this case is:
    <b>$record.Images[*].URL</b>
    And, to finish, I needed to add a Text Field bounded to  <b>$record.Imagens[*].URL</b>, case else the image doesn't appear.
    That's it!

  • FormCalc script is not executed

    Hi everybody,
    I've developped a Pdf forms with FormCalc Script.
    This script does works in the preview designer of SFP transaction but when i try to run the pdf forms through a specific program, the script is not executed.
    Do you have any idea ?
    The pdf is a ZCI layout.
    My SAP platform is ECC 6.0

    Brice,
    What is the type of form you are developing ? Interactive or Print.
    My guess you be creating a Print form where dynamic scripting does not work.
    Alternatively put following line of code in the script to see if the control is transferred to your event or not.
    $host.messageBox("Inside event")
    Chintan

  • Saved File Groups Issue in Bridge Center - script problem?

    Hi all,
    I tried posting this in the Bridge forum with no replies. After browsing through this forum I'm wondering if this is a script problem?
    I have the CS2 premium, and use all packages. The problem I have is saving and retrieving files in the 'Saved File Groups' of Bridge Center. I can save Photoshop files no problem, but the idea is to be able to save other files from open applications in the group and then to recall them later. I can save Illustrator files with others in a group but only Photoshop files open, and it ignores the saved Illustrator files.
    With my InDesign files, it does not even recognise them as files to be saved. I can have a file open, click on "Save open files into a file group" and it will come up with a little box saying there are no open files to save!
    OS - XP sp2. Bridge 1.0.2
    If this can be helped with scripting, please explain clearly, I am a graphic designer and no very little indeed about scripting.
    Your help would be appreciated.
    Thanks,
    Thysje Arthur

    Hi,
    Do you mean that Windows displays “Network Shortcuts” folder when you click “Browse” icon? If so, please check if you configure the default local file location to the “Network Shortcuts” folder. You could refer to the image below to find the option of the default
    local file location.
    Best Regards,
    Mandy 
    We
    are trying to better understand customer views on social support experience, so your participation in this
    interview project would be greatly appreciated if you have time.
    Thanks for helping make community forums a great place.

  • When I try to go to icloud I get 'script problem' and cannot enter. Could someone please advise me what to try. Thanks.

    When I try to go to ilcoud I get 'script problem' and can't enter. Please advise what I should try. Thanks.

    I use e-trade and a couple of times, years back, I found them behind the Java updates.
    So, now I install new Java platforms on my backup disk and test the streaming data on that first because I know it will be over-written that evening with my nightly backup.
    Of course, since I began doing that there hasn't been a problem. Do the same with printer driver updates.
    Anyway, call ScottTrade and howl! Tell them how many Macs are out there and why aren't they in Apple Developers Program?

  • OS X Lion - JAVA SCRIPT PROBLEM

    I recently updated from Snow Leopard to OS X Lion. Now I seem to have a JAVA Script problem. Where do I start fixing this issue. I have checked updates etc etc but it seems to be updated. However, when I login to my web site backend, I have a problem. Any advice please?

    Would you please write some more details? explain the problem and what web site backend you use. Thanks.

  • FormCalc script language for calculating PV

    Greetings,
    I need to calculate a Present Value (PV) in a table for rent. I can not (after many, many tries) come up with the formcalc script language that mirrors the Excel formula my boss has used in a spreadsheet.
    I know the 'formula' is PV(n1, n2, n3), but that is apparently NOT what needs to be written as the script. Do I use ".rawValue" in writing this out? Do I use the ctrl+applicable cell in choosing a segment?
    My first example of needing to calculate this  is having a total amount for a year's rent, a discount rate of [user entered, example would be 5%], and a period of the term year minus 1 (so year 1 would be 0 or not used; year 2 would be 1, year 3 would be 2). This is what the Excel formula relates to, although it uses a negative (minus) in front of the year's rent amount.
    Writing PV(yramount,  discountrate, yr-1) doesn't do anything to create the answer.
    Do I write ...    $.rawValue = PV(yramount.rawValue, discountrate.rawValue, yr-1.rawValue) or ....
    I can't figure it out (and I've tried this formula every way I can imagine and I'm getting nowhere).
    I am also going to be calculating the Present Value of Total Lease Obligations each year (which is another oddity of  discountrate, yr-1, negative TotalLeaseobligation).
    Once I get 'row 1' calculating, the following rows will be added based on the number of term years, and the calculating will include percentage increases over the prior year along the way. I can't wait :-O
    If someone could please help me crack the "actually USING in a form the formula for Present Value)", I will be so very grateful. It is decidedly beyond my sub-novice attempts.
    Thank you!
    Shu

    Oh, my, thank you so much! It is truly baffling to me. I’ve attached my efforts for what it’s worth. I try to explain more below.
    I was basing my ‘assumption’ on this ‘formcalc information’ – but obviously I couldn’t do anything with it as it is too cryptic for a beginner.
    Here is the Excel formula used in the current spreadsheet:
    = PV($B$22,B$26,,-C28
    Where B22 is the Discount rate (e.g. 5%)
    B26 is a number representing the year number of the prior year in the Term (e.g., the first year pulls a blank cell, the 2nd year pulls “1”, the 3rd year pulls “2”)
    C28 is the Base Rent amount for the year being calculated, but shown as a negative (?)  [That number is calculated as a $/square foot * number of square feet]
    In my LCD form, I’m calculating in a table in which there is a header row, a footer row, currently 2 body rows, and I’m trying to get all the values to calculate based on information “provided above” in the form. The first challenge is the first row and I’ve gotten everything to ‘work’ except the “Total Base Rent(PV)” and the “Total Lease Obligation(PV)” the 3rd PV value is an arithmetic calculation between these results.
    Current Row 1 formulas:
    Base Rent: $.rawValue = NF3BaseRentPersf.rawValue * NF1SquareFootage.rawValue
    TI Costs: $.rawValue = NF14AnnDebtServTotal.rawValue
    Furniture Fixtures Equipment: $.rawValue = NF14FFETotal.rawValue
    Move Costs:  $.rawValue = NF14MoveCostsTotal.rawValue
    Total Lease Obligations: $.rawValue = Cell2.rawValue + Cell3.rawValue + Cell4.rawValue + Cell5.rawValue
    Common Area Costs: $.rawValue = NF4OpExPersf.rawValue * NF1SquareFootage.rawValue
    Utilities: $.rawValue = NF5UtilPersf.rawValue * NF1SquareFootage.rawValue
    Other Expenses: $.rawValue = NF6OtherPersf.rawValue * NF1SquareFootage.rawValue
    Total Operating Expenses: $.rawValue = Cell7.rawValue + Cell8.rawValue + Cell9.rawValue
    TOTAL Estimated Costs: $.rawValue = Cell6.rawValue + Cell10.rawValue
    Total Base Rent (PV): ______________________?
    Total TI & Other Costs (PV): $.rawValue = Cell14.rawValue - Cell12.rawValue
    Total Lease Obligation (PV): _______________________ ? (THIS -> doesn't work: $.rawValue = PV(NF15DiscountRate.rawValue,, -Cell6.rawValue)
    I'm sorry for being so naive with all this. We are gobsmacked (in a great way) with the possibilities of LCD-- IF I can just get the hang of this stuff.
    Here's the hierarchy for the table:
    and these are related hierarchy references (you can tell I haven't quite gotten the naming of objects down very well).
    AND my NEXT challenges: I am trying to make this a ?repeating row table? And will attempt to add an 'add row' button that will allow the addition of a row reflecting the number of years in the proposed term (from 1-10, usually). So I need the amount to sum in the footer as well as the couple of sums within each row. Starting with the 2nd year, the Base Rent and Operating Expenses amounts will be a factor of the prior year's amount * the applicable Escalation % (Base Rent Escalation or Estimated Annual Expenses Escalation) -- which is why I figured I had to go on and include the 2nd row to put those formulas therein. I am ASSUMING that when I enerate subsequent rows with the "Add Row" button (crossing fingers!) that the formulas will duplicate and the correct amounts will be reflected, including the right totals -- although for a 1-year term I'll need to figure out how to 'delete row' the 2nd row so the totals aren't ka-flooey.
    I am extremely grateful for your help in any way you can share. This is a lot of fun -- but I just don't speak the LCD language yet. Thus I flounder.
    Appreciatively,
    Shu
    p.s. I am not sure how to provide a copy of my actual form-in-progress. Much of what I'd written in reply was stripped out so I've come back in to edit and add what I'm able.Thanks again!

  • Need help with a FormCalc scripting

    I am new to FormCalc and need some help. I am creating an interactive PDF in which I need a FormCalc script code for the following situation. I need to have a check box initate a script in another field. For example; I have one numeric field for quanity ordered (user input) and a check box for an optional add-on. Once the check box for the add-on is selected; I need a third field to reflect the price of the add-on * the numeric value in the quanity field.
    ProductPrice     Product Quanity          Add-On                        Total Cost
    Pd1                    2                              ($300) check box            Product Price * Product Quanity  + Add-On Price (if clicked) * Product Quanity
    Can anyone help?

    That was helpful but I still can't see to get it work. In the form I am creating The field that needs to autocalc. is to be triggered by the user clicking an add-on box. I have the add-on checkbox values set as 1=check and 0=unchecked. The idea is that when the that box is checked, the "ItemTotal" field to be calculated will be triggered to then take the Quanity field and mulitply by 300. Below is the script I tried to use and the error message returned when the Add-on box is checked.
    if (Add-onBoxName == 1) then
         Quantity * 300
    Error message in Adobe Reader when box is checked:
    Script failed (language is formcalc, context is xfa[0].form[0].topmostSubform[0].Page2[0].Add-onCheckBox[0])
    script=if (Add-onCheckBox = = 1) then
    ItemTotal = Quantity * 300
    Error: syntax error near token '300' on line 4, column 0.

  • Firefox 31.0 - slowness and script problems for using websites

    Since Firefox 31.0 is released, some technical problems of slowness and script problems to use
    websites have been noticed from mine. Sometimes it needs up to some minutes to load a website
    and sometimes there are error messages for an unanswered script.
    pemigabo123

    Hello FredMcD,
    thank you for your message.
    But your answer to my question at support.mozilla.org is not helpful,
    although it is a professional technical answer from a Top 10 Contributor
    from mozilla.
    It seems that there is a permanent unfixed problem always if a new
    version of mozilla is released. After all fixed problems of the earlier
    version of firefox, there is no problem at all.
    But if I am already working with the non-problem earlier version of
    firefox, then suddenly the problems of error messages, slowness and
    script errors are appearing, and if I have looked for the actual version
    of firefox, there was signed a new version and now I have known,
    aha a new vesion of firefox was released and it needs up some time
    for every new version until the error problems were fixed.
    Maybe it is combined with the plugins like flashplayer or shockwave.
    But a professional version of firefox should not sign up error messages,
    because of plugins, while working with these plugins.
    Another answer from another support.mozilla.member was for an
    overload problem, because of opening some windows of firefox.
    But to open many windows of firefox was already no problem with the
    earlier version firefox 30.0 or earlier, until the error messages are fixed.
    The same unfixed problems are since firefox 25.0 up to 30.0, but I was
    wondering for how long version 30.0 was actual in practical working.
    And since version of firefox 31.0 was released the same problems
    of error messages, slowness and script errors were appearing.
    At the moment it seems firefox 31.0 works alright.
    But only the following time shows if it works without error messages,
    slowness and sript problems or not.
    In hope to give a helpful answer to yours
    kind regards
    pemigabo123

  • I keep getting adobe script problems. I have 3.6.13 version and have never had this problems with prior versions

    I can't find a solution to the adobe flashplayer that is associatied with Firefox. I keep getting script problems and am asked to either continue or ignore the problem. I've been a long-time user of Firefox and have never had any problems with Firefox or any associated programs (plug-ins) and so this is a surprise to me. I checked the version of the flashplayer and find that I have the most current version; so I'm not sure what's going on.

    Do a malware check with some malware scan programs.<br />
    You need to scan with all programs because each program detects different malware.<br />
    Make sure that you update each program to get the latest version of the database before doing a scan.<br />
    * http://www.malwarebytes.org/mbam.php - Malwarebytes' Anti-Malware
    * http://www.superantispyware.com/ - SuperAntispyware
    * http://www.microsoft.com/windows/products/winfamily/defender/default.mspx - Windows Defender: Home Page
    * http://www.safer-networking.org/en/index.html - Spybot Search & Destroy
    * http://www.lavasoft.com/products/ad_aware_free.php - Ad-Aware Free
    See also "Spyware on Windows": http://kb.mozillazine.org/Popups_not_blocked and [[Searches are redirected to another site]]

Maybe you are looking for