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!

Similar Messages

  • Adobe Forms central it useful for sap Consultant

    HI all,
    Last few years in sap Consultant and i worked SAP Adobe forms this Adobe Forms Central it useful for sap Consultant

    FormsCentral does not have any integration with SAP.
    Thanks,
    Josh

  • Table for image controlling in PD infotypes

    Hello,
    Please, we need to know if there is any table for image controlling in PD infotypes. In PA table is: T588M.
    Thank you

    Sorry,
    I've not come across one in the 10 years that I've been working on SAP.
    J

  • Getting Error in Adobe Form as Script failed (language is formcalc:context

    Hi Experts,
    While acessing Adobe forms from MSS ,
    After Selecting the Scenario
    After Edit Form
    Before the form is Displayed
    I am getting a POP-UP message stating the following Error.
    Script failed (language is formcalc;context is xfa[0].data[0].RequestSeparationEnhanced[0]. PCR_PAGE1[0].PCRheader[0].EmployeeDataCI[0].EmployeeDataCIContent[0].EmployeeInfo[0])
    Script=concat($record.ENAME.DATA.FIELD,u201D(u201C,$record.PERNR.DATA.FIELD,u201D)u201D)
    Error: acessor u2018$record.ENAME.DATA.FIELDu2019is unknown.
    Script failed (language is formcalc;context is xfa[0].data[0].RequestSeparationEnhanced[0].PCR_PAGE1[0].PCR_DE[0].PCRDEContent[0].RequestSeparationEnhanceDDLOverlay[0])
    Script=concat($record.MGTXT.DATA.FIELD,u201D(u201C,$record.MASSG.DATA.FIELD,u201D)u201D)
    Error: acessor u2018$record.MGTXT.DATA.FIELDu2019is unknown.
    ENAME & MGTXT are the fields which has to be displayed by default when the form is shown.
    But when the Adobe form is displayed it comes without any Value for ENAME - Employee Name
    MGTXT - Reason for Action Text .
    Please provide me solution to over come this problem.
    Thanking you in advance,
    Suriya.

    This was fixed by commenting the script in the form since I don't require it.
    Suriya

  • MessageBox on Adobe Form in MSS PCR for ECC 5.0

    Hello,
    I have a question regarding the behavior of Adobe form messagebox in MSS PCR.
    I tried to test how the messagebox looks like, and so I created a PCR scenario with an Adobe form. This form contains a datetime field. I added the script "xfd.host.messageBox("this is message", "this is title") to the "exit" event of the datetime field. Then I did all the necessary steps so that this PCR is displayed in the Portal.
    Now at the runtime, when I select a date value from the datetime field, the messagebox is displayed, BUT within an empty Adobe Reader page. It is not displayed on the top of my adobe form.
    But the strange thing is that when I use tab key to navigate through the datetime field, the messagebox is displayed on the top of my adobe form, without the empty Adobe Reader page.
    I also tried my script with several different event types, including "Change", and "Validate", it behaves the same way. But when I tried it with the event type "MouseExit", no empty Adobe reader page is shown up at all (of course, this is not the right event type for me)
    The environment is ECC 5.0, MSS business package for ECC 5.0, SAP Portal 7.0 (NW 2004s), Adobe LiveCycle 7.1
    Has anyone experienced this? I'd really appreciate any comments and suggestions. Thanks in advance.
    Best regards,
    Harrison

    Antony,
    The Adobe Reader version is 8.1.1
    Just wondering if you used messageBox in interactive forms with ISR framework, and it worked well for you?
    Thanks.
    Harrison

  • Adobe forms - No scroll bar for Display only fields

    I am using adobe forms for SAP Enterprise Portal. i am using these in Worklfows. In the form there is a text field with no size limit and Allows Multiple Lines. Any amount of text is allowed to be entered. when the form is viewed by the next person, the script in the form make the field as read only. This is as expected.
    Problem: If there are multiple lines the scroll bar does not appear for the field. Entire content is not visible. Printout of the form prints the entire text from the field. In edit mode the scroll bar is displayed!!
    Adobe Reader version - 7.0.9
    OS - XP SP2

    Hi Sumant,
    I am facing same issue. Any solution ?
    Thanks & Regards,
    Tushar Trivedi.

  • Scripting Question for Remote & Command list

    There must be some info on the commands / functions allowed for DVDSP scripting. For instance, how does one know ran = random. div = divide. Can you please point me in that direction. Note: already looked at the 2 tutorial sites suggested and the book authors mentioned, and while those were helpful looking for a comprehensive list, or at least some list like so many of my other programming books contain.
    More advanced question: Does anyone know the scripting conversion for the remote control. For example
    if remote = play jump end....
    or
    if controller = next jump start...
    Not sure what the code would look like, but it must be fairly simple, and someone must know the answer:)
    Thanks!!!

    No probs. If you're more specific we could maybe help more. I mean you could write a script and then make the button target that script, or make all buttons target a script and make decisions based on which button was pressed... but there isn't always much point cause you dont have the interactivity level you do with Flash/Director,
    -jake
    P.S Thanks for coming back to the thread. To help the new system, when you feel the question has been answered can you mark it answered/helpful etc, cheers.

  • 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!

  • Use of ADOBE form with SAP workflow for R/3 4.6C

    Hi All,
    We are thinking of usage of ADOBE form feature as one of options to design workflow for creation and maintenance of “Info record” like “Material Master” creation. BTW the existing systems are EP 7.0 with the back end SAP ERP system 4.6 C
    We would like to just check the feasibility of usage of ADOBE interactive form for above scenario. Would it be possible to go ahead with the above concept or what would be pre-requisites or risks involved?
    1.     How would system identify the role to direct the Adobe form for approval in case the form is raised by multi department?
    2.     How can the data validations in ADOBE form happen with reference to SAP std. tables?
    An early reply would be appreciated.
    Rgds,

    Hi,
    If you use EP 70 you can used guided procedure for your requirement .
    Regards

  • Create Adobe Form using Design Time for Processes and Forms

    Hi all,
    I am trying to create a form that have 3 fields:
    1. pernr
    2. ename
    3. effective_date
    I done all the necessary setup of BADI ,class, interface and form.
    I need the step to step guide where you create the adobe form using the Design Time for Processes and Forms. Anyone have any idea?
    Edited by: Siong Chao on Jan 3, 2011 4:54 AM
    Edited by: Siong Chao on Jan 3, 2011 5:00 AM

    Hi,
    I couldn't get to your query..
    What do you mean by step by step procedure for a design time & process for forms.
    if you are a beginner and looking for basic examples to implement adobe forms there are lot of them in SDN, please search them.
    let me know if your query was a very specific one.
    Cheers,
    Sai

  • Adobe Forms - Code Initialization question in ABAP

    Hi All,
    How do you access an adobe form parameter in the code Initialization section that is passed in the adobe form function call.
    I need to retrieve one of the parameters to modify one of my Global Definitions.
    Any help would be appreciated.
    Thanks.

    Maybe I need to refine my question a bit since it has not been answered.
    When the following is called.  Can I refer to the parameter CUSTOMER in the 'Code Initialization' section of the form interface?  Are these parameters global in scope?
    Thank you,
      CALL FUNCTION FM_NAME
        EXPORTING
          /1BCDWB/DOCPARAMS        = FP_DOCPARAMS
          CUSTOMER                 = CUSTOMER
          BOOKINGS                 = BOOKINGS
          CONNECTIONS              = CONNECTIONS
       IMPORTING
        /1BCDWB/FORMOUTPUT       =
        EXCEPTIONS
          USAGE_ERROR           = 1
          SYSTEM_ERROR          = 2
          INTERNAL_ERROR           = 3.

  • Scripting configuration for Dynamic Controls

    I would like to put the configuration of Dynamic Controls (Process/Service Controls' selector values, URI, etc.) in a script to invoke from a command line. Any suggestions?

    Are you want to run this script at development time before deploying or what do you want to achieve? Upcoming SP4 will offer a solution to retrieve config parameters for certain controls dynamically at runtime (and change it on the fly).
    -Kai

  • How to save Adobe form to scripted, specified location

    After the adobe form is filled, I would like to develop a "save" button that predetermines where the file is to be stored and what the name is (based on a field that is filled in + a date.
    If there is anyone that can point me to the right direction, that would be great!!

    Here are two recent threads that should help:
    http://forums.adobe.com/thread/789265
    http://forums.adobe.com/thread/794109

  • Adobe Form FaormCalc Scripting .....

    Hello all,
             I am Creating <b>AdobeForms In ISR In transaction SFP</b>. As per my knowledge Any FlowLogic Related to that form is Written in the Predefined BADI's , we just need to implement them. <b>My Question is If we can write flow logic in BADI why do we require to use scripting language FormCalc/Javascript ?? What is the significance ??</b>
    Can anyone has some <b>Documents related to script FormCalc</b> ,Pls send me some docs which gives idea ??
    Awaiting reply!
    Thanks,
    Smita

    You can get tit from Adobe web site..
    Thanks,

  • Scripting help for image pop-up within a PDF

    Hi,
    I'm creating some sample eBooks in Acrobat Professional 9 (Mac), and I am stuck on one element that needs to be present. In the text within the PDF, there might be a phrase like, "See Fig. 1". Fig. 1 might not be on that page, however. I know how to create a link in a PDF that will navigate the reader to the page with the image referenced, but that's not good enough. I'd like to have this happen:
    User clicks on "See Fig. 1".
    Popup window appears with the referenced thumbnail image.
    The image's popup window will stay on-screen until dismissed by the user.
    Clicking on the popup thumbnail image calls up a full-size image.
    The added wrinkles are many after we figure out the scripting for the above, but here are two major ones to be addressed right away:
    1) The images are already part of the typeset document converted to PDF, so I am guessing the images would have to be bundled with the PDF somehow. Our users need to use the PDFs in an offline environment, so a call-out to a URL is out of the question.
    2) The PDFs will be read on Macs, PCs, and possibly iPads. If a bundled, local file is called out when a user clicks on "See Fig. 1", how do I set a relative filepath in the call-out?
    Thanks for any help you can provide.
    Andrew

    Here's a sample document that demonstrates some of what you're asking about: https://acrobat.com/#d=aP-2xL45pM57xVkT6d6fSg
    The images are stored in buttons, so there is no concern about having to use external images. Note that this may not work on an iPad since most (all?) PDF viewers on the iPad do not have JavaScript support.

Maybe you are looking for

  • White screen on default settings and no internet please help:(

    Hey guys, I was wondering if anyone can help me with my daughters phone I cant seem to get it to access the internet it says unable to connect to the internet please try again later! however its connected to my home hub at the moment i have checked i

  • Where can I find human help 1-800 / Downloads don't work!

    After the initial firefox download none of the downloads have ever worked. All help options never quite fit and tech. Support never replies. I am not a computer and I require a human to communicate with. Arrogant from foxfire best describes this . Wh

  • MacBook Pro not getting me to web or email...

    Macbook works fine. Macbook Pro is "connected" to my wireless network, but I cannot get to web or run email. Apple specialists tried and finally suggested I take it to an Apple store. Any ideas? Thanks.

  • Urgent Save as button in BI Web application designer

    Hi All, I have a requirement where I am using button group web item for SAP standard command "Call Save DialogSave_as". In my clientsite I have web application with two tabs and more than two tabs. For web applications with two tabs save as button on

  • Strange lines using healing brush/clone brush.

    This happens to me all the time using the healing brush or cloning tool. I allready turned gpu accelleration off but it still exists! Also updated graphics card drivers. No go. It exists on both machines, using different graphics cards and different