Where to write the code when the push button is clicked in the screen

I have designed a screen with a push button and a text box
If i click on the push button it should display a value 'hello' in the text box. How to do

When you are using module pool programming,
handle the push button function code in the PAI module and make sure the text field is updated whenever that function code for push button gets executed.
And one more thing is that make sure you set the next screen to the same screen number because after executing the function code then again it has to go back to the PBO of that screen for displaying  the text field.
For inital display, the text field is displayed blank and it is filled when that function code is executed.
Regards,
Balaji Reddy G
Note:Please reward if the answers are helpful

Similar Messages

  • Run code when a radio button is clicked

    I have a radio group with various radio buttons in there
    named date, time,
    reg etc
    When I click on a button I need the following:
    Which radio button was pressed
    The value of that button eg date, time, reg etc
    Then run some code (I will use the value to run a MYSQL
    query)
    The idea is to be able to sort a table based on the header
    that was clicked.
    Cheers
    SteveW

    Thanks for the help so far.
    I am using dreamweaver 8. ASP VBScript
    I would rather not use javascript as our operators have PDA's
    and we are
    trying to use the same interface for everyone.
    What I am trying to do is re-sort a Table by either reg,
    date, user order
    etc. by clicking on the radio buttons.
    The table is populated with MYSQL have a look at
    http://80.5.54.164/swiff/contact.asp
    user 1 password 1
    Unless there is another way to achieve this
    Cheers
    SteveW
    "bregent" <[email protected]> wrote in
    message
    news:elithk$a5n$[email protected]..
    > >Then run some code (I will use the value to run a
    MYSQL query)
    >
    > >The idea is to be able to sort a table based on the
    header that was
    > >clicked.
    >
    > Are you trying to sort the table by resubmitting a new
    sql query, or sort
    > the
    > table client side? I would suggest the latter.
    >

  • How to edit a particular row in the table ctrl when a push button is clickd

    Hi Experts,
    How to edit a particular row (except the Primary keys) after selecting it in the TABLE CONTROL when a
    push button is clicked in the table control.
    For Eg. If you have a push button say "Modify", the particular row what we select in the table control should be in a
    editable mode after clicking "Modify" Push button.
    Please help me out.
    Thanks in advance.

    Hey Ram,
    Thanks a ton.
    Its working fine...sorry for the late reply.
    The reason behind the delay is because i had modified my code as per your logic it worked fine but the thing is that the whole column was in editable mode but not a single row.
    For E.g  If i want to edit a particular row, first i select the row and then  click on "Modify" button. After i click on the button, the whole column gets in a editable mode including the one which i intentionally selected.
    Here, the solution is that you have to set a flag in PBO so that once it is done with PBO then it need not come back again after we click on "Modify" button.
    And one more query is that after you modify a particular row in the table control ( When it is in editable mode) and click on the "Save" button, it is not getting updated to database.
    To update the database, we need to select the row once again after modifying it and click on the "Save" button.
    Here, database is updating only when it is selected again. If it is not selected, it is not getting updated.
    If you have any alternative solution, then please help me out.( I hope i am clear with the question.)
    Thanks,
    Ananth.

  • Where can customize the screen of the component in CJ20N

    now the user need to customize the component assigned to the Activity in CJ20N.
    where can customize the screen of the component in CJ20N?
    Please explain me all the steps to be required.
    Thanks in advance!

    Hi,
    unfortunately there is no field configuration for components of networks.
    Kind regards
    Peter
    PS: only possibility would be a modification -> see notes 114390 and 100180.
    Edited by: Peter Kratz  on Apr 23, 2009 9:38 AM

  • Need to fetch function code value of push button into BUS

    He expert,
                       I have created one custom screen in standard transaction IQ02.where I am populating some values into screen and one push button is there.I want to trigger the workflow only when user press this push button.I am using BUS DEVICE for that.
    Is it possible to fetch function code value of push button into the BUS object by creating custom attributes.So i can put the function code value as a condition before triggering workflow.or is there any other way to  to implement the above functionality.
    Please suggest.

    Hi,
    I'd say you need to delegate the std DEVICE object to your own ZDEVICE, where you define a custom event. Then generate the DEVICE.CUSTOMEVENT event when the user clicks on your pushbutton (eg. with SAP_WAPI... function module).
    In your workflow remove the standard triggering event and use your custom event instead.
    Cheers,
    Patrick

  • Af:statusIndicator does not show busy icon when a command button is click

    Hi Guys,
    af:statusIndicator does not show busy icon or motion when a command button is click
    I am working on an excel data upload functionality on .jspx page. I use “af:inputFile” file uploader to upload an excel file then process the data and store it as a list of objects in memory and display it in “af:table” table
    I added “af:statusIndicator” to the page to show the user that the page is progressing while the data is uploading and when it is saving the data to the database.
    In this case, when the “af:inputFile” is clicked to upload the excel file - the status indicator shows a progress icon (movement) which is expected and is good. However, after the data have been display in the table when I click on a command button that saves the data to the database – I expected the status indicator to start its busy motion but that is not happening. Whereas, the command button grayed out and is disable when I clicked the button until the operation is completed.
    Is there any way to start the statusIndicator when a command button is clicked?
    I tried the following options
    *<af:statusIndicator id="si1_uploadStatus" partialTriggers="pc1:cb1 pc1:table"/>*
    Where pc1:cb1 is the command button and pc1:table is the table
    *<af:commandButton text="Submit Uploads" id="cb1"*
    *disabled="#{!viewScope.batchUploadController.allSavable}"*
    *partialTriggers="::infFilePath"*
    *action="#{viewScope.batchUploadController.saveUploadedData}"*
    *blocking="true"/>*
    Thanks,

    Can somebody please address this?
    Thanks,

  • Where to write the code in TMG events

    Hi All,
    I want to use 05 TMG event.there is so many include programs are there.
    In which include i have to write the code.
    Please suggest me...
    Regards,Raj.

    Hi Raj,
    You can write it inside the Form include i.e LxxxF01., where xxx is the table name.
    The other 3 includes are as follows :
    1. LxxxI01
    2. LxxxO01
    3. LxxxTOP
    where LxxxI01 and LxxxO01 are  used for Process after input  and Process before input events resp.
    Hope it helps.
    Edited by: Rakhi Nair on Oct 5, 2011 10:10 AM

  • Where to write connection code?

    Hai,
    In Flex,where we have to write the stratus connection code?
    Is it outside the script or inside?

    you can download some samples to see how to build a application to connect
    to stratus.
    use
    <mx:Script >
    <![CDATA[
    // action script code here
    ]]>
    </mx:Script>
    to write your as3 code
    or just
    <mx:Script source="yourAScodeFile.as"/>
    and write your code in yourAScodeFIle.as.
    e.g.
    //I don't use debug ver so I use Alert.show() instead of trace();
    myapp.mxml
    <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute"
    creationComplete="connect()">
    <mx:Script source="myapp.as"/>
    <mx:Button id="conn" label="connect" click="connect"/>
    </mx:Application>
    myapp.as
    import flash.events.NetStatusEvent;
    import flash.net.NetConnection;
    import mx.controls.Alert;
    private const StratusAddress:String = "rtmfp://stratus.adobe.com";
    private const DeveloperKey:String = "yourDevelopKey";
    private var nc:NetConnection;
    private function connect():void
    nc = new NetConnection();
    nc.addEventListener(NetStatusEvent.NET_STATUS,netConnectionHandler);
    nc.connect(StratusAddress + "/" + DeveloperKey);
    private function netConnectionHandler(event:NetStatusEvent):void
    Alert.show(event.info.code,"info code");
    Alert.show(nc.nearID,"peer id");

  • Firefox 7, mozilla doesn't open in the proper size where it fits the screen.

    Where before it opens to fit the screen (not fullscreen) so now I always have to click the maximize button. Didn't happen before the update, how do I fix this?

    Try ensuring when it closes it is already in the maximum view. When you close it
    * use '''Firefox Button -> [x]Exit'''
    I do not think there were any recent changes that should affect how Firefox opens and closes when upgraded from Firefox 6 to 7 or 7.0.1

  • Where to after the screen saver...

    I was checking out an apple tv for purchase at an apple store, and I couldn't get an answer about this from anyone working there.
    I noticed that once the screen saver was going while playing music, any button pressed, for example to pause the music, would exit the screen saver and automatically return to the main menu.
    So, I would go to some playlist, start it, wait two minutes for the screen saver to kick on, then press pause to see what song was playing, and I was back at the main menu! I don't want to go back to the main menu!
    Is there some option or does it only do that with store display models (it was running some kind of apple promotional video as a screen saver), or is that just the way it works?

    Thank you very much for you're response. However, I see that I didn't make myself very clear. I'll try again.
    Of course, I want it to exit the screen saver when I press a button, but it when it exits the screen saver, I want it to be in the same place I was when the screen saver went on.
    For instance, if I was in a playlist, when it exits the screen saver, I still want to be in the playlist. As it is now, when it exits the screen saver, it returns back to the main (top level) menu.
    So, if I'm listening to a playlist, or an album, and the screensaver is going, I have to go through all the menus again to return back to the playlist?

  • Clear Custom messages when End Button is clicked on IC Screen in CRM 6.0

    Dear CRM Experts,
    I had a requirement to give out a custom info message based on some conditions when a service ticket is created. I could get this accomplished by implementing the BAdI ORDER_SAVE and adding a message using the method ADD_MESSAGE in class CL_BSP_WD_MESSAGE_SERVICE. I could get the custom message as well as the standard message that the Transaction XXXX is saved.
    However, when I click the End button on the interaction center web ui, the standard message gets cleared off, but my custom message still shows up. Can anyone advice where I should be clearing the custom message log when the end button is clicked?
    Regards,
    Suneetha

    The thing is he "old" / standard code isn't executed. I tried using a break point there to see if it will be executed, but it didn't stop at all .
    Here is the code.
    IF param1-value = 'InteractionEndRequest'.
    *    BREAK-POINT.
         DATA:           lr_messagetab        TYPE         crmt_genil_mess_cont_tab,
                             lr_core              TYPE REF TO  cl_crm_bol_core,
                             lr_message_container TYPE REF TO  if_genil_message_container,
                             lr_mess_core         TYPE REF TO  cl_crm_genil_mess_cont_manager.
         lr_core        = cl_crm_bol_core=>get_instance( ).
         lr_mess_core   = lr_core->get_message_cont_manager( ).
         lr_mess_core->get_all_message_containers(
                     IMPORTING et_result =  lr_messagetab ).
         LOOP AT lr_messagetab INTO lr_message_container.
           lr_message_container->delete_messages( ).
         ENDLOOP.
       ENDIF.

  • Making a text field required when a radio button is clicked

    Hello all, I am very new to designing PDF forms, and I want to implement this requirement but have no idea how to go about doing it. I am designing an order form, and in a few different sections of the form are text fields that I want to be required, but only if a certain radio button on the form is clicked. So for example, I have a radio button group on the page consisting of two buttons, and then immediately to the right is a text field. If the user selects button 1, the text field is not required, but if they select button two, the text field is required. How do I implement this? I am using Livecycle ES3. And when I say required, I am referring to the field value/property of "User Entered - Required". Also, I cannot accomplish this by hiding and unhiding the field depending on which button is clicked, as this form will also be printed and filled out by hand, so all fields must be visible at all times. This form does have a submit by e-mail button and that is how it will be used primarily.
    Also, I have searched around the forums a bit, and have tried some Javascript I have found, tying it to a mouseup event on the radio button, for example "getField("Text1").required = (getField("Radio1").value == "Yes");" and "getField("Text1").required = true;" with the names changed for my fields, but no matter what I try it has no effect
    Thanks!

    i hope this helps u.You can always optimize tht code a bit more , it's coded roughly but it works.
    <html>
    <head>
    <script>
    var cursel='r1';
    function radioClick(x)
         if(cursel!=x)
              cursel=x;
         if(cursel=='r2')
              var z=document.getElementById('mydiv');
              mydiv.innerHTML='<input type=text name=ss size=20/>';
              mydiv.style.display='inline';
         else
              var z=document.getElementById('mydiv');
              mydiv.innerHTML='';
              mydiv.style.display='inline';
    </script>
    </head>
    <body>
    <form>
    <input type=radio name=rtt onClick="radioClick('r1');" checked />Radio 1
    <br>
    <input type=radio name=rtt  onClick="radioClick('r2');"/>Radio 2
    <br>
    <div id=mydiv></div>
    </form>
    </body>
    </html>

  • Script to detect when a radio button is clicked/ digital signature signed

    Good afternoon,
    What is the syntax to detect if a radio button is clicked or a digital signature field is signed?
    What I want to do is populate a field if a radiobox is clicked and a the user digitially signs the form.
    My radio boxes follow the scheme
    Group name: Group 1
    Choice name: A,B, C, D
    Digital signater field name: boss
    Proposed script
    if ( group1.A==True and this.getField("boss').signed){
         this.getField("x").value = thisgetField("y").value
    I know the syntax is way off but I am trying to fufil a task like thie one described above.

    Try67
    Thanks
    That works. Follow on question:
    When I digitally sign,  I am trying to get that digital signature to permeate to other digital signature blocks. I am trying to modify your code to do this once the document is digitally signed but it is giving me a syntax error:
    if ( this.getField("MainCheckbox").value=="Choice1" && this.getField("Signature155").value!="" {
         this.getField("Signature15").value! = this.getField("Signature155").value!;
        }else this.GetField("Signature15").value = "";
    How to I fix that?
    Also,  I am trying to d othe same with radio boxes; however, radio boxes do not have an option to run a script once they are checked.

  • How can I set a value in a field before create when a New button is clicked

    Hi,
    I am using
    JDeveloper 10.1.3.1.0.3984 and
    JHeadstart 10.1.3.1 release 10.1.3.1.26
    I have one group and there is a detail group under that group.
    From main group to detail group there are 3 field relating those groups.
    field1
    field2
    fieldSEQ (auto-generated by database trigger)
    These 3 fields are PK.
    In the detail group, there is a New button. So, when the New button is clicked, it tries to create the record with those 3 fields value as those are coming from main group. As a result it's giving the duplicate error as that record already exists in the table.
    But I don't want to create the record with that SEQ as that will be created in the trigger.
    How can I set the SEQ temporarily any no. (-1) before create when the New button is clicked?
    Can anybody help?
    Thanks
    Syed Jabbar
    University of Windsor
    Windsor, ON, Canada

    Hello Syad,
    What I would suggest is setting the sequence number at the creation of the entity object (so in the create() method) by using the database sequence. This way it will always be unique.
    So something like:
    protected void create(AttributeList AttributeList) {
    super.create(AttributeList);
    SequenceImpl sequence =
    new SequenceImpl("KCP_SEQ", getDBTransaction());
    setFieldSeq( sequence.getSequenceNumber());
    If this still does not solve it: please go to the ADF Forum since this problem is an ADF problem, not a JHeadstart problem.
    Regards,
    Evert-Jan de Bruin
    JHeadstart Team.

  • ADF/JSF page loads when any command button is clicked

    Hello All,
    I am lost in the ADF/JSF page flow (using Jdev 10.1.3). Following are the tags (in order) in my page;
    (WHEN THIS PAGE LOADS, IT GOES TO THE DATABASE TO GET VALUES (for the drop down lists that will appear on the page); THIS SHOULD HAPPEN JUST ONCE AND AT THIS POINT)
    <f:view>
    <afh:body>
    <afh:html>
    <af:form>
    <af:panelpage>
    <f:facet name="contextSwitcher">
    <af:panelHorizontal> has a af:commandLink </af:panelHorizontal>
    </f:facet>
    <f:facet name="messages">
    <af:messages/>
    </f:facet>
    <af:panelform>
    <h:panelGrid columns="2" cellspacing="14">
    has 2 panelgroups (one group has *2 SelectOneChoice lists (that need to be populated by fetching data from database* and the other group has 2 CommandButtons - 'Go' and 'Cancel") (GO BUTTON SETS THE SHOWPANEL() TO TRUE)
    (WHEN GO BUTTON IS CLICKED, THE PAGE GOES TO THE DATABASE (AS IT DID ON PAGE LOAD). *THIS SHOULD NOT BE HAPPENING*. ONLY THE METHOD (action="#{muBean.doWork}" )THAT IS ASSOCIATED WITH GO BUTTON ACTION SHOULD BE CALLED)
    </h:panelGrid>
    <h:panelGrid columns="2" cellspacing="14" rendered="#{myBean.showPanel}"> (THIS ONE IS RENDERED WHEN SHOWPANEL() METHOD IS TRUE)
    has 3 inputText fields
    </h:panelGrid>
    <af:table var="someTable" rendered="#{myBean.showPanel}"> (THIS ONE IS RENDERED WHEN SHOWPANEL() METHOD IS TRUE)
    has a bunch of af:columns
    </af:table>
    <af:panelHorizontal rendered="#{myBean.showPanel}"> (THIS ONE IS RENDERED WHEN SHOWPANEL() METHOD IS TRUE)
    has 3 af:commandButtons - submit, save, add row
    (WHEN submit or save or add row BUTTON IS CLICKED, THE PAGE KIND OF LOADS AND GOES TO THE DATABASE (AS IT DID ON PAGE LOAD). *THIS SHOULD NOT BE HAPPENING*. ONLY THE METHOD THAT IS ASSOCIATED WITH submit/save/add row BUTTON ACTION SHOULD BE CALLED)
    </af:panelHorizontal
    </af:panelForm>
    </af:panelPage>
    <!-- Footer -->
    <jsp:include page="/pages/includes/footer.jspx"/>
    </af:form>
    <f:verbatim>
    <script type="text/javascript" src="../script/tree.js"></script>
    </f:verbatim>
    </afh:body>
    </afh:html>
    </f:view>
    </jsp:root>
    _*why is it that when the command buttons are clicked, the whole page is loaded? Only the methods associated with the action (action="#{newMapRequestItem.addARow}" ) should be called.*_
    _*IS THERE A WAY TO AVOID THIS WITHOUT USING PARTIAL PAGE RENDERING ?*_
    _*DOES MY TAG NESTING LOOK OK?*_
    Edited by: user12054715 on Mar 24, 2010 12:00 PM

    Can somebody please address this?
    Thanks,

Maybe you are looking for

  • Only One Computer at a Time on Internet

    I have a cable modem (motorola) and using airport as my wireless router connected to my iMac. I have a MacBook and an iMac. Unfortunately, only one of us can be accessing the internet at a time. This was not the case before. If one of us is already o

  • Mac book pro  screen went black and computer won't respond

    I was using my MacBook Pro , which I only bought a week ago , when the screen suddenly went black and the computer seemed to power down , when this happened it was on 40% battery , I plugged In the MagSafe it didn't seem to light but when I looked cl

  • Product Category in SAP SRM

    Hi, When we click on Describe Requriement option or create limit order option, the product category is defaulted. Is there anyway to remove thiis default value. Ravi G

  • InDesign encounters error when locking objects on master page

    I have CS5 and love it. But, after moving objects on my master page between layers (don't ask me why, just thought it might be a good idea) I cannot lock (Ctrl-L) the objects without locking InDesign. It encounters a error and locks up. I have to use

  • "get mail" reloads entire inbox

    When I try to "get mail" it reloads my entire inbox; every message. Have checked for updates, reinstalled mail from time machine, and deleted users > mail > library > MessageUidsAlreadyDownloaded3. Is there another e-mail program for Mac?