Where to write code

Hi Experts,
    I am new to Adobe forms. I have created a form and I dont know where to write the code for assigning values to the fields. I just want to send a internal table via interface and i want to retrive internal table values and I want to assign it individually to the fields in the adobe form. Can tell where to go for source code editor.
Thanks and regards,
Venkat.

Hi Venkat,
There are two parts you need to do:
1) On the form design you need to specify a data binding for a form field. A data binding points to a node/several nodes of the data structure provided through the data view. So usually there is no scripting in the form for this purpose.
2) During runtime data has to be retrieved. This works different in different environments like FP or Web Dynpro and is usually ABAP code (Java for Web Dynpro Java).
You can find a lot of information if you go to the Interactive Forms section on SDN.
Regards,
Juergen

Similar Messages

  • Where to write code for i_step =0

    Hi,
    I have written code for variable i_step=0 in CMOD.
    I am not able to test the code.
    Could you pls tell us, how to test the code and when this code will be populated.
    Where do i need to set break point , to see the code execution in debugging.
    Thanks

    You will write the logic using CMOD transaction only.You can set the break point the cmod code itself to check your code is working fine or not.
    I_STEP = 0
    The enhancement is not called from the variable screen. The call can come from the authorization check or from the Monitor. This is where you want to put the mod for populating the authorization object.
    Check the sample code
    case i_vnam.
      WHEN 'ZGMGRANT'.  "Query field name
        if i_step = 0.
    BREAK-POINT
          clear wa_ETRANGE.
    *     Gets all grants a user is able to see from ZTable,
    *     which is populated elsewhere 
          select grant_nbr
            from ZGMUSERGRANTS
            into corresponding fields of table it_ZGMUSERGRANTS
           where UNAME eq sy-uname.
    *     Populate Authorisation Object. In i_step 0
    *     E_T_RANGE is used to populate the authorisation object
          loop at it_ZGMUSERGRANTS into wa_ZGMUSERGRANTS.
            wa_ETRANGE-sign = 'I'.
            wa_ETRANGE-opt = 'EQ'.
            CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
              EXPORTING
                INPUT         = wa_ZGMUSERGRANTS-grant_nbr
             IMPORTING
               OUTPUT        = wa_ZGMUSERGRANTS-grant_nbr.
            wa_ETRANGE-low  = wa_ZGMUSERGRANTS-grant_nbr.
            append wa_ETRANGE to E_T_RANGE.
          endloop.
        endif.
      ENDCASE.

  • I Want to make an app.. but i dont know how to write code or use Xcode... where I can begin?

    Hey!
         I just graduate from high school.. im gonna study Computer Enginnering. Im working for my family and they need an app that works like iBook. We have the eBooks and then they want me to do an app where they can sell the eBooks and read them. I have Xcode, but I dont know how to write codes or where to begin in all of this. I want to make the app first for iPad but if it can be for both iPad and iPhone better. I just want recommendation and help. Please and Thanks!! 

    hello i hope your having a good day but can you reply to me if you got the codes to make an app because i want to make an app too  thanks

  • Where to write default search message

    Hi guys
    I am searching a long to find where to write default search message on site search module.
    http://webmar.businesscatalyst.com/index
    When user click on the GO button next to the search box site search module must show a default message like your search box is empty, you search box is blank etc,.. but where do i wirte the default message in bc.
    Thanks
    Andy

    <input id="field" type="text" onfocus="if(this.value == 'Search ...') { this.value = ''; }" onblur="if(this.value == '') { this.value = 'Search ...'; }" value="Search ..." name="CAT_Search">
    Try this code where your search box is. you can see how that code works on my site at http://www.lawryk.com
    Message was edited by: Brad Lawryk

  • Where to write Database access logic

    I am new to Webdynpro. Could anyone please let me know where to write the code to access database. Is it right to write it in iview or component controller.

    Hi Sudhir
    Webdynpro works on MVC architecture .So there can be three approaches
    1) Create Java Bean Model
    Importing Complex JavaBean model into WebDynpro by creating relationships for the model classes
    WebDynpro: Importing Java Classes as model
    2)Can call create the database in the  Controller and view
    3) you can use a java file and copy the same in the wdproject>src->package--> java file and then access the java methods.
    Thanx
    Pankaj

  • Where's the *code* go?

    Just downloaded the 7.0.2.0 version of weblogic portal, went through
    their "Your first portal" pdf, and was wondering where the actual
    code goes.
    I'm coming from an IBM WebSphere background where I'm used to writing
    the doView(), doEdit() etc. methods in a class implementing
    PortletAdapter. The developer's guide (which I haven't read totally,
    yet), doesn't even seem to have any real java code in it.
    How do you write code for a portlet to, say, connect to a
    backend/datasource/etc. and Do Interesting Things (tm)?
    What I'm looking for more or less is some coding documentation. I did
    look at bea's e-docs site, but the pdf's there don't seem to be the
    ticket (or I missed one; entirely likely).
    Any direction welcome. A courtesy cc: to [email protected]
    would be most welcome too.
    Thanks

    BEA portal works totally different from WebSphere and Jetspeed.
    The rough equivalence of PortletAdapter in the BEA framework would
    be the "InputProcessor". Check out the BEA e-docs site for the
    Javadoc.
    However, to answer your more general question of "Do Interesting
    Things", you really need to look at both the code and the EBCC
    project of the sample portal that BEA provides you with. AFAIK
    there is not a "how-to" documentation or coding tutorial. Javadoc
    is available, but it's like trying to learn how to code Servlets
    by reading the Servlet Javadoc.
    If you are familiar with the struts framework, EBCC sort of
    defines the "forwards" from page-to-page/page-to-InputProcessor,
    and the InputProcessors are like the Action classes. The
    InputProcessor classes talk to your back-end, puts beans into
    the request/session, and the JSPs then use those beans to display
    in the portlet.
    Side point: I hope bea will have a way to migrate portals done
    in their proprietary API to the Portlet API once that gets approved
    ... though it's hard to see how it could be done.
    David Lu
    Senior Software Engineer
    eBuilt, Inc.
    Mike Campbell wrote:
    Just downloaded the 7.0.2.0 version of weblogic portal, went through
    their "Your first portal" pdf, and was wondering where the actual
    code goes.
    I'm coming from an IBM WebSphere background where I'm used to writing
    the doView(), doEdit() etc. methods in a class implementing
    PortletAdapter. The developer's guide (which I haven't read totally,
    yet), doesn't even seem to have any real java code in it.
    How do you write code for a portlet to, say, connect to a
    backend/datasource/etc. and Do Interesting Things (tm)?
    What I'm looking for more or less is some coding documentation. I did
    look at bea's e-docs site, but the pdf's there don't seem to be the
    ticket (or I missed one; entirely likely).
    Any direction welcome. A courtesy cc: to [email protected]
    would be most welcome too.
    Thanks

  • Where is source code for flex.util.SerializedTemplateFactory?

    This class is included (why?) in the mm-velocity-1.4.jar file. I'm trying to build the flexsdk entirely from source to meet packaging requirements.

    Steve Linabery <[email protected]> writes:<br /><br /> > Where is source code for flex.util.SerializedTemplateFactory?<br /><br />opensource/flex/sdk/trunk/modules/thirdparty/velocity/src/java/flex/util<br /><br /> > This class is included (why?) in the mm-velocity-1.4.jar file.<br /><br />It's a customization to Velocity to make our use of templates run<br />faster.<br /><br />-Paul

  • Any way to write code to cache the contents of the scripts menu? (or force ScriptsMenu plugin start)

    In the scripting forum I created the thread Adding custom scripts to actions revisited - Partial workaround
    Basically, you can create actions with keyboard shortcuts to execute custom javascript/vbscript, etc. and successfully reload them after restarting Illustrator but only if the user manually navigates to File->Scripts before manually loading an actions (.aia) file
    Any script menu items added to actions will be stripped from the custom actions when Illustrator is restarted because, I believe, the script menu items are not cached and are therefore invalid when the actions are automatically reloaded.
    Obviously, I'd prefer not requiring the user to navigate to the scripts menu and replace the actions every time Illustrator is started.
    Does anyone have any ideas on a way to write code so that Illustrator caches the contents of the scripts menu? Preferably this would be before the actions are loaded so they don't get invalidated and need to be reloaded in the first place. A keyboard macro would likely execute to late to be of much help.
    If anyone knows anything about the actual mechanism of caching the scripts menu or knows of anything else relevent to this please respond.
    Thanks!
    Edit: The menu is created in the Scripts Menu plugin (ScriptsMenu.aip). Perhaps there is no "cache" of the menu and the plugin just doesn't perform the startup until you browse to the File->Scripts menu?
    AIMenuGroups.h has the global definition of the group:
    #define kScriptsMenuGroup         "ScriptsMenuGroup"

    Have you looked at stored outlines ? They are for plan stability.
    Also you may want to look little deep on where your statistics are going wrong.
    I would recommend using below hint and checking where is difference in estimated(E-Rows) and actual number(A-rows) of rows. This may point out some incorrect stats.
    e.g.
    select /*+ gather_plan_statistics */ * from dual;
    D
    X
    select * from table(dbms_xplan.display_cursor(null,null,'ALLSTATS LAST'));
    Plan hash value: 272002086
    | Id | Operation | Name | Starts | E-Rows | A-Rows | A-Time | Buffers |
    | 1 | TABLE ACCESS FULL| DUAL | 1 | 1 | 1 |00:00:00.01 | 3 |
    ------------------------------------------------------------------------------------

  • How do I write code for a website that is viewed in different browsers?

    Hello.  My website looks fine when using the Firefox and Safari browsers.  But when I went to the library and viewed it using Internet Explorer, it looks bad.  It doesn't look the way I want it to.  Many of the elements are in different positions, etc.  I thought about how to correct this.  And I'm guessing that another html file can be created with another style sheet attached and designed just for Internet Explorer.  But then I thought about how the server would determine which file to use when the visitor types in the URL.  I have no idea how to do this.  I would greatly appreciate knowing how to write code that enables visitors, whether they use Firefox or Internet Explorer, to view my website that has the same style and elements in the correct positions on each webpage.   Thank you very much.

    You need to close your img tags (shown below in red).
    <img src="images/home_page/snowscene_web.jpg" />
    <img src="images/home_page/2011-1_201_p5_christians_nora_pixel2_2_web.jpg" />
    <img src="images/home_page/poster_final_web.jpg" />
    Your home page looks OK in IE8 & 9 but looks bad in Compatablity Mode (which is essentially IE7).  Try adding this META tag just below your <title> tags.  This will force older IE browser into IE8 or IE9 standards mode if it's available.  IE7 is pretty much obsolete now.
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    Nancy O.

  • Why I need a code for rent a film and where ist the code? (I dont have a card)

    Why I need a code for rent a film and where ist the code? (I dont have a card)

    it's unclear what you mean
    you say you dont have a card which I guess is you don't have a creditcard
    in which case the other option is to pay by a giftcard which include a code which you put in
    because to rent you have to pay otherwise it's not really renting

  • Write code for this its urgent

    hi its a alv bills of material report plz write code for this
    Develop a report to high light the bom and/or master receipes fall into the constrained planning horizon those are not ready for porduction
    this report will identity the items with a bom with a status other that 03(ready for production) and/or master receips witha a status other than 04(released). the items will be reveiwed in predefined horizon.
    within a few weeks of entering the 18 th week constrained planning horizon.
    for this report take bom tables stko,stpo,mast.
    in sel-scren take mrp controller, plant, divison.
    send immedialtly

    Brother this is not the correct way to ask.
    In your words you are commanding...
    But we have to request the EXPERTS.
    WE are in learning stage dont order or command.
    Just request them in another way...... then only u get the required reply....
    With regards,
    Prasad.

  • APEX_COLLECTION - where does the code go?

    I am trying to create my first APEX collection.
    Where does the code go?
    Do I create a region as a PL/SQL anonymous block?
    Please advise -
    Regards,
    Stan

    Hi,
    I think best is create page process where you create/populate collection
    Br,Jari

  • Multiple dispatch and Symmetric methods - Where Does That Code Live?

    Hi all.
    I am stuck with the above problem, which looks to be a very common and fundamental one. Supposing I have some sort of relation or operation to be performed on various different pairs (or n-tuples) of classes of object. Where does this code belong, given that it is not sole property of any one of the classes, but a kind of property of the collection of classes?
    An bad example for me to bring up, but one that neatly illustrates the point, is the equals method. In order to retain the symmetric and transitive properties of the equals method, and object can only make judgement calls about it being equal to another object of it's own type. This prevents the concept of equivalency from crossing between types.
    In order to compare a with b (if a and b are of different types), b must supply some sort of representation of itself as an a, then the comparison statement a.equals(b.asA()); must be called.
    This of course means b must supply an 'asXXX()' method for each class XXX it wishes to equate itself to. Furthermore, by an extension of the equals contract for symmetricality, the method AsB() in class A (if it exists) must be such that, if a.AsB() .equals (b), then b.AsA.equals( a ).
    This sort of design is unfeasible for obvious reasons, the main reason being that it is impossible to anticipate evey case where an instance of class A could reasonably be compared to an instance of some other class X.
    The other annoyance is all that hard work of providing methods to equate A with something else, would go unused for 99% of the time.
    With this in mind, I was thinking. Suppose in some program environment, we have only 3 classes, A, B, and C, such that:
    {A,B} can be meaningfully compared
    {B, C} and {A, C} cannot.
    It would be OK to supply code (somewhere) for comparing A's with B's. We also know that under no circumstances will an A or a B, and a C, ever need to be compared for equality.
    Supposing an extension of this environment were created, introducing class D.
    {D, A} and {D, B} can be meaningfully compared.
    Now, neither A nor C knows what a D is, or how to compare themselves to it. But D was developed with A, B and C in mind, and contains logic for the various comparisons (with A and with B). An obvious idea for this is to let D bring it's new code into play, by registering these new comparison functions in the environment somehow.
    Supposing instead that equality comparison was delegated to some third party, instead. This third party contains a table of pairs of classes, which act as keys to look up a comparison object.
    So, when class A is loaded, something of the sort happens:
    public class A {
        static {
            Equals.comparer.addEntry(A.class, B.class, new EqualsMethod() {
               // details of the EqualsMethod interface implementation go here
    public class B {
        static {
            // since equals is symmetric, this method clashes with the above in A
            // This could happen...
            Equals.comparer.addEntry(B.class, A.class, new EqualsMethod() {
               // ... different approach to the above
    public class D {
        static {
            Equals.comparer.addEntry(D.class, A.class, new EqualsMethod() {
            Equals.comparer.addEntry(D.class, B.class, new EqualsMethod() {
        } // Ds can now be compared with Bs and As. They can now be compared with Ds
    }There is a problem with the above. As can clearly be seen, there are 3 unique situations that might occur between two classes (call them X and Y).
    o One of X or Y contains code to compare them both.
    o Neither X nor Y contain code to compare the two. X equals Y is always false
    o Both X and Y contain code to compare the two.
    The third causes the problem. What if X and Y disagree on how to compare themselves? Which method gets chosen? The only solution would be to let whosever static initialiser gets called first be the one to supply the code.
    I said before that equals was a bad example to bring up. this is because the usage of equals and the concept of equality in java is already well defined, and works just fine. However, in my own pet project at the moment, I have run into the same problems as outlined above.
    I am currently assembling a generic pattern API for use in various other applications I am writing (I was finding that I was writing code for matching objects to patterns, in different guises, quite frequently, so I made the decision to refactor it into its own package). An important part of the API is the section that handles the logic for combining patterns, ie with AND, OR and NOT operations.
    The Pattern interface is this:
    interface Pattern<E> {
         public boolean match(E toMatch);
         public Pattern<E> not();
         public Pattern<E> or(Pattern<E> other);
         public Pattern<E> and(Pattern<E> other);
    }There are a few basic Patterns:
    TruePattern<E> - a pattern that always returns true no matter what E is passed for it toMatch
    FalsePattern<E> - self-explanatory.
    ExactValuePattern<E> - true if and only if the E that it is passed toMatch is .equal to the E that this pattern was constructed with.
    NotPattern<E> - a pattern that contains another pattern, and returns true for any E that returns does not match it's contained pattern. Used for when the contained pattern cannot be logically reduced to one pattern under the NOT method in the Pattern interface
    AndPattern<E> - a pattern that contains 2 other patterns, and returns true for some E iff both contained patterns return true for that E. Used for when the 2 patterns cannot be logically reduced into one pattern via the AND method in the Pattern interface
    OrPattern<E> - self explanatory
    RangePattern<E extends Comparable <E>> - a pattern for comparing if some Comparable lies between two other comparables.
    Every pattern has the opportunity to provide a reduction, when combined with another pattern through And or Or. For example, any pattern AND a FalsePattern can be reduced just the FalsePattern. any pattern OR a TruePattern can be reduced to just the TruePattern.
    The methods AND and OR from the Pattern interface present the same problems as the .equals() example I was using before.
    o AND and OR are symmetric operations
    o There exist situations where two patterns of unrelated class could be meaningfully combined (and reduced) under these two operations.
    Example: The pattern on Integers '0 < X < 3' and 'X is 5' can be reduce to the FalsePattern
    Example: The pattern on Doubles '0 < X <= 10' or 'X is 5.5' or 'X is 7.2' can be reduced to '0 < X <= 10'.
    Example: The pattern on Integers ('0 <= X <= 5' and 'X is not 0') or ('X is 6') or ('x is 7') can be reduced to '1<=X<=7'.
    So the question is, where does the code belong? a.and(b) should return the same as b.and(a), but both b and a may well disagree as to what happens when they are combined under and. At present, both a and b need to supply their own separate implementations. Clearly though, the code for combining patterns A and B belongs to neither A alone, not B alone, but to A and B as a whole.
    Thanks in advance, and sorry for this overlong post.

    So the equivalent thing in my scenario would be an
    AndAnator, and an OrAnator? :)
    The thing is, it would be nice for comparison between
    A and B to take place automatically, without the poor
    coder having to maintain a reference to a Comparator
    and invoke the comparison method each time. Likewise
    in my situation, it'd be nice to say A.or(B) instead
    of andAnator.and(A,B), yet have all the goodness of a
    third party doing the comparison (or in this case,
    the anding).
    I am going to go and test this all out, but do you
    have any suggestions on a good structure? I think it
    would involve pulling the and/or/not methods from the
    interface (this appeals, as many implementors may not
    wish to supply logic for running these methods
    anyhow), and then putting them... somewhere else.I didn't consider your speicifc problem very deeply because after such a long detailed explanation I figured you'd be up for kicking around the idea for a while.
    In your case, I see that you would want to be able to call the and and or methods on the Objects themselves. Luckily, in this case, I think you can have your cake and eat it too.
    You can make your and and or methods fa�ades to the third party 'referee'. This way you can enfore symmetry. It's difficult (if not impossible) to enoforce transitivity with this design but I think you don't even need that in this case. That is if a == b and b == c then a == c should be true but if a and b and b and c then a and c is not necessarily true. In your case, it may not even make sense.

  • Where are Cost Codes attached to a Project Number in Financials?

    Where are Cost Codes attached to a Project Number in Financials?
    Don't know where to start looking in the documentation..
    I need to know where I can add GL Cost Codes to a particular Project number for our testing of i-Expenses.
    anybody know?
    many thanks,
    Steven

    Well, not sure what you mean by "cost codes". Normally when I see that wording I think of work breakdowns within a project. I don't think of cost codes as being general ledger numbers. But maybe you are meaning to say general ledger number? I see "Project Number" though, which makes me think you are talking about project accounting. You set up your projects in project accounting and create what Oracle calls Tasks (I like to them of them as cost codes) that you can assign to your projects. So this would all be in Project Accounting. You may want to download the various user guides for Oracle Projects to start learning about this application. You must be running project accounting, correct? So maybe you need to find the person in your company who knows this application and start to get educated on it. There is a separate forum for Projects where this may be a better place to ask this question. You may need to provide more detail on what you are trying to do if you are not involved with project accounting.
    John Dickey

  • How to write code to insert record in database programtically in Jdev rel

    Hi Experts,
    Please tell me how to write code to insert record in database programtically in Jdev rel .2.
    Thanks
    Shiv Naresh

    To insert the record programmatically i will provide you some sample below
    ViewObject vo = this.getVoXXXX();
    Row vor = vo.getCurrentRow();  // get the current row of the record
    ViewObject vo1 = this.getvoYYYY();
    Row vor1 = vo1.createNewRow(); //creating new row in the table
    vor1.setAttribute("aaaaa",vor.getAttribute("ttttt")) // In this we are getting the current row value of "ttttt" and inserting into "aaaaa"Hope this could help you!

Maybe you are looking for

  • Acrobat Pro 9 freezes when trying to edit preferences

    I have Acrobat Pro 9.3.4 When I try to Edit-> Preferences, the application locks up.  It eventually goes to 'not responding" and I have to kill it using Task Manager. I found this problem when I was troubleshooting a customer's issue where he could n

  • Help needed to display my form,very urgent

    i have a Main.java to display my tabs, then a PlayerTab.java which contains all the buttons, Create, Update, Delete and View and a CreatePanel.java which contain the form for adding new members. The flow is like this when user click on the PlayerTab

  • Alternative to Adobe Pro for generating light-weight PDFs for Mac?

    Is anyone aware of a lower cost alternative to Adobe Acrobat Pro for generating light weight PDFs?

  • How to uninstall R12 instance

    Hi friends next week i have to decommission UAT2 instance please let me know steps to shut it down UAT2 instance, Thanks

  • XA Transactions Weblogic6.1-SQLServer

    Hello. I´m trying to start a XA UserTransaction from a session ejb (BMT), that involves two entities (each one to a different DB, and with transaction-type CMT Required). My server is Weblogic 6.1, and my driver is weblogic JDBC driver for MS SQLServ