How can I create a custom button for opening a form?

I have a parent form having child forms. In my main form I want to create custom buttons for opening child forms. I want to use master-detail form but there are more than one child forms, and in master-detail form I can only create one detail form. So I will create a form based on a table and in that form I will call the child forms by custom buttons. Can I do that?
Thanx,
Gulsah.

This can be easily done. First open up two instances of your Portal. In one window, you will need to go into your component you wish to link FROM. In the other window you will need to go into your component you wish to link TO. In the component you wish to link TO there will be a moduleid. Note this somewhere. Then, you will see an area that says: "Call Interface: Show". Click on this. (In the window you are linking to.). In this window, you will see a bunch of stuff. At the bottom you will see a URL call. This is the call you need to use. At the top, it explains each piece of the URL call. Just subsitute YOUR appropriate information into the URL call. In the form you wish to link FROM, create a button. Once you create this button, it will appear at the bottom, click on it and you will see an area to insert a Javascript. Click the onClick and insert:
//this is the variable you want to pass from one form to the other
get_field_name = getField(this.form,'COLUMN_NAME_IN_DATABASE');
//this is so you can open the "child" form
window.open('/pls/cc_prod/DAD_NAME.wwa_app_module.link?p_arg_names=_moduleid&p_arg_values=MOD_ID_HERE&p_arg_names=_sessionid&p_arg_values=&p_arg_names=COLUMN_NAME_IN_DATABASE&p_arg values='+GETFIELD_NAME+'&p_arg_names=_COLUMN_NAME_IN_DATABASE_cond&p_arg_values=%3D');
In the fourth tab, where it says, "....before displaying form" insert the following: (This will tell the form how to handle the getField function.)
htp.p('<script language="JavaScript1.3">
< !--
function getField(form,fieldName)
var objName = "";
var tmp = "";
var dAction = "";
var sel_idx = 0;
var cnt = 0;
var instance = 0;
var slicedName;
var fillData = new Array();
for (var i = 0; i < form.length; i++)
slicedName = form.elements.name.split(".");
tmp = slicedName[2];
instance = parseInt(slicedName[3],10);
if (!tmp)
continue;
objName = tmp;
if (objName == fieldName)
return form.elements[i].value;
//-->
</script>');
I hope this helps.
null

Similar Messages

  • How can I create a custom dock for all users?

    Hello,
    I would like to create a custom dock for everyone that uses a certain Mac. I have found a bunch of stuff, but it is outdated. Most of the tutorials are for 10.4 or 10.5. I am using 10.7.4 and I have found nothing regarding that. Can anyone point me in the right direction?
    Thanks in advance

    Hello,
    I am not sure how I wound-up in the server forum. I am using the desktop version of OS X 10.7.4.
    Thanks

  • How can we create a OCA button for Overview page?

    Hi Experts,
       Please help me with all the steps for creating an OCA button for Overview page. I have already tried it for table view in Viewset and it is working fine but how to do that in Overview page.
    Thanks and Regard,
    Pranoy Kumar

    Hi Pranoy,
    You need to redefine two methods of OVP view's _IMPL class and paste this code:
    METHOD if_bsp_wd_toolbar_callback~get_buttons.
      DATA:  ls_button    TYPE  crmt_thtmlb_button_ext.
    Ls_button-on_click = 'EDIT'.
         ls_button-type = cl_thtmlb_util=>gc_icon_edit.
         ls_button-page_id = me->component_id.
         ls_button-enabled = abap_true.
        APPEND ls_button TO rt_buttons.
      ENDMETHOD.                    "if_bsp_wd_toolbar_callbacku2014get_buttons
    method IF_BSP_WD_TOOLBAR_CALLBACK~GET_NUMBER_OF_VISIBLE_BUTTONS.
    *CALL METHOD SUPER->IF_BSP_WD_TOOLBAR_CALLBACK~GET_NUMBER_OF_VISIBLE_BUTTONS
    *  RECEIVING
        RV_RESULT = 6.
    endmethod.
    And write the event handler method for here in my case EDIT, or you can write depending on your requirement.
    Regards,
    Vishal.

  • How can I create a custom environment for the guest user in Mavericks?

    Hello Mavericks insiders
    I need to setup several new MacBooks running Mavericks for school use. We want to use guest because everything is reset at each login. However, I first need to permanently customise the environment for the guest user:
    - doing program first runs
    - adjusting printer settings
    - dock settings
    - wallpper
    I think I have to copy certain library files in the Terminal. Which files exactly? From where to where? What is the correct Terminal syntax to do so?
    Many thanks in advance!
    Morgy

    Hello,
    I am not sure how I wound-up in the server forum. I am using the desktop version of OS X 10.7.4.
    Thanks

  • How can i create a custom Audio Language name for video?

    I have create a dvd with menu and vidoe (Audio 1 is sing a song , and Audio 2 is only music)
    but i cant define" a audio name for andio that is mute,
    my question is How can i create a custom Audio Language name for video?"
    Anyone can help , thank you so much for reading !!

    Thanks Stan Jones,
    Anyone can tell me a soluation and some better show up method to present that the user is changing a audio track in correct name ...
    Or Encore can do a pop-up message to show the user's selection or not ?_? (i don't know)

  • How can we create such navigation buttons using Flash CS4?

    Hi,
    How can we create such navigation buttons using Flash CS4 is in the following website? Please help me with any such tutorial to make my custom navigation bar/buttons.
    http://city.reallusion.com/join.html
    Thanks.

    While the Note 4 is a reasonably large device it still falls into the phone layout bucket. We need this layout to function on very small screens some as low as 320 pixels high and 240 pixels wide. These sorts of devices don't have the space for a full toolbar.

  • How can i create a custom table in to my banking services server

    I am having product type and account type details for those things I need to create a table
    Product Id.                 Account Type
    DP_PYGO_P     21
    DP_BASIC     25
    DP_UNLIMIT     24
    DP_ADVANTG     17
    DP_SAV                     34
    DP_TBILL                     54
    DP_USDCHQ     19
    DP_FREEDOM     52
    For the above fields how can i create a custom table into banking services server

    Transaction SE11, maybe? I don't really see the problem, unless you have never created a transparant table before...

  • How can I create a custom sized video in PP cs6?

    How can I create a custom sized video in PP cs6? I have read references to the "desktop" setting but cannot find it. I am trying to find the right settings for a 1080 px x 486 px video (which I need to qualify for hi res on Vimeo).  I need to output a 450 x 1000 px video for
    my website. Ideally, I'd like the sequence settings as well as the output settings. I am using still shots- no actual video.

    What are the exact properties of the still images, particularly the pixel dimensions and pixel aspect ratio (PAR).* The letterboxing (black bars top & bottom) is most likely a result of a mismatch in these settings. If this is the case, then the easiest fix is to make sure not only the dimensions but the PAR match.
    Say for instance your source images are 1000x1000 with a PAR of 1.0 (square pixels) and your sequence is set also set to 1000x1000 but with the PAR set to D1/DV NTSC (0.9091), the result would be letterboxing as seen here:
    *if you're not sure about the PAR of your source images, right click on one of them in the Project panel and select Properties.

  • How can I create a custom field in contacts and have it appear in ICal?

    How can I create a custom field in contacts (death date) and have it appear in calendar?
    Birthdays seems to work fine but I'd like to do the same for a custom field called Date of Death

    By default, iTunes convert files to type AAC which has an extension of .m4a
    For iTunes to recognize them as Audiobook files, the extension needs to change from .m4a to .m4b
    This can be done a number of different ways. Here are 2 (beginner and advanced)
    . simply, by renaming each file from windows explorer
    . more complex, by using Start/Run/cmd to get a "DOS" type window,
    using the command "cd" to change to the directory that your files are in
    and entering "ren *.m4a *.m4b"

  • How can I create back up dvds for itunes and how do I back up from existing dvds?

    How can I create back up dvds for itunes and how do I back up from existing dvds?

    Recovery Mode:
    1. Turn off iPad
    2. Connect USB cable to computer; leave the other end alone
    3. Press and hold the Home button down and connect the docking end of cable to iPad
    4. Continue holding the Home button until you see the "Connect To iTune" screen
    5. Release the Home button
    6. Open iTune
    7. You should see "iTunes has detected an iPad in recovery mode"
    8. Use iTune to restore iPad
    Note: You need to be patient and repeat the above many times to recover your iPad

  • How can I create a Forms9i Runtime for client distribution

    Currently we have an application developed in Forms 5.0.6.8.0 our Database has been upgraded to 9i DB. The application is working fine with this combination but we want to upgrade Forms in order to get Oracle Support. We just get the Developer Suite 9i package and we're trying to test our application with this software.
    How can I create the client runtime for Forms 9i?
    My application will work with Win 95 and 98?
    Thanks.

    Oracle9i Forms is web-only. Forms 6i is the last release of Forms to have client/server and character mode.
    You can test Forms from the Builder by installing iDS. To deploy Forms using iAS follow the documentation. It's all there in the deployment guide.
    iAS and Forms doco can be found on OTN.
    Regards,
    Robin Zimmermann
    Forms Product Management

  • HT204053 how can i create multiple icloud accounts for my family members

    how can i create multiple icloud accounts for my family members

    Thanks...  I appreciate the reply.  Since I wrote the previous email, I actually went and changed my apple id (the main id) and the documentation I looked at said iCloud will set mail up automatically(?)...  I had it working before. 
    Also, I tried to manually set up the ID via the Mail Accounts screen(s) and I can't figure out what my server information is...  Pop or Imap?  What's the outgoing server and the incoming server?
    I typically have never had problems setting up mail accounts (in apple mail) with no problem.
    Can anyone point me in the right direction?
    Thanks in advance!

  • HT201209 How can I create an apple ID for my daughter, without adding a credit card to the account?

    How can I create an apple ID for my daughter, without adding a credit card to the account? I have tried to purchase a gift card online, but it just credits it to my account; I cannot use it to credit her new account therefore I cannot create that account.

    There are intructions on this page for how to create a new account without giving credit card details : http://support.apple.com/kb/HT2534
    e.g. log out of your account, find a free a free app in the store, click on its free 'price' :
    click on 'create Apple id' on the popup :
    Agree to the terms and fill in the details, and you should get 'none' on the payments screen.

  • HT5622 How can I create an Apple ID for my child without linking it to a credit card?

    How can I create an Apple ID for my child without linking it to a credit card?

    Hi Kappy..
    that did use to be the case but ios 8 you can create a child's Apple ID which will stay linked to the main Apple ID until they are 13 when they can if you wish take over the Apple ID themselves.
    I Have the same question regarding creating an Apple ID for my son but it insists I have to add a credit card to prove I'm an adult.
    thing is I don't have another card to add to my Apple ID I have been using the same card for all my family's Apple purchases i just update my details when I get issued a new one.
    Any ideas or suggestions greatly accepted.
    cheers

  • How can I create an apple ID for Free?

    How can I create an apple ID for Free?

    You can create an iTune and App Store account without credit card details
    1. Sign out of current Apple ID if you are sign-in to one (important)
    2. Go to App Store and select a free app
    3. Tap INSTALL APP
    4. Create New Apple ID
    5. Confirm Your Country
    6. Agree with Terms and Conditions
    7. Fill in your Apple ID and Password (you must create a new Apple ID; don't use your old Apple ID)
    8. Create and answer your secret question
    9. Select NONE for Payment Method
    10. Fill in Billing Address
    11. Submit application for new Apple ID
    12. Wait for verification email
    13. When email arrive, verify your account
    14. Start downloading your free apps

Maybe you are looking for

  • Nokia 6500 slide..Bugs and problems..

    Just read some posts regarding the nokia 6500 and it seems i too am not alone with the problems on this model.. I have had nothing but problems with this phone and keeps freezing, cuts out whilst in the middle of a call and generally is the most prob

  • Explain Plan Error

    Hi All, I am using oracle 10g and running in sql*plus. I am getting one error when running explain plan for one query, if I am running the query in sql*plus then it is working fine. Query:- SELECT sp.store_cd wr_store_cd, l.store_cd, l.loc_cd, l.loc_

  • Function Module to get languages maintained in paticular box

    Hi ,   I want to know the languages that are maintained in a box. (that we can check in  the SE38  target language). is  there any  tables where it is maintained.  (T002 does not store it). Regards,

  • How do I **save** tab groups (or import/export them)?

    I needed to restart FF5 after installing some add-ons and when FF restarted, I was dismayed to find that my tab groups were gone! Is there a way to save my tab groups so that I can reload them after restarting FF? it would be better if FF simply "rem

  • Using Ipods as External Error

    Hi, I have 2 ipods, one a 5th generation 60gb and a 3rd gen w/ 40gb. Whenever I try to copy info to my ipod as an external use, i get this error message: 'The disk destination drive is full please insert new disc' even though i have plenty of space.