Can a code in FormCalc Or JavaScript be reused

Hi,
Does somebody know if we can share / reuse  existing code like JavaScript Function or FormCalc between
different forms ?
Thanks !

Hi Oren,
We did something similar recently, using a Fragment Library on a shared drive. One of our fragments includes javascript and it works fine.
However, we only found how to use fragments as embedded, not referenced. Still that allows you to code once and easily pull the fragment into other forms. (Referenced would mean changes to the fragment in the library would show in all referencing forms. We don't know how to do that. If you figure it out please post!)
Let me know if you would like more details.
Hope this is helpful!
Margaret

Similar Messages

  • Help with respect to Formcalc r Javascript

    Hai Experts,
            Can someone help me with demo code using formcalc
             or javascript to append a new row on clicking enter on a field in a table.
      My requirement is : i have a table in my Adobe form as follows:
    <b>   Mat_no           Quantity              Plant.</b>
       when i create a adobe form and send it thru mail i able to see only one row in the table. if the user enters first row and presses enter one more should be inserted.
      can some one help me with some sample to achieve this?????
    Thanks and regards,
    Madhu

    Hi,
    You need to slightly tweak the logic here.
    Take another internal table and declare a field of type dbtable-field1.
    Now...
    TYPES: BEGIN OF t_tab3,
                   field1 TYPE dbtable-field1,
                 END OF t_tab3.
    DATA: itab3 TYPE STANDARD TABLE OF t_tab3,
               wa1 TYPE t_tab3.
    LOOP AT int_table_temp INTO wa.
    MOVE wa-field1 TO wa_wa1-field1.
    APPEND wa1 TO itab3.
    ENDLOOP.
    IF NOT itab3[] IS INITIAL. "This check is Mandatory
    select * from dbtable into table int_table_temp for all entries in
    itab3 where dbtable-field1 = itab3-field1.
    ENDIF.
    If your dbtable field has higher length, You can use the offset aswell but not the right way.
    WHERE dbtable+0(length) EQ comparision field.
    Thanks,
    Vinod.

  • How can we  use java variable in javascript code on JSP page?

    How can we use java variable in javascript code on JSP page?
    Pls help

    Think about it:
    JSP/Java is executed on the Server and produces HTML+JavaScript.
    Then that HTML+JavaScript is transfered to the client. The client now interpretes the HTML+JavaScript.
    Obviously there's no way to access a Java variable directly from JavaScript.
    What you can do, however, is write out some JavaScript that creates a JavaScript variable containing the value of your Java variable.

  • How can I access xml document from javascript whithin a JSP page

    how can I access xml document from javascript whithin a JSP page?
    I have a JSP that receives an XML document from a JavaBean, so I can access it within the entire JSP, but I need to access it from the javascript inside the JSP... and I have no idea how i can do this.
    Thanks in advance!

    The solution would only work on MS IE browsers, as other browsers do not support an XML DOM.
    It can be done, but you would be stuck with using the Microsoft broswer. If that is acceptable, I have some example code, and a book recommendation.

  • Can I use a inputHidden for javascript values that doesn't set the value?

    I have a hiddenInput field for each row in a datatable so I can restore default values to a date field with a javascript function. I am getting conversion errors because I don't have the right setters in the backing object - and I really don't want to put them there - but I don't want the tag to set the values! Is there any way to just set a hidden value somewhere for each row of a datatable but not have it try to set the value? Thanks in advance!

    I just realised that won't work because all the HTML tags will have the same name, whereas I need the dynamically generated suffix that a dataTable assigns to every element in the row i.e. '_id34', so I can reference the value in the javascript and compare it to entered values. Any more ideas? I am having huge memory problems when I'm submitting my form too, using up 2GB of mem and then dying! I'm not sure what's causing it, because it doesn't get as far as my action method code before it dies! It works for smaller tables but I need to be able to handle ~20 users with tables 4x the size I can process now without running out of memory :( Any help would be really really appreciated!!

  • Can I control an Applet via JavaScript?????????????

    Please Guys! Can I control an applet via JavaScript?
    How????????????
    Thanks
    Renato

    Great to see you back, bbritta! Problems with the
    reauthentication stuff?The reauthentication was just another annoyance. I was getting fed up with answering posts for a variety of reasons (mostly because I don't have the patience you seem to have).
    I got assigned to modify some old ColdFusion code. I thought it would be a nice change of pace having never done it before. Yick... Gak... I should have started over with JSP's, but the user insisted they wanted the old code modified. I have never seen so much cut and paste coding in my life. They actually got hold of the old developer and he was so proud of his code that I didn't have the heart to tell him what I thought of his efforts.
    Anyway, a couple of weeks ago, I ran into a problem with an applet I wrote about a year ago and wanted to search the bug database. I reauthenticated fairly easily, but found out nothing had changed.
    A couple of days ago, there was a post in advanced topics asking if the forums were any use. I saw Dana respond and I thought it might be a chance to discuss some of the problems I saw with the forum. I came back to see if there was any response, but it looks like there will never be any meaningful discussion between Sun & the members about the forums.
    I have tried for a couple of years to just post a link to a search page if the answer could be easily found by searching. It seemed like a better thing to do than just saying 'Do a search!' I'm not sure anybody gets it though.

  • Converting formcalc to javascript.

    Hi there,  I would like to know if i can convert an existing formcalc script to javascript and if so how can it be done?

    The only way I know is "manually", means you have to write the scripts by yourself in the desired language.

  • How can I code to play audio continuously from page to page in iBooks for reflow ePub

    Hi,
    I have tried and successfully completed the iBooks ambient soundtrack option in Fixed Layout ePub. It works fine.
    But while trying the same in Reflow ePub, it is not working in iPad iBooks. I have latest iBooks version and latest iOS version in my iPad.
    Please let me know how can I code to play audio continuously from page to page in iBooks for reflow ePub?
    Thanks,
    Sundaram

    As soon as the user turns to the next page, the audio stops.
    That's how it works in all cases.
    the book is a read aloud book.
    See the 'How-To Read Aloud' section in iBA Tips and Tricks 01

  • Is $99 sign up required before you can test code on a device (iphone/itouch

    Hi
    Is the $99 sign up required before you can test code on an iPhone/ Itouch device?
    I am just trying to compile a simple program and run it on the device, but I get a CodeSign error. Is Codesign something that can be done without signing up for $99, or is there a special code given during sign up to use unique to the developer? Just want to test code on a real device, not in the simulator. Seems a bit much to require me to pay a $99 fee to do so if I'm just writing stuff for myself at this point.

    Even after paying the $99 fee, I don't believe this provides for being able to install your own developed app on your iPhone - not via the simulator only, or does it?

  • Why do we use BADI (CRM_BWA_MFLOW) when we can write code in CMOD?

    Hello Gurus,
        I'm working on CRM, BW extraction. I made enhacement for Service Order Header DataSource and written code in MFLOW BADi. Its working good.
    Now my question is we can write code in CMOD user exit too for this enhcenement (am I right?).
    Then what is the difference? Which one should we have to do??? Any idea or documents? please respond....
    Thanks
    RKR
    Message was edited by:
            RKR M

    Hi,
    Go thru this link
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/biw/a-c/customer%20enhancements%20and%20userexits%20in%20bw%20-%20sap%20netweaver%20%20know-how%20network%20webinar.pdf
    Hope this helps you.
    PB

  • HT2736 Can a code for a particular app be purchased in lieu of purchasing a gift card or certificate?

    Can a code for a particular app be purchased in lieu of purchasing a gift card or certificate?

    Nevermind, it's just randomly worked.

  • HT5188 Nearly every time I buy a VPP app and download the spreadsheet there are multiple redemption codes that say that they are invalid!  HOW can a code I am getting directly from apple be invalid!!!!!!!!  Seems like your system has A LOT of flaws.

    Nearly every time I buy a VPP app and download the spreadsheet there are multiple redemption codes that say that they are invalid!  HOW can a code I am getting directly from apple be invalid!!!!!!!!  Seems like your system has A LOT of flaws.

    I have taken it back to the Apple store genius bar, but they say they don't see anything wrong. Well unless you use it all day and experience the problems when they happen, you wont see anything wrong. But there are lots wrong with it. But this would be the same store as I purchased the phone. And they backed up my old Iphone 4, but were not able to get anything to load back onto my new phone. So, I lost pretty much everything. But over time, some of my contacts have started showing up, although i am still missing over 800 of them.

  • Can we code to import MIME object(Image)  on bsp page

    hi
    can we code to import MIME object(Image)  on bsp page
    i have one bsp webpage like employee page , in which i have option to attach image so , i want that user attach image and image shuld be go in sap mime object.
    thanks

    Hi,
    save the image into ur system.
    Right click on object name->create->MIME object->import.
    Then select hte image which u want to import and save it.
    Then in the layout write code as
    <html>
    <img height="130" src="image.bmp ">
    </html>
    Regards,
    jaya

  • How can download Code Samples?

    how can download Code Samples? thanks

    Hi,
    u r asking about SDN Code samples download? then
      click on the downloads like and got to code sample - > webas
    https://www.sdn.sap.com/sdn/search.sdn?contenttype=url&content=/irj/servlet/prt/portal/prtroot/pcd!3aportal_content!2fSDN!2fiViews!2fWCM!2fcom.sap.sdn..wcm.search.search_adv_0%3FSearchVisible=false%26SelectedCustomProps=sdn_product(value=Web Application Server),resourcetype(value= sdn_code_sample)%26SearchPluginName=sdn_library
    Regards
    Kiran Sure

  • Can I code in EL expression on the page?

    Hi,
    I wonder to know can I code in EL expression on the page? e.g: There is an inputtext on the page, the value property is something like #{bindings.EmployeeId.inputValue}, and if this EL expression values 1, the value of this inputtext will be "The first person", otherwise as "Others". How can I achieve this?
    Thanx, best wishes!
    Eleven.Xu

    Please refer
    http://www.oracle.com/technology/products/jdev/collateral/papers/10g/jstl_el_adf/jstl_el_adf.html
    http://blogs.oracle.com/DavidGiammona/2008/11/expression_language_or.html

Maybe you are looking for

  • Download window is not working since update to 6.0?

    I updated firefox and now the downloads window no longer functions. It appears on downloading a file. The file downloads but the window no longer shows the progress or the file.

  • Continuous Re-authentications

    We are in the process of migrating from ACS 4.x to ACS 5.5. At our smaller branch offices we have Sonicwall TZ205/215 that act as a wireless AP. The SSID uses RADIUS to authenticate users. I've noticed that wireless clients at these sites are endless

  • Premiere CS3 vs After Effect CS3 !

    Ok friends hopping someone gives a detailed or a brief  feedback on this ! I used to use Sony Vegas, but later on i discovered that Adobe Premiere CS3 was much better software, so i started to use Premiere CS3 few month ago and so far have been very

  • Rational Rose TopLink Integration

    I'm about to start a new project hosted on OAS and looking for Object-Relational Mapping Tools. I want to follow a Model Driven Architecture (MDA) methodology, using UML as the master definition of the persistent model. The questions I need to know a

  • Clock not working properly?

    My MacBook Pro 15'' (bought in about December 2010), running Snow Leopard - (OS X 10.6.8) doesn't seem to understand time correctly. I also had this problem on my old MacBook Pro 15'' (bought in about June 2009) running Leopard, and when I got the ne