Which trigger would be required to populate a field based on another field

Hi all,
I have a tabular form which displays ID number once i execute a query
Now i want to display a name for that id and its from another table. is there a post trigger that can do that ?
thanks

Hi ammad,
its amazing how stupid i can be sometimes. i tried most of the post- ... but didnt even try the query. god its really nerve breaking.
Thanks ammad u r a real pro.

Similar Messages

  • How to Populate a listbox based on another listbox selection. Please help!

    Hi Experts,
         I have a requirement where I have two listboxs(dropdown list) in a selection screen. I have to populate the second listbox based on the selected item from the first listbox. How to do this?
    I have created a listbox in a selection screen using
    Parameters: p_soldto as listbox visible length 30 user-command chg,
                p_shipto as listbox visible length 30.
    Then I have tried to look at the value of item selected  from first listbox in AT SELECTION-SCREEN OUTPUT, But I am not getting any value of p_soldto.
    I think I am doing something wrong. I think I have to use some event handling like on selection of an item from listbox. But I don't see any such event handing in ABAP.
    Please give me some code example.
    Please help!
    Thanks
    Gopal

    HI,
    Check this program, it is using a list box and filling values into it at initilization event.
    <b>REPORT ztest2.
    TYPE-POOLS : vrm.
    tables: bkpf.
    DATA : values TYPE vrm_values.
    DATA : wa LIKE LINE OF values.
    PARAMETERS : list_box(10) TYPE c AS LISTBOX VISIBLE LENGTH 10.
    PARAMETERS: dd type bkpf-BSTAT user-command abc.
    select-options: a for bkpf-bukrs MODIF ID buk.
    select-options: b for bkpf-belnr MODIF ID SEL.
    at selection-screen output.
      If list_box = 2.
        loop at screen.
          if screen-group1 = 'SEL'.
            screen-input = 0.
            modify screen.
          endif.
        endloop.
      endif.
    INITIALIZATION.
      wa-key = '1'.
      wa-text = 'Orange'.
      APPEND wa TO values.
      wa-key = '2'.
      wa-text = 'Red'.
      APPEND wa TO values.
      wa-key = '3'.
      wa-text = 'Blue'.
      APPEND wa TO values.
      wa-key = '4'.
      wa-text = 'Gray'.
      APPEND wa TO values.
      CALL FUNCTION 'VRM_SET_VALUES'
           EXPORTING
                id              = 'LIST_BOX'
                values          = values
           EXCEPTIONS
                id_illegal_name = 1
                OTHERS          = 2.</b>
    Regards,

  • Populate 1 table based on another table

    I have a "VISITOR_TRACKER" application with the following 2 tables:
    VISITORS (table)
    VISITOR_ID (pk)
    F_NAME
    L_NAME
    VISITOR_DETAILS (table)
    V_DETAILS_ID (pk)
    V_TIME_IN
    V_DESTINATION
    I want to do the following:
    1. The visitor types in his/her last name in a search box.
    2. Everyone with that last name shows up in either a report or a drop-down select list. The visitor selects his/her name.
    3. A form "displays only" the name selected and has 2 text fields for the customer to enter their DESTINATION and TIME_IN and presses the submit button.
    How do I set this up? The problem I'm encountering is that if I create a form w/report off of the VISITORS table, I'm unable to populate the DESTINATION and TIME-IN because the F_NAME and L_NAME from the VISITORS table is already popluted - it is trying to populate twice.
    I tried basing the form w/report off of the VISITOR_DETAILS table but my report shows only the names that have any records in VISITOR_DETAILS. Also, the form shows the details of the VISITOR_DETAILS record that was selected.
    My report query looks like this:
    select "VISITOR_DETAILS"."V_DETAILS_ID" as "V_DETAILS_ID",
    "VISITOR_DETAILS"."VISITOR_ID_LU" as "VISITOR_ID_LU",
    "VISITORS"."F_NAME" || ' ' || "VISITORS"."L_NAME" as "NAME"
    from "VISITOR_DETAILS" "VISITOR_DETAILS",
    "VISITORS" "VISITORS"
    where "VISITOR_ID_LU" = "VISITOR_ID"
    I prefer to have a drop-down select list instead of a report if possible.
    Please help! I have been working HOURS on this?

    if you only want a duplicat of the structure and don't worry about constraints, indexes, triggers etc you could use something like this
    create table emp_dup as
    select * from emp
    where 1=0;Another more flexible way is to use the package DBMS_METADATA
    http://download-west.oracle.com/docs/cd/B10501_01/appdev.920/a96612/d_metada.htm#ARPLS026

  • Using JavaScript to auto populate a field based on numeric value of a separate drop down field

    Hello, I am trying to set up a simple, I hope, javascript which will enable to me auto populate one field based on the numberic value of another field using Acrobat Pro XI.
    Essentially I have 2 drop down fields (we'll call them DD1 and DD2).
    DD1 is the sum of 8 preceding drop down values. That sum can be anywhere from 0 - 40. Whatever that sum falls within a range which identifies a rating. The ratings and ranges are below:
    0-8: Non-Performer  
    9-16: Low Performer  
    17-24: Performer  
    25-32: High Performer  
    33-40: Exceptional Performer
    DD2 is where the rating ("non-performer", "low performer", etc.) will be captured. Instead of requiring the user to look at DD1, determine the value, and then identify and input the rating manually, I would like DD2 to auto populate the rating based on the value (sum) in DD1.
    For example, if DD1 shows a value of 27 then DD2 would auto populate "High Performer". So how do I write this code or execute this? In excel I would use an if, then statement. Is there something similar in Acrobat Pro XI.
    Any help is greatly appreciated. Thank you in advance.

    If you use a text field, the custom calculation script could be:
    // Custom calculation script for text field
    (function () {
        var s = getField("DD1").valueAsString;
        // Blank this field if input is blank
        if (!s) {
            event.value = "";
            return;
        // Convert string to number
        var v = +s;
        // Set this field's value based on the input
        if (v <= 40 && v >= 33) {
            event.value = "Exceptional Performer";
            return;
        if (v < 33 && v >= 25) {
            event.value = "High Performer";
            return;
        if (v < 25 && v >= 17) {
            event.value = "Performer";
            return;
        if (v < 17 && v >= 9) {
            event.value = "Low Performer";
            return;
        if (v < 9 && v >= 0) {
            event.value = "Non-Performer";
            return;
        // If none of the above fit, blank this field
        event.value = "";

  • Populate Value B based on Value A in Web UI

    Hi Friends,
    I have requirement to populate a field value based on other field value.
    I have a view and it consist 2 context nodes.
    When User enters the value in field A ( context node A ), we need to populate the field B ( Context node B ). But the main thing is that get property method of field B is triggering before then get property method of B.
    Kindly suggest how do we achive this.
    Regards,
    Narendra Goyal

    As mentioned before the DO_PREPARE_OUTPUT is a place that will work.
    A little bit more on the background:
    Do not code such stuff in the SET_ methods, as they will be called in the order of the data that is send to the server in the request. You noticed now that GET_A was called after GET_B, but it could change any time depending on the placement of fields on the view. Have a look at the DO_HANDLE_DATA for the FORM_FIELDS.
    An approach I like to take for more time consuming operations on field change:
    Create an event on context node CN1 and register the view controller to react on it. Then in the SET_A fire the event populating the new value as an input parameter.
    Now the handler in the view controller can set a global variable containing the passed value.
    In the DO_PREPARE_OUTPUT I can simply check if the global variable is set and directly work on it. Then clear it.
    It is more work then the method described before, which is really fine and I have used it lots of times. The advantage is that you do less access for fetching the value from the context node every roundtrip.
    cheers Carsten

  • Can Word 2010 populate fillable fields in a pdf fillable form?

    Is it possible to define fillable fields in a word 2010 document (name, address, city, state, zip, date) so that after a save to pdf and [Page] add existing file, an existing pdf fillable form will auto-populate same named fields in the added pdf fillable form?

    Thanks, George!  In the form I am creating, I ask respondents to identify a number of organizations that they work with.  For example, I ask "Please list up to ten organizations" and then I provide ten text boxes for organizations 1-10.  I then ask a series of follow up questions (radio buttons, check boxes, and rating scales) about each organization.  I would like to auto-populate the fields of those follow up questions with the names of the organizations that the respondents had written.  Does that make sense?  Will this require JavaScript?  My hope is to avoid complicated scripts that may give respondents technical problems with the form.  Thanks again,
    Andy

  • Auto populate text fields with a trigger such as entering text into input fields in ADF

    Hello all,
    I am not able to auto populate text fields with a trigger such as entering text into input fields in ADF.
    I tried AdfFacesContext.getCurrentInstance().addPartialTarget(val); in the back end using setter method of input text field.
    its not working ..
    is there any way to achieve it
    Regards,
    Shakir

    Hi,
    Always mention your JDev version.
    The valueChangeListener would fire only when you set the autoSubmit property of the field to true. Can you elaborate your requirement? What do you mean by related data? Are you performing some sort of search?
    If you want to get the value you entered on the field, just set autoSubmit to true and get the new value from the valueChangeListener. If your requirement is something like as and when you type, do something, you need to check out this approach :https://blogs.oracle.com/groundside/entry/auto_reduce_search_sample
    -Arun

  • On iprocurement page..How to populate task field dependent on Project lov field value which Project type is "Capital Project Type"

    Hi,
    I have an requirement on Iprocurement page where in i have to populate task field as CAPL in case my project field contains the project which is of type 'Capital Project Type'.
    Please suggest how can we implement this.
    Thanks,
    Abhishek

    try these links:
    http://sharepoint.stackexchange.com/questions/103682/autopopulate-form-fields-based-on-selection-in-people-picker-column-using-javasc
    http://sharepoint.stackexchange.com/questions/80261/people-picker-not-getting-populated-in-the-sharepoint-site
    http://blogs.technet.com/b/anneste/archive/2011/11/02/how-to-create-an-infopath-form-to-auto-populate-data-in-sharepoint-2010.aspx

  • Which trigger is raised after saving the details entered  in the block

    Hi,
    I am creating a form which should allow user to create tables by providing tablename , columnname and columntype. For that , I have a temporary table named NEWTABLE with columns named TABLENAME , COLUMNNAME and COLUMNTYPE.
    Upon running the form, the user enters TABLENAME , COLUMNNAME and COLUMNTYPE . Which trigger gets fired after all those records are inserted into that table. I tried using POST-INSERT but it is firing after each and every record gets inserted into the database table.
    Could u suggest the trigger name or else could u suggest any alternate method to perform that task .

    Use the classic key-commit trigger.
    Write there the following:
    post; -- this does insert/update/delete for the records in the form's data block
    after which you should call a stored procedure that receives as params the column names and column types in pl/sql tabels, plus the table name for the table to be created and does:
    'execute immediate create table ...'
    Still, it's quite unusual to create DB objects from forms. What if you need to indicate the tablespace? And what about indexes? What if you need partitions?
    Normally tables are to be created by developers and/or DBAs, not just any user, and those would use different tools (not Forms!), the most simple being SQL*Plus.

  • I'm debating between a Macbook Air or a Macbook Pro which one would you suggest?

    I'm debating between a Macbook Air (MC965LL/A) or a Macbook Pro (MD313LL/A) which one would you suggest?
    I will be using this for college and taking it to class with me.  My biggest fear is that I may be too hard on the Air and damage it, but I like that it is lighter and looks cooler.  But which one do you believe is more logical and provides the best computer quality overall?

    This is an objective comparison,
    Meanwhile, we start from the price of their basic models, considering of course that could get discounts as a student in the Education Store. Required about 100 € more to buy an Air with the same screen size of this Pro and already, in some cases, may be enough to make your own choice.
    Assuming a score to score, we could say: Pro 1 - 0 Air
    Until recently, the beloved laptop for school purposes was the white MacBook.Orphaned "bianchino", now out of the list for some time now Apple, the Mac that is most on the economic front is approaching the Air 11 "(900 € on the edu store). Air 13 "display offers a native that could be called HiRes, identical resolution to that of Pro 15" base:
    Air 11 "(16:9) 1366 x 768 = 1,049,088 pixels
    Pro 13 "(16:10 format) 1280 x 800 = 1,024,000 pixels
    Air 13 "(16:10 format) 1440 x 900 = 1,296,000 pixels
    The comparison on the screens is not to be taken seriously. After all, is what we will see during every second of computer work.
    And so the challenge back in a tie: Pro 1 - Air 1
    For size and weight comparison is merciless. The Pro is a portable slim, well built and, after all, not too heavy. However, this aspect of the Air is unsurpassed. He created a new category of laptops is so small wonder. The weight is also almost halved with 1.3 kg against 2Kg. For those who are always on the go is a godsend for the university and also the difference in the shoulder is remarkable.
    We update our score: Pro 1 - Air 2
    The battery is offered in both cases with a duration of 7 hours. 2-Air Pro 3. Another aspect that is rather in favor of a tie on the graphics: Both models use the Intel HD Graphics 3000 with 384MB of DDR3 SDRAM condivisa.Pro 3 - Air 4.
    In academia, it may not feel quite the need for a Firewire port, but the fact remains that the Air does not have it.
    I guess that's the case to score another point: Pro 4 - 5 Air
    I scored a little more than necessary to have a complete line of Air, but for the purposes of this comparison we are interested in the value obtained from the Pro 13 'Air base and 13 "base. Both processors are dual core and, as you can see, the little guy gets along very well though with a slower clock. There is also a crucial aspect to consider: these data refer to the computing power but do not take into account the incredible speed-bump-up by SSD. Translated into monetary terms means that if the Pro 13 "is marginally faster when the CPU is under stress (such as video encoding) Air 13" is significantly more responsive in every area. By now you will present the advantages of SSD, as we talk about it constantly, and be assured that we are talking about really obvious differences in the everyday. The advantages obtained clearly outweigh the disadvantage resulting from a delay of a few seconds more in exporting an iMovie or a few seconds to compress a full-bodied zip file (which then increased the write speed scale in part). To assign a score in this area I find then a little 'in difficulty. From the viewpoint of the CPU Pro 13 "is slightly faster but we are sure you can assign an advantage when then every single operation, to start since, requires up to 8 times (the value is clearly approximate) of the time ' Air 11 "? I have no doubt to say that overall performance on the front of the Pro 13 "basis, as configured, is beaten hands down Air 13" base.
    I say then: Pro 4 - Air 6 (but wait ... is not over)
    Do you know where the above discussion decade? The MacBook Pro is much more expandable: add just € 77 and takes a 60GB OCZ Agility SATA3 that mounts in an instant. At that point, the bill draws on the opposite reactivity with SSD and the difference of the processor, though not so obvious, back to bite. It is also possible to realize different combinations. We have spoken of a disk of only 60GB in effect, but in the Pro can also be used as an adapter to enter the optibay the HDD of 320GB in place of the original SuperDrive. In this way we obtain the speed of the solid disc for the operating system and applications and the increased capacity of a traditional hard drive for archiving. Also, the RAM, which base is 4GB on both, on the Pro can be easily increased to 8GB. To want to do things right we should say that the added cost rises well and lose the initial assumption for which we have assigned a point to Pro for the greater economy.Furthermore, the comparison is based, only the basic models, however, the counter remains a valuable expandability, both now and in the future: if after some time you should decide to improve the performance of your Mac, is with the Aircan only change SSD (mSATA but those are expensive), while the Pro will have more flexibility.
    u point for the Pro: Pro 5 - 6 Air
    With the 2011 version of the MacBook Air has resumed the backlit keyboard, but still (and will) not have an Ethernet port, Superdrive and the infrared receiver. The absence of the reader / writer is a point against him, this is indisputable
    equal footing Pro 6 - Air 6. As Apple moves fast towards a future where this will no longer be necessary (see installation and operating system software via the web) can still be useful today. It must be said that with less than 30 € you take an external drive efficiently (review) but this still requires to carry around another "element". On a personal level each of us will be evaluated differently this absence, there are those who do not tolerate it and who has already got used to (in extreme cases supported by the Remote Disk feature) but it is still a lack of perspective in a single complete computer , at least at present.
    For this reason we say: Pro 7 - 6 Air
    pull the money (or better scores ) won the pro of a single point.
    i hope it can help you ti choose
    Francesco

  • Which trigger is best to validate list item

    Dear all,
    I have one form. Inthis form I have one list item named occupation_status.I have one text field called "Age".
    In the occupation_status property palette I set the "elements in the list" as follows
    List Elements:
    Professional
    Student
    Housewife
    Unemployed
    Not Applicable
    List Item value:
    P
    S
    H
    U
    NA
    My requirement comes here:
    User should allowed to select "Not Applicable" only if his age < 7
    If his age>7 then the list value "Not Applicable" in disable state.he sholud not allowed to select that value.
    where sholud i do the changes? Which trigger is best to do this validation .
    Please help me
    thanks and regards,
    SB

    Hi,
    IF :age > 7 THEN
    :LIST_ITEM_NAME := NULL;
    END IF;if we assign :list_item_name:=null then it may diasbale all the elements in the list item.I want disable only one element- "not applicable" if age>7.
    what can i do?
    thanks and regards,
    SB

  • I have a budget of $2,200 and I don't know what to buy; The MacBook Pro 15 inch for $2,199 or the MacBook Pro w/ Retina Display for $2,199. I LOVE playing games but I don't know which one would play games faster.Take note that I wont upgrade anything.

    The MBP w/ Retina Display is 2.3GHz but the other without Retina Display is 2.6GHz. So I don't know which one would play games absolutely flawlessly. I wont have the screen resolution so high on the games though. So can someone reply and tell me which one I should get and why?

    Mac's are generally not 3D gaming computers and laptops especially are not because 3D games require a upgraded video card to take advantage of newer games and more feature rich updates.
    Only the Mac Pro can one change the video card, if one can find a upgrade for it.
    If you really love 3D gaming, a Windows 7 3D gaming tower is your machine.
    http://www.cbscores.com/index.php?sort=ogl&order=desc
    3D gaming on a Mac is sort of a second hobby, it's rather short lived as one can't replace the video card once a year, only with a new machine purchase.
    Most 3D games are for Windows anyway and Apple almost demands OS X be upgraded to newer verisons annually now, so that sort of throws a monkey wrench into a Mac gaming rig with software upgrades and all. On the other hand Windows 7 is supported for a decade.
    Mac's just don't work well with 3D gaming, perhaps a Win 7 tower and a iPad or something.

  • In which steps would you implement SCM APO?

    A company want to use the APO applications DP, SNP, PP/DS and GATP in the future.
    In which sequence would you implement these applications?
    Thanks for feedback.

    Hi,
    There is no written down procedure for implementing any of the modules it depends on the business requirement
    and the maturity levels of the Organization in handling SAP APO.
    If organization is already on SAP ECC system the best thing to do is GO Live with all the models since then the
    requirment gathering exercise and Blue Printing Exercise can be done in one shot and integration of each modules can be also done in one shot, this means that it reduces the efforts. However understanding of the APO system for the Business is a must
    so that right fuctionalities can be selected in each modules to meet the business requirments.
    Thanks,
    Harsh

  • Which trigger

    Hi all
    i have one database block
    that has 3 database items and one nondatabase listitem
    if i fill the listitem in post query trigger every thing is Ok,
    but i don't want to use post query trigger,
    so i fill the listitem in when-new-record-instance trigger.
    my problem is that for first time that i navigate on the record my listitem is correct
    but if i press key_up trigger my listitem doesn't change.
    i have to put my code for fill listitem in 3 triggers:
    when-new-record-instance,key-up,key-down
    now my question is :
    which trigger is the best one for my purpose ?
    any idea would be appreciate.

    don't try those triggers. Use only the POST-QUERY-Trigger for your question.
    All other triggers have side-effects to mouse-navigation, hotkeys, ...
    or use a View, which has the correct data directly in it.
    Gerd

  • Which Imac would be better for gaming?

    So i've got a choice between these two models -
    £1329.60
    3.1GHz Quad-core Intel Core i7, Turbo Boost up to 3.9GHz
    TB Serial ATA Drive @ 5400 rpm
    8gb Ram
    NVIDIA GeForce GT 750M 1GB GDDR5
    Apple care
    27 inch model
    3.2GHz quad-core Intel Core i5
    Turbo Boost up to 3.6GHz
    8GB (two 4GB) memory
    1TB hard drive1
    NVIDIA GeForce GT 755M with 1GB video memory
    Apple care
    £1407.60
    Basically, the decision is down to, do I want a slightly better graphics card and bigger screen, or a smaller screen and better processer?
    I just want to gauge opinions, i'll be using it as my day to day computer as well, some video editing, but nothing too strenuous. How big is the difference in graphic and processing powers.
    Thanks for your help

    With all due respect the question was "which iMac would be better for gaming?".  Key word here is 'better', not 'perfect', not 'ideal'; just 'better'. Unqualified answers and/or sweeping statements do very little to contribute to a discussion, let alone answer the question under consideration.

Maybe you are looking for

  • CS6 and Flash Player - ?

    I created an SWF with FlashCS6. Although the Flash Player for my browsers (Chrome, Safari) is current, Chrome asks for an upgrade to Flash Player 11.4, then reports a download error. Safari doesn't show anything at all. Any suggestions?

  • Hiding the mouse on two screens

    I have a FLEX project that I export to AIR. It has two separate windows that talk to each other, located on different screens. I dynamically resize the windows (setting them to fullScreen after moving them to the needed screen). After, I call Mouse.h

  • How to watch videos

    I am new to Mac , I just purchased a new Mac book pro 13 with Retina display. Some websits and also youtube are telling me I need to download flash player. 1. is this safe? 2. is there another way to watch videos on my mac? I am just trying to keep f

  • Chinese language input

    Got new blackberry curve 9300 in UK, didn't have the Chinese language option, therefore, cannot view chinese contents or type chinese. Is there anyway to solve it?

  • How to use AutodiscoverURL

    anyone use this call... it belongs to the ExchangeService of the Exchange web Services API It is overloaded... first one has just email address the second version is email address and some sort of redirection call...??) I am trying to figure out how