New form and the code for it..!!!???

I have created an outlay in forms6i....with the following fields.
Site name,site id, stc no,MC,district,region
in this form i have variouss check boxes which are around 15 i.eSDH-MX,DW-DM,SYNC
and i have got four buttons in this forms like first record,previous record,next record,last record......
So,when i click first record i want the first record to be displayed, and the same for other 3 buttons also....
can any1 help me out how shud i proceed with this......i mean what code shud u write for this 4 buttons to work...!!!!

It seems like this is your first fmb.. :)
After Creating the datablock for the required table,
take the property pallete and ensure the fol. properties
Database Data block: Yes
Query Allowed : Yes
Query Data Source Type : Table
Query Data Source Name : List_of_sites
Insert Allowed : Yes
Update Allowed : Yes
DML Data Target Type : Table
If all the above properties are set, you will be abe to do DML operations ..
I hope after saving , you might have got a message in the status bar
saying Transaction complete: 2 records applied and saved.

Similar Messages

  • I am trying to migrate from macbook to a new imac and the looking for source keeps spinning

    I am trying to migrate from macbook to a new imac and the looking for source keeps spinning

    The warranty entitles you to complimentary phone support for the first 90 days of ownership.

  • I bought a new iMac and the apps for iWork aren't free for me when they should be, help?

    I recently bought a new iMac this December. I thought Pages, Keynote, and Numbers are suppose to be free with the computer but it says I have to pay for them. is there any idea how to fix this issue?

    You need to apply for the up to date program.

  • Problem in fetching the code for the line item

    Hi,
    I am working on a report in which to display the values corresponding to the line item of a PO.
    For, ex, if there are 3 line items 10,140,150 and their condition values such zing,zgrd,zbrd are the condition types consist of different values depending on the line item i.e. 10,140,150.
    My problem is when i execute the code the data of 1st line item is correctly fetched but the rest 2 line item data is pasted as it is. only the main pricre changes and the code for zing,zbrd,zgrd remains same as it is in the first line item 10.
    plzz proivde me guide lines how to solve this problem.
    Here's d code:-
    DATA : vspl LIKE konv-kbetr.
    DATA : vspl1 LIKE konv-kbetr.
    DATA : vkwert LIKE konv-kwert.
    DATA: VSPL2 LIKE KONV-kbetr.    "ZING COST
    DATA: VSPL3 LIKE KONV-kbetr.    "ZGRD COST
    DATA: VSPL4 LIKE KONV-kbetr.    "ZBDL COST
    LOOP AT item.
        SELECT kbetr FROM konv INTO item-rate  WHERE knumv = header-knumv AND kposn = item-ebelp
         AND ( kschl = 'ZP00' OR kschl = 'P001' OR kschl = 'PBXX' OR kschl = 'P000' OR kschl = 'PB00' OR kschl = 'ZING' OR kschl = 'ZBRD' OR kschl = 'ZGRD').
          MODIFY item.
       ENDSELECT.
      ENDLOOP.
      LOOP AT item.
        SELECT kwert FROM konv INTO vkwert  WHERE knumv = header-knumv AND kposn = item-ebelp
        AND ( kschl = 'ZP00' OR kschl = 'P001' OR kschl = 'PBXX' OR kschl = 'P000' OR kschl = 'PB00' OR kschl = 'ZING' OR kschl = 'ZBRD' OR kschl = 'ZGRD').
        ENDSELECT.
      ENDLOOP.
    CLEAR : vspl , vspl1 , vspl2 , vspl3 , vspl4.
      LOOP AT item.
        SELECT kbetr FROM konv INTO vspl  WHERE knumv = header-knumv AND kposn = item-ebelp  
       AND  kschl = 'ZCOM'.
        ENDSELECT.
        SELECT kbetr FROM konv INTO vspl1 WHERE knumv = header-knumv AND kposn = item-ebelp
        AND  kschl = 'ZBR1'.
        ENDSELECT.
    *******************Begin - new code added on 14.01.2009******************
        SELECT kbetr FROM konv INTO vspl2 WHERE knumv = header-knumv AND kposn = item-ebelp
        AND  kschl = 'ZING'.
        ENDSELECT.
       SELECT kbetr FROM konv INTO vspl3 WHERE knumv = header-knumv AND kposn = item-ebelp
       AND  kschl = 'ZGRD'.
        ENDSELECT.
       SELECT kbetr FROM konv INTO vspl4 WHERE knumv = header-knumv AND kposn = item-ebelp
       AND  kschl = 'ZBRL'.
       ENDSELECT.
    *******************End - new code added on 14.01.2009******************
      ENDLOOP.
      LOOP AT item.
        item-rate  = item-rate + vspl + vspl1.
    *******************Begin - new code added on 14.01.2009******************
        item-rate1 = item-rate1 + vspl2.
        item-rate2 = item-rate2 + vspl3.
        item-rate3 = item-rate3 + vspl4.
    ********************End - new code added on 14.01.2009*******************
        MODIFY item INDEX sy-tabix TRANSPORTING rate.
    *******************Begin -11`` new code added on 14.01.2009******************
        MODIFY item INDEX sy-tabix TRANSPORTING rate1.
        MODIFY item INDEX sy-tabix TRANSPORTING rate2.
        MODIFY item INDEX sy-tabix TRANSPORTING rate3.
    *********************End - new code added on 14.01.2009******************
      ENDLOOP.
    PLZ PROIVDE ME GUIDLINES HOW TO SOLVE THIS PROBLEM .
    Edited by: ricx .s on Jan 19, 2009 10:16 AM
    Edited by: Vijay Babu Dudla on Jan 19, 2009 5:22 AM

    Hello,
    Why are you looping at the same internal table so many times, you could probably perform everything within one loop instead.
    DATA : vspl LIKE konv-kbetr.
    DATA : vspl1 LIKE konv-kbetr.
    DATA : vkwert LIKE konv-kwert.
    DATA: VSPL2 LIKE KONV-kbetr. "ZING COST
    DATA: VSPL3 LIKE KONV-kbetr. "ZGRD COST
    DATA: VSPL4 LIKE KONV-kbetr. "ZBDL COST
    field-symbols <fs>.
    LOOP AT item assigning <fs>.
    SELECT kbetr FROM konv INTO <fs>-rate WHERE knumv = header-knumv AND kposn = item-ebelp
    AND ( kschl = 'ZP00' OR kschl = 'P001' OR kschl = 'PBXX' OR kschl = 'P000' OR kschl = 'PB00' OR kschl = 'ZING' OR kschl = 'ZBRD' OR kschl = 'ZGRD').
    MODIFY item.
    ENDSELECT.
    SELECT kwert FROM konv INTO vkwert WHERE knumv = header-knumv AND kposn = item-ebelp
    AND ( kschl = 'ZP00' OR kschl = 'P001' OR kschl = 'PBXX' OR kschl = 'P000' OR kschl = 'PB00' OR kschl = 'ZING' OR kschl = 'ZBRD' OR kschl = 'ZGRD').
    ENDSELECT.
    ENDLOOP.
    CLEAR : vspl , vspl1 , vspl2 , vspl3 , vspl4.
    SELECT kbetr FROM konv INTO vspl WHERE knumv = header-knumv AND kposn = item-ebelp
    AND kschl = 'ZCOM'.
    ENDSELECT.
    SELECT kbetr FROM konv INTO vspl1 WHERE knumv = header-knumv AND kposn = item-ebelp
    AND kschl = 'ZBR1'.
    ENDSELECT.
    *******************Begin - new code added on 14.01.2009******************
    SELECT kbetr FROM konv INTO vspl2 WHERE knumv = header-knumv AND kposn = item-ebelp
    AND kschl = 'ZING'.
    ENDSELECT.
    SELECT kbetr FROM konv INTO vspl3 WHERE knumv = header-knumv AND kposn = item-ebelp
    AND kschl = 'ZGRD'.
    ENDSELECT.
    SELECT kbetr FROM konv INTO vspl4 WHERE knumv = header-knumv AND kposn = item-ebelp
    AND kschl = 'ZBRL'.
    ENDSELECT.
    *******************End - new code added on 14.01.2009******************
    <fs>-rate = <fs>-rate + vspl + vspl1.
    *******************Begin - new code added on 14.01.2009******************
    <fs>-rate1 = item-rate1 + vspl2.
    <fs>-rate2 = item-rate2 + vspl3.
    <fs>-rate3 = item-rate3 + vspl4.
    ENDLOOP.
    Also, use field-symbols and use loop at itab assigning addition so that you can directly change the contents of the table without using modify statment.
    regards,
    Advait

  • Trying to load illustrator 6cs onto new mac and the old activation code for my ill cs doesn't work with it

    Trying to load a downloaded version of illustrator 6cs onto new mac and the old activation code for my illustrator cs doesn't work with it.  Do I need a new code or am I missing something?  Same goes for my Photoshop cs.

    you need your serial number.
    if you purchased from or registered with adobe check your account, https://www.adobe.com/account.html

  • Updating Infotype 0077 for the New Race and Ethnicity Codes

    Hi,
    I would like to ask for a help or any ideas on below case:
    There are new race and ethnicity codes required by the US EEO Law. I've already maintained them in table T505R. My problem now is on how infotype 0077 records of the employees will be updated showing the new race and ethnicity codes. Program RPURACU0 is use to update the records in infotype 0077. In this program, I first map the old ethnic origin to the new race and ethnicity codes. But after I've run and execute the program, infotype 0077 records of the employees still shows the old ethnic origin codes. It does not show the new race and ethnicity codes which should be based on the mapping I've done.
    Another problem is that in infotype 0077 in the field "Ethnic Origin", upon clicking on the drop down list, it shows all of the entries I've entered in table T505R. I think that ethnicity and race categories should be two different fields and thus, there should be another field for the race categories. May I know on how to add such field?
    To summarized, I need help in the following:
    -how to update infotype 0077 showing the new race and ethnicity codes
    - how to create field "Race" in infotype 0077 to display the new race categories
    Thanks in advance for your help!

    Mary,
    We have applied the relevant note, updated MP007700 (as below) and executed program RPURACU0 with the required mapping.  However, the Race field check boxes are not visible on IT0077 because as you can see the relevant field is not listed below.
    Module Pool          MP007700            Variable key    10
    Standard screen      2000                Feature
    Alternative screen   2010
    Next screen          2010
    001     P0077-RACKY     Ethnic origin
    002     P0077-MILSA     Military status
    003     P0077-ETHEN     Ethnicity
    004     P0077-SURVY     Survey answered
    005     P0077-DISAB     Disability
    006     FRAME_2     Veteran Status
    007     P0077-MEDIC     Benefit Indicator for Medicare
    008     P0077-DISDT     Date of Determination of Disabil
    009     P0077-DISLE     Date Employer Learned of Disabil
    011     P0077-EEOEX     EEO Exempt Indicator
    012     Q0077-VETS2     Veteran status
    013     Q0077-VETS3     Veteran status
    014     Q0077-VETS4     Veteran status
    015     Q0077-VETS5     Veteran status
    016     Q0077-VETS6     Veteran status
    017     Q0077-VETS7     Veteran status
    018     IT_ITAB-MARK                                    
    019     Q0077-VETS1     Veteran status
    021     FRAME_1     Additional Personal Data
    023     FRAME_3     Disability
    Thanks!
    Edited by: Victoria Nate on Sep 23, 2008 6:35 PM

  • HT2240 I purchase my QuickTime 7 Pro registration key via a friend in USA as it was not available to residents in South Africa. I now have a new iMac and the registration code doesn't want to activate PRO. It works fine on my MacBook Pro.

    I purchase my QuickTime 7 Pro registration key via a friend in USA as it was not available to residents in South Africa. I now have a new iMac and the registration code doesn't want to activate PRO. It works fine on my MacBook Pro. Do I have to buy a new registration code for my newiMac?

    i'm in SA and it say Apple Support not available at the moment or something like that.
    Just got the new iMac.
    Still using MacBook Pro.
    Files are on a external drive shared between these 2 mac platforms and I need to be able to
    edit in QT 7 Pro on both as well.
    The code was bought in August 2011.

  • I need the code for creating popup windows and code for open and close

    I can write the code for creating popup window , i am getting problem while trying to open and closing that popup windows.
    Can anybody help me in that pls ?
    Regards
    Sreeni.

    Hi
    For pop up window
    IWDWindowInfo windowInfo = (IWDWindowInfo)wdComponentAPI.getComponentInfo().findInWindows("PopWin");
    IWDWindow window = wdComponentAPI.getWindowManager().createModalWindow(windowInfo);
    window.setWindowPosition (300, 150);
    window.show();
    wdContext.currentYourNodeElement().setPopupAttribute(window);
    For closing window code
    IWDWindow window = wdContext.currentYourNodeElement().getPopupAttribute();
    window.hide();
    window.destroyInstance();
    For more infornation refer this link
    http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/20d2def3-f0ec-2a10-6b80-877a71eccb68&overridelayout=true
    This link is very useful for you.
    Regards
    Ruturaj
    Edited by: Ruturaj Inamdar on Aug 13, 2009 9:10 AM

  • I have 2 ipods,one for music and the other for old time radio shows.Each had their own file.My computer crashed and I had to buy a new one.Now both ipod files are merged into one.How do I seperate them.

    I have 2 ipods,one for music and the other for old time radio shows.Each had their own file.My computer crashed and I had to buy a new one.Now both ipod files are merged into one.How do I seperate them on the computer?

    Hi Craig
    Unfortunately, in your case, there isn't really a way to separate them as far as I can think.
    You could try restoring from a backup, and choosing an older backup perhaps
    Cheers

  • I just got the new itunes and I can open itunes and see my music but whenI try and go to the itunes store it just loads to a white page. I try and refresh and go to the home page and nothing happens. I can sign into my account and the tabs for the itunes

    I just got the new itunes and I can open itunes and see my music but whenI try and go to the itunes store it just loads to a white page. I try and refresh and go to the home page and nothing happens. I can sign into my account and the tabs for the itunes store pop up like they normally would when browsing the itunes store but when I click on one of them, it is a blank page. Is there a setting I need to change? Does it just take an extremely long time to load? Please help!!

    Bucktr09:
    I'm having the exact same problem.  I upgraded to the newest version of iTunes on my iMac and ever since I did the store is a blank white screen.  I can get my library content but the store is a no go.  Is there any one out there with a solution?

  • I'm trying to setup my new iphone and the Apple ID it asks for is my friends old Apple ID that she no longer has access to. How can I fix this?

    I'm trying to setup my new iphone and the Apple ID it asks for is my friends old Apple ID that she no longer has access to. How can I fix this so I can use my new phone? The first step asks for my iCloud info but then asks for my friends after I agree to the terms.

    The iPhone is new, has never been used. When asked if I want to set it up as a new phone, restore from an iTunes backup, or my iCloud backup I selected iCloud. It then askes for me to sign in with my Apple ID, I then agree to the terms, then it asks for me to sign into my friends Apple ID. She and I have used each other's computers in the past so I assume this is where her information is coming from. The problem is she no longer had that email or Apple ID and has no way of gaining access to it and therefor I am unable to proceed.
    I suppose my question is, how can I remove her information from mine so I can setup my new phone using iCloud. Also, I have already checked my Apple ID online and nowhere on my account is her information listed.

  • How can we write the code for opening the command prompt and closing the

    how can we write the code in java for opening the command prompt and closing the cmd prompt from eclipse (cmd prompt should close when click on the turminate button in eclipse)

    rakeshsikha wrote:
    how can we write the code for opening the command prompt and closing theBy typing in Eclipse (which you seemingly have)?

  • Streamlining the code for the button group with individual links and rollover imgs

    I am looking for a solution to streamline the code for the array of 20+  buttons located inside the scroll pane.
    I know I can make an array if all the buttons would have a unified code executable change, i.e. they would become larger and brighter.
    My problem is that each button represents an product image in the lights off stage, then of rollover it is a lights on stage so I have to import two images in the on and off stage and play around with the opacity.
    Additional problem is that each button has to ling to a different label.
    My question is: is it possible to unify the code if buttons have that much individuality or I have to make each one of them as in the example below.
    // makes a hand cursor appear over a mc acting as a button for all the buttons inside the scrollpnaeBckgrnd_mc.scrollpaneBckgrnd_btns_mc.
    MovieClip(mc_pane2.content).scrollpaneBckgrnd_mc.scrollpaneBckgrnd_btns_mc.buttonMode = true;
    MovieClip(mc_pane2.content).scrollpaneBckgrnd_mc.scrollpaneBckgrnd_btns_mc.useHandCursor = true;
    ///////////////INDIVIDUAL BUTTONS
              MovieClip(mc_pane2.content).scrollpaneBckgrnd_mc.scrollpaneBckgrnd_btns_mc.FloraLyte _btn.FloraLyte_ON.alpha = 0;
                        var  FloraLyte_btn_Tween:TweenLite = TweenLite.to(MovieClip(mc_pane2.content).scrollpaneBckgrnd_mc.scrollpaneBckgrnd_btns_mc.F loraLyte_btn.FloraLyte_ON, .5, {alpha:1, paused:true});
                        MovieClip(mc_pane2.content).scrollpaneBckgrnd_mc.scrollpaneBckgrnd_btns_mc.Flor aLyte_btn.addEventListener(MouseEvent.ROLL_OVER, overHandler_FloraLyte_btn);
                        MovieClip(mc_pane2.content).scrollpaneBckgrnd_mc.scrollpaneBckgrnd_btns_mc.Flor aLyte_btn.addEventListener(MouseEvent.ROLL_OUT, outHandler_FloraLyte_btn);
            MovieClip(mc_pane2.content).scrollpaneBckgrnd_mc.scrollpaneBckgrnd_btns_mc.FloraLyte_btn. addEventListener(MouseEvent.CLICK, onClick_floralytePopUp);
                      function onClick_floralytePopUp(event:MouseEvent) :void {
                                            gotoAndPlay("floralytepp");
    function overHandler_FloraLyte_btn(e:MouseEvent):void{
             FloraLyte_btn_Tween.play();
             trace("you rolled over me");
    function outHandler_FloraLyte_btn(e:MouseEvent):void{
             FloraLyte_btn_Tween.reverse();
             trace("you rolled off me");
    MovieClip(mc_pane2.content).scrollpaneBckgrnd_mc.scrollpaneBckgrnd_btns_mc.FloraLytell_btn .FloraLytell_ON.alpha = 0;
                        var  myTween:TweenLite = TweenLite.to(MovieClip(mc_pane2.content).scrollpaneBckgrnd_mc.scrollpaneBckgrnd_btns_mc.F loraLytell_btn.FloraLytell_ON, .5, {alpha:1, paused:true});
                        MovieClip(mc_pane2.content).scrollpaneBckgrnd_mc.scrollpaneBckgrnd_btns_mc.Flor aLytell_btn.addEventListener(MouseEvent.ROLL_OVER, overHandler);
                        MovieClip(mc_pane2.content).scrollpaneBckgrnd_mc.scrollpaneBckgrnd_btns_mc.Flor aLytell_btn.addEventListener(MouseEvent.ROLL_OUT, outHandler);
            MovieClip(mc_pane2.content).scrollpaneBckgrnd_mc.scrollpaneBckgrnd_btns_mc.FloraLytell_bt n.addEventListener(MouseEvent.CLICK, onClick_floralytellPopUp);
                      function onClick_floralytellPopUp(event:MouseEvent) :void {
                                            gotoAndPlay("floralyte2pp");
              function overHandler(e:MouseEvent):void{
             myTween.play();
             trace("you rolled over me");
              function outHandler(e:MouseEvent):void{
             myTween.reverse();
             trace("you rolled off me");

    as ned suggested, plan your flow and code into it. here is one example:
    var buttonArray = [someButton, someOtherButton, aDifferentButton];
    for(var i = 0; i < buttonArray.length; i++){
         //get reference to county movieclip
         var mc = buttonArray[i];
         //then add listeners
         mc.addEventListener(MouseEvent.ROLL_OVER, overMe);
    function overMe(e:MouseEvent){
         var mc = e.target;
         switch(mc){
              case: someButton:
                       someOtherButton:   doThis();
                                                     break;
              case: aDifferentButton:     doThat();
                                                     break;
              default:                            //do nothing;
                                                     break;
    function doThis(){
         trace("do this")
    function doThat(){
         trace("do that")

  • I lost my iphone in the water I bought a new one 4S now I have 2 back ups in Icloud, the one for the new Iphne and the old Iphone where I have the most info I need. How I can download my old backup?

    I lost my iphone in the water I bought a new one 4S now I have 2 back ups in Icloud, the one for the new Iphne and the old Iphone where I have the most info I need. How I can download my old backup?

    Welcome to the Apple community.
    You cannot download a backup from iCloud, the only way to access it is to restore to the backup with your new phone, which you should have done when you first connected it. If you restore now, you will lose all the new information you have added to your new phone.

  • Is it possible to add VAT (TAX) in the order form and discount codes ?

    Is it possible to add VAT (TAX) in the order form and discount codes ?

    would it be possible to do a caculation field then ? if I create a number field and add some kind of caculation rule, i've noticed that other form websites do this.

Maybe you are looking for

  • Bridge CS4. Tools not revealing whole menu

    I have installed and reinstalled CS4 bridge/photoshop several times but not all of the Tools menu options are showing up. As it stands, only these appear: Batch Rename Create Metadata Template Edit Metadata Template Append Metadata Replace Metadata C

  • Answer - Why won't my Vision M play videos on my

    This may be the most technically illiterate post you'll read! But here goes.... After spending hours reading through posts?trying to find the answer to that question, I found it!?I had ordered and received the?cord with the white, yellow and red cabl

  • Java Search Engine?

    Does anyone know whether it would be possible to write a web based search engine such as google in java? I don't want detailed information, but does anyone know what kind of equipment/software I would need, and the difficulty it poses. Any relevent U

  • How to get XML form.

    Hi All, Can anybody suggest me how to get XML file of System form. Means i want XML file of Sales order. Where i get it ? Thanks,

  • CSS3 Generator tool for generating css

    Hi, I found a new tool with code updated for IE9, CSS3 generator tool created in Flex, http://www.designscripting.com/webtools/css3/generator/ Tool to generate Gradient Box Shadow Multicolumn Transition Transform Border CSS3 background Outline