Controlling Triggering of "WDDOMODIFYVIEW" on click of a button in view

Hi all,
I have a Button in a view,
on click of the button the "WDDOMODIFYVIEW" Executes before the action for the button executes.
I've a requirement that the "WDDOMODIFYVIEW" shouldnt execute on click of the button in that view.
Is it possible to control??
Best Regards,
Shravan.

Hi,
When you a click a button, method "WDDOBEFOREACTION" will trigger first. Then the method "WDDOMODIFYVIEW" will trigger.
So you can try the below method:
1. Create a local attribute lv_action_flag in the attribute tab of the view type as "WDY_BOOLEAN".
2. Write logic in the method "WDDOBEFOREACTION" to find the button clicked and set a local flag over there.
    data lo_api_controller type ref to if_wd_view_controller.
  data lo_action         type ref to if_wd_action.
  lo_api_controller = wd_this->wd_get_api( ).
  lo_action = lo_api_controller->get_current_action( ).
  if lo_action is bound.
    case lo_action->name.
      when '...'. <<Check your action name eg:Show
       wd_this->lv_action_flag = abap_true.
      when others.
        clear wd_this->lv_action_flag.
    endcase.
  endif.
3. In the beginning of the method  "WDDOMODIFYVIEW" Check the "lv_Action_flag" attribute .
like
check wd_this->lv_action_flag is initial.
<<Your entire logic in this method>>
Hope this will be helpful
Regards,
Meganadhan S

Similar Messages

  • How to control what VoiceOver says when clicking a radio button in Safari?

    Hello-
    I am developing a web page that I want to work in Safari & VoiceOver. Does anyone know how I can:
    1) control what VO says when it is hovering over a radio button (ideally some alt text or title attribute)
    2) control what VO says when I click a radio button in Safari (right now, it seems to say 'Group').
    I have tried to put the radio buttons in a fieldset, tried tons of attributes in the input tag (including alt, title, desc, description), but nothing seems to change.
    Here is a URL where you can hear what I'm talking about: http://postcalc.usps.gov/
    Turn on VoiceOver (try Cmd+F5), pull up the URL and hover over the 'letter' or 'large envelope' radio buttons, then click one of them. It says 'group'. I'd like it to say 'letter option selected' or something.
    Thanks for any & all help!
    Seth
    PS: I do know about the <label> tag. I've tried surrounding my <input> tag with a label and using <label for="someID">, but it doesn't seem to help.

    Thank you for the suggestion...it does work and fires the event, but it is still not selecting the current record when I try to perform an Update or Delete.
    I had to modify your code a bit in order for it work in JDev 10...used the JUCtrlValueBindingRef instead of the FacesCtrlHierNodeBinding.
    Here is what my af:table tag looks like:
    <af:table value="#{bindings.FeesView1.collectionModel}"
    var="row" rows="#{bindings.Fees001View1.rangeSize}"
    first="#{bindings.FeesView1.rangeStart}"
    emptyText="#{bindings.FeesView1.viewable ? \'No rows yet.\' : \'Access Denied.\'}"
    selectionListener="#{backing_viewFees.tableSelectOne1_attributeChangeListener}"
    binding="#{backing_viewFees.table1}" id="table1">
    If I put back my 2 original attributes, then my Delete and Updates work.
    selectionState="#{bindings.FeesView1.collectionModel.selectedRow}"
    selectionListener="#{bindings.FeesView1.collectionModel.makeCurrent}"
    Here is my code in the backing bean:
    public void tableSelectOne1_attributeChangeListener(SelectionEvent selectionEvent) {
    JUCtrlValueBindingRef binding = (JUCtrlValueBindingRef)this.getTable1().getSelectedRowData();
    if (binding != null) {
    Row currentRow = binding.getRow();
    if (currentRow != null) {
    System.out.println(currentRow.getAttribute("CurrentRecordInd")); // this does print my selected value!!!!
    }

  • When I open an email, instead of clicking on the button 'html view mode', how do I set it permanently so I won't have to click on it each time?

    How do I keep html view mode on in email, instead of clicking on it each time?

    Hi linktogen,
    In order to test this, can you please provide the webmail you are using for further testing?
    Thank you!

  • I want to display live video in LV, with the option to click on "delay" button, to view what happened N s. ago (i.e., a variable video delay)?

    Hi. I have a standard video camera + PCI 1408. I can nicely show the current image, using LL Ring examples. I want a boolean switch so I can switch from watching the live video to the video recorded N seconds ago. My initial hope was to use LL Ring, with
    lots of buffers, and copy/extract either latest buffers or a buffer several acquisitions ago. However, this seems to add no delay at all. Suggestions please? Thanks Patrick

    Patrick,
    What I start with is the sequence acquisition. I change it from one time to continuous, and simplify it a little bit.
    I have included an example that shows how to set up a buffer and display delayed video.
    One thing you have to do is open MAX and change the maximum number of buffers for IMAQ to something larger than 50. I usually select around 2000 buffers so that I never run out.
    Bruce
    Bruce Ammons
    Ammons Engineering
    Attachments:
    Delayed_Video.vi ‏66 KB

  • Include a jsp file in the same page by click on a button

    Hello Everybody
    I'd like to control "my.jsp" page by clicking on some buttons. So if I click on Button1, f1.jsp go to be includeing in "my.jsp" or Button2 to include f2.jsp on "my.jsp" and so on
    Thank you in addvance

    In my.jsp you could put a form with n submit buttons whith different values of parameter "name", like this:
    ---My.jsp------
    <form method="yourMethod" action="My.jsp">
    <input type="submit" value="Button1" name="button1">
    <input type="submit" value="Button1" name="button2">
    <input type="submit" value="Buttonn" name="buttonn">
    </form>
    <%if(request.getParameter("button1")!=null){%>
    <jsp:include page="f1.jsp">
    <%}%>
    <%if(request.getParameter("button2")!=null){%>
    <jsp:include page="f2.jsp">
    <%}%>
    <%if(request.getParameter("buttonn")!=null){%>
    <jsp:include page="fn.jsp">
    <%}%>
    I didn't try it but it might work.

  • Follow-up email triggered on email campaign click

    I am wondering if it is possible for a follow-up email campaign to be triggered once someone has clicked a link in the previous email.
    For example, I want to send out an email to subscribers of an email campaign, with a link to an informative webinar. I then would like only those that have opened the email, and preferably clicked the link, to be sent a follow-up email (a day or 2 later) with extra contextual information that assumes they have watched the video.
    My needs are not limited to this example, but hopefully you get the idea.
    How might I go about doing this?

    Hi Dayle,
    You can't trigger campaigns based on a user's interaction with the e-mail content itself, if it points externally, but you could try to redirect the user to a BC page where you could auto subscribe him to a "follow-up mailing list" before redirecting to the video itself, as per your scenario (or having the video embedded there). In regards to enabling the webform to properly autosubmit the apropriate information, you could build the link by this pattern: http://yourBCwebsite.com/landingpage?email={module_emailaddress}&fullname={module_fullname}. This way the url will be different per each user clicking it, but it will point to the same page. On that page you can prepopulate the subscribe form fields with {module_url,email} and {module_url,fullname}
    Kind Regards,
    Alex

  • Action is no getting triggered on the click of a button in an Adobe form.

    Hi All,
    I have created a Form using ALD 8.1.
    I have created a connction with the SAP using WSDL.
    The connection is getting established and it is ahowing SOAP Binding also,
    I am passing a input parameter. on the click of the button  the function module should return some values.
    But there is no effect on the execute button.
    No action is getting triggered.
    Tried establishing connection through JavaScript also.

    Cross post locked
    Rob

  • I have my iPhone locked and I don't want the music controls to pop up when I double click the home button. Does anyone know how to make it stop?

    I have my iPhone locked and I don't want the music controls to pop up when I double click the home button. Does anyone know how to make it stop?

    what exactly are you trying to accomplish here? i understand that you don't want to see the music status come up on your lock screen, but what are you trying to do by clicking your home button at all?

  • I recently had to restore my Iphone 4s and ever since I cannot double click the home button whilst the phone is locked and change my music. The controls come up and I can adjust the volume but I cannot change the songs. Help needed please!!

    I recently had to restore my Iphone 4s and ever since I cannot double click the home button whilst the phone is locked and change my music. The controls come up and I can adjust the volume but I cannot change the songs. Help needed please!!

    Have you guys been able to activate your iphone yet? I bought an iphone 4s from eBay and it worked fine, but the previous user had left some data on it, so last night I used the "erased all content and settings" to restore it to factory setting so I can start fresh and restore my backup. But now I'm stuck at the activation screen (I get the same "the activation server is temporarily unavailable")  and can't get it to activate, even if I use my old deactivated AT&T sim card (I'm on straighttalk now).
    I might try activating it with an active AT&T sim card from my fiancee's phone when she gets home, so I'll let you know how that works outs.
    If it's true that the server is down; anyone know when it will be back up again? Thanks in advance.
    iPhone 4s iOS 5.1.1 (9B206)
    Carrier AT&T 12.0
    Modem Firmware 2.0.12

  • Detect if any control inside a TableLayoutPanel is clicked

    Hello !
    Is there any way to detect if any  of the controls inside a TableLaoutPanel is clicked ?
    ( I mean without using Click event for each control ).
    I try using MouseClick's event of TableLayoutPanel , but this doesn't fire when a control is clicked.
    Thank you !

    Hello !
    Is there any way to detect if any  of the controls inside a TableLaoutPanel is clicked ?
    ( I mean without using Click event for each control ).
    I try using MouseClick's event of TableLayoutPanel , but this doesn't fire when a control is clicked.
    Thank you !
    Assuming that you set up your TableLayoutPanel purely in code, then it's just a matter of using AddHandler and direct it to
    the appropriate event handler sub. Do be sure that something (like the control's name) is unique - that's how you'll later identify it. You can also put a string (or any object, actually) in the .Tag property, but the name is the easiest.
    When calling it in code, call it using the event handler sub's name and for the two parameters, just use:
    SubNameHere(Nothing, Nothing)
    In each event handler code you just test whether or not the sender is null (directly) or use
    TryCast. If TryCast fails then it's because the sub was called in code; if it passes then test the name of the control in the casting operation
    and you'll know which control was clicked.
    Still lost in code, just at a little higher level.

  • What to do to add some UI elements in a group element on click of a button?

    I want to add Input fields and labels in the a group in a view on click of a button.
    How to :
    1)Access the right gropu in view through code?
    2)Create elements in the group through code?
    Please reply soon!
    Sumit

    You need a flag to signal that the elements should be added with the next call to wdDoModifyView().
    Add a boolean context attribute "AddFields" to the view context and set it to true in the action handler for the button:
    void onActionAddFields(...)
      wdContext.currentContextElement().setAddFields(true);
    In method wdDoModifyView(), check the flag and reset it after the code that adds the fields:
    (I assume the group has a MatrixLayout)
    static void wdDoModifyView(...)
      if (wdContext.currentContextElement().getAddFields())
        /* access group by ID given at designtime */
        IWDGroup group = (IWDGroup) view.getElement("groupID");
        IWDLabel label = (IWDLabel) view.createElement(IWDLabel.class, null);
        /* if new row in MatrixLayout should be started: */
        IWDMatrixHeadData labelLayoutData = label.createLayoutData(IWDMatrixHeadData.class);
        /* change settings for layout data if needed */
        label.setText("whatever");
        IWDInputField field = (IWDInputField) view.createElement(IWDInputField.class, null);
        /* if in same row as label: */
        IWDMatrixData fieldLayoutData = field.createLayoutData(IWDMatrixData.class);
        /* change field layout data if needed */
        field.bindValue("context.attribute.path");
        label.setLabelFor(field);
        group.addChild(label);
        group.addChild(field);
        wdContext.currentContextElement().setAddFields(false);
    Armin

  • Launching URL clicking on a button of a view of BSP Component

    Hi  Gurus,
    I have a requirement of opening a webdynpro URL by clicking on a button in a view of a standard BSP component. I have created one transaction launcher and assigned it to a logical link " ZOPP_CRT". In the event handler of the button I have written the following code.
    method EH_ONOPP_NEW.
    Added by wizard: Handler for event 'OPP_NEW'
    data: lv_nav Type ref to if_crm_ui_navigation_service.
    lv_nav = cl_crm_ui_navigation_service=>get_instance( me ).
    lv_nav->navigate( iv_link_id = 'ZOPP_CRT' ).
    endmethod.
    I have also checked the following links:
    Event triggers transaction launch
    Requirements using Transaction Launcher
    Still it is not working. Please suggest.
    Thanks

    Hi Raghunadh,
    You can find the details here:
    [http://wiki.sdn.sap.com/wiki/display/CRM/SAPCRMTransactionLaunchertoSAPERPBORObjects-Debugging|http://wiki.sdn.sap.com/wiki/display/CRM/SAPCRMTransactionLaunchertoSAPERPBORObjects-Debugging]
    [http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/3059fb20-987f-2e10-ef82-d147b9b5e8b4?QuickLink=index&overridelayout=true|http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/3059fb20-987f-2e10-ef82-d147b9b5e8b4?QuickLink=index&overridelayout=true]
    Regards
    Leon

  • HT1386 It says to click the device button in the upper right corner....there isn't one.  Itunes doesn't even recognize my devices since I did the most current update.  I have two iPhones, thru different carriers, and neither one works now!

    I did the latest iTunes update...I have 2 iPhones--each thru a different provider.  Now, I can't sync to download any music from iTunes.  iTunes doesn't recognize either device now.  I went thru diagnostics, didn't work.  I tried the suggestions from Apple...it says to click the device button in upper right corner....there isn't one.  When I connected each for the first time after update, it "installed device drivers".  I have checked for further updates on iTunes--nothing.  I made sure there were no updates listed for iPhones...all up to date.  I get an error code and from what I have looked through in forums etc, it seems like a lot of people are getting it...0ex000084 I believe it was.  Windows opens to download photos but that's it.  Devices are not listed at all.  I have tried all 3 USB ports in computer too.  I have never had any problems before this update!!  HELP!  I just bought $15 worth of music I can't download to phones now!

    On the left hand side of iTunes do you have the sidebar up left hand side?
    If this is not up then try this, with iTunes open press "Control" and "s" together and it should bring it up. From the sidebar it should show an option devices with the iPhones underneath it.

  • How do i control my object effects when i use a button?

    I want to use a button so when I click on it a square rises up from the bottom of my slide.  What I'm finding is by the time I click the button to make the square visible its effect has already loaded with the slide so you don't get to see the squares effect working, how do i pause the effect of the square until I have pressed the button?  Should I just make the button jump to a duplicate slide so the effect hasn't loaded if so this will be a pain when I have several buttons on the slide that I want to make objects move when i click them?

    Hello,
    Nothing to do with button becoming inactive, really, but with the way the Effects are scripted. Will try to answer your question about the buttons however.
    I'll try to explain the functionality of a button.  A button typically has a pausing point that is visible on the timeline, right? The portion before the pausing point is the 'active' portion, which will mean that the user can click on the button and this will have results. When you click on a button, the action attached as Success action is triggered, in this example the Text Caption is set to visible. But at the same time the playhead is released and moves beyond the pausing point into the Inactive portion, which means that it cannot be clicked again.
    Two possible solutions:
    use a rollover caption instead of your click/text captions work flow.
    Create a small advanced action BtShow1 and BtShow2 for each of the buttons, again I have screenshots ready but they are not accepted, bummer.... Will try to write the statements:
    Show Text_1      for the first button, shows the correct Caption
    Hide Text_2       hides the other caption that could have been shown by the other button
    Assign rdcmndGotoFrame with rdinfoCurrentFrame            this expression puts back the playhead directly before the pausing point so that button remains active
    You can duplicate this action to create Btn2, and you only have to reverse the ID's of the Text Captions
    When you attach those actions to the buttons, you can click as many times as you want. You tell that you have searched the forums? Bit strange because I have been explaining this so many times, and blogged about this kind of micro-navigation (frame by frame):
    Micro-navigation in Adobe Captivate
    Lilybiri
    PS: when updating, I can insert one image, will try to add the other one, in a second update perhaps

  • Help: How to call a plsql Package on click of a button in ADF

    Hi Guru's
    Please provide your suggestions, how to go ahead in ADF to call a plsql package when a button i clicked.
    I do have a knowledge of oracle callable statment to call the plsql package but not having any idea how to relate button click event in ADF.
    Thanks,
    SPC

    Create a service method in your Application Module to [url http://download.oracle.com/docs/cd/E14571_01/web.1111/b31974/bcadvgen.htm#sm0297]call the stored package, expose that service method on the client interface, and then drag the service method from the data control palette on to your page as a button.
    John

Maybe you are looking for

  • Jumpstart across subnets

    Hello I am having trouble configuring my jet toolkit to boot across subnets. It works fine in the same subnet but when it goes across subnets it seems to lose the default router for the client. {0} ok boot net:dhcp - install Resetting... POST Sequenc

  • How to determine output based on the content of purchase order

    Hi Gurus, I've a typical requirement at my present project. With vendor X we have punchout catalogs. while creation of shopping cart, we are not allowing the user to mix catalog items and non catalog items into the same shopping cart. Once the shoppi

  • Stopping animations in a published project

    We have inserted an swf animation (created in Captivate) in to a slide and have also placed navigation buttons on the slide. If the viewer hits "next" before the animation has finished, then the animation continues to play right to the end of its tim

  • Unable to open any jpegs

    I just noticed that I am unable to open any jpeg files on my MacPro.  I cannot be sure when it started but in the last two days it became apparent to me.  when I click on a file on the desktop or in Finder, nothing happens. The icon of the item is hi

  • IPhoto 5.0.4 Crashing

    Hello. Contents: 1. Problem 2. Error 3. Questions/Suggestions? 1. Problem: No matter how I import photos, either directly from a camera or clicking and dragging photos from folders, iPhoto crashes. I'm importing about 150 photos. 2. Error: Command: i