Making Page look same in All Pixels & Writing code for Submit Button.

Hello All,
How to make the page look the same in all computers even though the pixels are different?
Please help me in this regard.
More Over if I want write the code for Submit button where the code should be written.
Whether the code is different from normal ABAP coding?
Warm Regards,
SampathKumar G.

Hi Sampath,
You can trigger mandatory field checks in WDA as in R/3. For this you need to make the "state" property of your input field to "required".
In addition to this you need to call the static method check_mandatory_attr_on_view of class cl_wd_dynamic_tool. This would then automatically verify if all the mandatory fields have been filled or not. It would then populate the error messages into an internal table and display them in the view. Also the mandatory fields which haven't been filled would be highlighted with a red border. You need to put the below coding into the action up on which you want to trigger the data chesks.
data: lt_msg TYPE cl_wd_dynamic_tool=>t_check_result_message_tab,
          lo_view_controller TYPE REF TO if_wd_view_controller,
          lo_message_manager type ref to if_wd_message_manager.
  lo_view_controller ?= wd_this->wd_get_api( ).
  lo_message_manager = lo_view_controller->get_message_manager( ).
  cl_wd_dynamic_tool=>check_mandatory_attr_on_view(
    EXPORTING
      view_controller = lo_view_controller
      display_messages = abap_true
    IMPORTING
      messages = lt_msg ).
Regards,
Uday

Similar Messages

  • Getting Error In the Routine - While writing Code for the Cross Reference.

    Hi,
    Getting Error In the Start Routine - While writing Code for the Cross Reference from the Text table ( /BIC/TZMDES with Fields /BIC/ZMDES(Key),TXTSH ) Getting Error as [ E:Field "ZMDES" unknown ].
    Transformation : IOBJ ZPRJ3(Source) -> IOBJ ZPRJC ( Target ).
    The Source  Fields are: 0logsys(Key),zprj3(Key),ZDOM3.
    The Target Fields are : 0logsys(Key),zprjc(Key),ZDOM3, UID.
    Here i am trying to Update the target Field UID by Comparing the Source Field [ zprj3(Key)] with the Text table ( /BIC/TZMDES ) and update the UID.
    The Code is as below:
    Global Declarations in the Start Routine:
    Types: begin of itabtype,
            ZMDES type /BIC/TZMDES-/BIC/ZMDES,
            TXT type /BIC/TZMDES-TXTSH,
             end of itabtype.
    data : itab type standard table of itabtype
    with key ZMDES,
    wa_itab like line of itab.
    Routine Code :
    select * from /BIC/TZMDES into corresponding fields of table itab for
    all entries in SOURCE_PACKAGE
    where ZMDES = SOURCE_PACKAGE-/BIC/ZPRJ3.
    READ TABLE itab INTO wa_itab
    WITH KEY ZMDES = SOURCE_PACKAGE-/BIC/ZPRJ3
    BINARY SEARCH.
    IF SY-SUBRC = 0.
    RESULT = wa_itab.
    CLEAR wa_itab.
    The tys_SC_1 structure is :
    BEGIN OF tys_SC_1,
         InfoObject: 0LOGSYS.
            LOGSYS           TYPE RSDLOGSYS,
         InfoObject: ZPRJ3.
            /BIC/ZPRJ3           TYPE /BIC/OIZPRJ3,
         InfoObject: ZDOM3.
            /BIC/ZDOM3           TYPE /BIC/OIZDOM3,
         Field: RECORD.
            RECORD           TYPE RSARECORD,
          END   OF tys_SC_1.
        TYPES:
          tyt_SC_1        TYPE STANDARD TABLE OF tys_SC_1
                            WITH NON-UNIQUE DEFAULT KEY.
    Please suggest with your valuable inputs.
    Thanks in Advance

    I have split the code in two.. one for start routine.. other for field routine.. hope this helps
    Types: begin of itabtype,
    ZMDES type /BIC/TZMDES-/BIC/ZMDES,
    TXT type /BIC/TZMDES-TXTSH,
    end of itabtype.
    data : itab type standard table of itabtype
    with key ZMDES,
    wa_itab like line of itab.
    Start routine
    select * from /BIC/TZMDES into corresponding fields of table itab for
    all entries in SOURCE_PACKAGE
    where ZMDES = SOURCE_PACKAGE-/BIC/ZPRJ3.
    Sort itab.
    field routine
    CLEAR wa_itab.
    READ TABLE itab INTO wa_itab
    WITH KEY ZMDES = SOURCE_FIELD-/BIC/ZPRJ3
    BINARY SEARCH.
    IF SY-SUBRC = 0.
    RESULT = wa_itab-<field name>

  • Select  all and dselect all can any body provide a code for these buttons

    hi
    i have taken 4 buttons for select  all and dselect all  and sort up and sort down can any body provide a code for these buttons.
    thanks

    hi,
    Refer this link...
    code for select_all and deselect_all in modulepool

  • What are all the browsers I should be writing code for in css?

    What is a list of the most common browsers that people use that I should code for? Where do I download that list of browsers so that I could test my site? I only have ie8 and chrome.

    In addition to the major 5, I would also test in IE7, IE8, iPhone, iPad, Android & Blackberry.  In industrialized parts of the world, the number of people using portable web devices is increasing at breakneck speed.  Your site may not look identical in all these browsers but it should be functional.
    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics | Print | Media  Specialists 
    http://alt-web.com/
    http://twitter.com/altweb

  • In LIVECYCLE DESIGNER how do I code a submit button to only submit one page of a multipage PDF

    I have a multipage PDF I've designed in Livecycle and have print and submit buttons on each unique form in the document. I am able to create code (which I've copied from someplace) that allows only one page to print but when I click the submit button it wants to submit the entire document.  PS - I created the Submit from the blank button and have it set to submit PDF not XML.

    I don't think you can submit just a page of your PDF like you printed just a page. The difference is that when you print, the PDF becomes dots on paper, while when you submit a PDF it must remain completely intact to be machine readable, especially since the forms on a LiveCycle (XFA) document can have complex dependencies between pages.

  • New to Programming, need your help with writing code for java in Xcode.

    Hey everyone! Sorry if I sound like a total idiot here with a bunch of developers but I could really use your help. I am in college and having a bit of problems with my intro to programming class. The class is entirely Java based and so, after having to use dos windows on my grandpas crappy laptop I found out about xcode. I downloaded and installed it but I am having problems seeing where exactly it is that I am to write my code for a normal java application. Any help would be greatly appreciated! I wrote it on the bottom of a bunch of code that looked strange to me. For relatively simple java programs I chose the java application template. Is there something here that I missed?

    The Java Application project template looks like it sets up an application and some kind of starting UI using Swing/AWT. I didn't look at it too indepth, but if you are in an introductory course this might be more than you need to complete your assignments. There doesn't seem to be blank Java template, so I don't know what you should use. Perhaps just a blank project you add your .java files to.
    To answer where to write code, you would write it in your .java files under the /src folder. Execution begins in
    public static void main(String args[]) {}
    in YourAppName.java, then creates an object based on your application class, and runs the code from there to display the UI.

  • I purchased a lightroom 4 on disc several years ago. In 2013 I again purchased the upgrade to Lightroom 5. Later I was sent a free upgrade of lightroom 5. I have all the activation codes for those products. Unfortunately the original disc has been misplac

    I purchased a lightroom 4 on disc several years ago. In 2013 I purchased an upgrade to lightroom 5 via a download. I have all the activation codes. I uninstalled lightroom from my old laptop and now want to download it to my new laptop using windows 8.1.
    Where do I go to download already purchased and paid for copies of lightroom 5. I can put the verification codes when payment is requewsted. HELP!!!

    Lightroom - all versions
    Windows
    http://www.adobe.com/support/downloads/product.jsp?product=113&platform=Windows
    Mac
    http://www.adobe.com/support/downloads/product.jsp?product=113&platform=Macintosh

  • Help writing code for drop down menus and/or radio buttons

    Hey, new to the forums, fairly new to programming in Java. I want to put up a "Ebay store", on Ebay.... well I guess that's obvious. I want to make a menu that either incorporates "Drop-down menus" (preferred - see below) or radio buttons. I do not know how to code these or how to incorporate them with the Ebay interface so that the new options selected by the customer with automatically adjust the price of the item. All help is appreciated.

    I'm guessing what you want to do has nothing to do with Java. It probably has more to do with JavaScript. You are probably going to have to learn a little HTML (Drop-down menus are really select boxes) and then some JavaScript to go along with it (onChange="javascript: doPriceChange();"). I have absolutely no idea about the EBay interface so this is all just a guess. Here's a google search for adding javascript to a select box.
    http://www.google.com/search?sourceid=navclient&ie=UTF-8&oe=UTF-8&q=javascript+select+onchange

  • Any help on writing code for XML export?

    Hello,
    The Adobe Acrobat 6.0 allows us to Export/SaveAs PDF to XML 1.0. Currently we have developed an application which reads PDF files and emits some XML. However this XML has a very basic schema and we need to add more structure to it. Like one examples is of recognizing tables from PDF document. Logical information of tables are not there in PDF files as such, and tables in PDF document are merely stored as collection of horizontal and vertical lines. Acrobat 6.0 recognizes tables and lists somehow. I need to recognize them too. So is there any reference or some algorithms which tell us how to extract this logical information from a PDF? Any
    clues? Any type of guidance is appreciated.
    Regards,
    Atiq

    You're posting to the wrong forum. This one is about XMP metadata, not about Acrobat or general XML. You should repost on an Acrobat forum.

  • Need help writing correct code for nested button

    This is the code on the main timeline.
    stop();
    garage.addEventListener(MouseEvent.MOUSE_DOWN, mouseDownHandler);
    function mouseDownHandler(event:MouseEvent):void {
        gotoAndPlay("open");
    The movieClip gDoor is nested inside of garage and "open" is a label on that timeline.  I know the gotoAndPlay("open"); isn't correct.  How would i target the label on the nested timeline.
    the link below is to dowload the fla
    clienttestsite.x10.mx/beta/garage.fla

    The problem is that you have an event listener assigned to the garage, which is blocking/overriding interaction with anything inside of it.  When you click on the chest's button, you are still clicking on the garage, which does the gotoAndPlay("open")... where it stops at the stop();
    One way to get around this is to assign an instance name to the door and assign the opening code to that....
    stop();
    garage.door.addEventListener(MouseEvent.CLICK, openHandler);
    function openHandler(event:MouseEvent):void{
       garage.play();
    garage.chest.closeBtn.addEventListener(MouseEvent.CLICK, closeHandler);
    function closeHandler(event:MouseEvent):void{
       garage.gotoAndPlay("close");
    Notes: as shown in the code above...
    - use CLICK instead of MOUSE_DOWN.
    - in the openHandler use play() instead of gotoAndPlay("open"). You are already in the "open" frame, and it is only because the stop() is used up that it actuallys works.
    Doing what I explain above also makes it so that you can click the door to close things as well.

  • Help with writing code for button

    Hi!
    Can someone help me with the code for a button that sends my menu back to 0?
    This is the code current code, and I've created a button called sistapilen that I want to insert where the regular button "arrow" is not visible. I want sistapilen to navigate me back to 0. (Or if I can get "arrow" to do it and delete "sistapilen"). 
    /Jen
    // File downloaded from www.riacodes.com
    import com.greensock.*;
    var arrayX :Array = [0,-800,-1600,-2400,-3200,-4000,-4800];
    var currentIndex:Number=6;
    left_mc.addEventListener(MouseEvent.CLICK,navigate);
    right_mc.addEventListener(MouseEvent.CLICK,navigate);
    left_mc.buttonMode = true;
    right_mc.buttonMode = true;
    checkArrows();
    function navigate(e:MouseEvent):void{
    if(e.currentTarget == left_mc) currentIndex --;
    else currentIndex ++;
    checkArrows();
    TweenLite.to(content_mc,.5 ,{x:arrayX[currentIndex]});
    function checkArrows():void{
    if(currentIndex == 0) left_mc.visible=false;
    else if (currentIndex == arrayX.length - 1) right_mc.visible = false;
    else{
    left_mc.visible = true;
    right_mc.visible= true;

    Add a listemer for whichever other button you plan to use...
    sistapilen.addEventListener(MouseEvent.CLICK,navigate);
    And try changing your navigate function as follows...
    function navigate(e:MouseEvent):void{
         if(e.currentTarget == left_mc) {
              currentIndex--;
         } else if(e.currentTarget == right_mc){
              currentIndex ++;
         } else {
              currentIndex = 0;
         checkArrows();
         TweenLite.to(content_mc,.5 ,{x:arrayX[currentIndex]});

  • How to open a new window from submit button &dialog page in current window?

    We have a requirement, wherein we have a OAF search page for PO lines with search criteria, Go button to search ,result region (table layout) and a submit button(Create new expedite).
    1. Now user can select some lines from result region and click on Submit button.
    2. On click of submit button we need to pop up a window or may be a dialog page asking that " Do you want open supplier web link portal or not?".
    3. If user clicks yes(in Dialog page) then first fetch the URL from a look up maintained in Oracle EBS on the basis of supplier of the lines selected and then open that URL in a new window and side by side we need to open a dialog page in search page asking "whether user has updated the expedite info in supplier portal or not?". On basis of this we need to updated some count in custom tables.
    So in step 3 i am facing problem, that how to open an URL in a new window through a submit button and side by side want to open a dialog page in the current window also.
    Hope a quick response from you all.
    Note:- To open a custom page we can have a link or button(button of type button and not submit button) on base page with destination url property as following javascript:
    javascript:var a = window.open('OA.jsp?page=/XXX/oracle/apps/xxx/......&retainAM=Y', 'a','height=500,width=900,status=yes,toolbar=no,menubar=no,location=no'); a.focus();
    So the question is how to do the same for submit button on OAF page???

    Antriksh,
    You just need to attach a submit action in button bean and not submit button bean, based on the output of confirm type of alert in javascript.
    Here is code u need to put in destination url of the button:
    //replace <confirm message> by message you want to show.
    javascript:input=confirm('<confirm message>');if(input==true){submitForm('DefaultFormName',0,{XXX:' abc'});}" Now in the process request of the base page CO, u can get parametre 'XXX' from the pagecontext....so
    if((("abc").equals(pageContext.getParameter("XXX"))))
    {/// custom LOGIC }
    The same i have replied in your mail. I hope this resolves the issue.
    --Mukul

  • Can I have multiple submit buttons on the same form?

    Hi!
    I'm creating a web page that allows the user to build a mail filter, and I would like to have to submit buttons, one to add more fields to the filter and another one to save the filter... I could insert the two buttons on the, but I don't know how to distinguish them while doing the process of the form on a jsp page. Any ideas?

    You can create additional submit buttons using Javascript buttons:
    <input type='button' value='Add Fields'
    onClick='this.form.action="/servlet/AddFields";this.form.submit()' />
    <input type='button' value='Save Filter'
    onClick='this.form.action="/servlet/SaveFilter";this.form.submit()' />
    The value of "onClick" is a block of Javascript, so you can all a function to validate the form before submitting, etc.
    Mike W.

  • Regarding multiple submit buttons in a page!!

    hi all,
    If i have two submit buttons in a html page then i can put them in two separate forms ,one form with get method and another with post method and pass the information to the servlet and then retrieve the values using doGet and doPost methods. How can i retrieve the information in the servlet if i have multiple submit buttons in my html page?
    pls help me.......

    is your question how do i know what button was pressed?
    in html
    <INPUT name="type" value="a" type="submit">
    <INPUT name="type" value="b" type="submit">
    <INPUT name="type" value="c" type="submit">
    <INPUT name="type" value="d" type="submit">in servlet
    String type = request.getParameter("type");
    // type = a | b | c | d

  • How to prevent multiple clicks of submit buttons in OAF Pages

    Hi All,
    Our page takes around 30 seconds to 1 minute for processing.
    Some users are not patient enough. I have tried putting the below code in my PR method.
    OAWebBean body = pageContext.getRootWebBean();
        if (body instanceof OABodyBean)
        ((OABodyBean)body).setBlockOnEverySubmit(true);
    This code disables submit button for some time. After few seconds, the submit button can be clicked again by the user.
    Also, if I click on other browser window and come back to OAF page, the submit button can be clicked again immediately.
    Have also searched OAF forum but didn't find any satisfactory answer.
    Need answer from Oracle on this. If not answered on the forum, will raise an SR.

    Hi Amit,
    Try using the Processing Symbol , after clicking the Submit button. Which does shows you processing clock symbol once you click Submit Button.
    Regards
    Raghu

Maybe you are looking for

  • Backing up photos and catalog to second hard drive

    i just installed Photoshp elements 7 on xp home machine.  i have done a lot of work to tag much of my collection.   i know from using databases like this, they can be corrupted.  i want to back up the catalog before that happens.  however when i go t

  • I can't get applications to stop reopening upon startup.

    I've quit all applications (not just closed them), unchecked the box in general preferences, and uncheck the box in the shutdown window, but they still open on startup!

  • Weblogic 5.1 (NT) and DB2 (S/390)

    I'm running Weblogic 5.1 under my NT-Workstation. I'm connected to a DB2-System via DB2-Connect and an ODBC-Ressource on my Workstation. With a Java-Application i can initialize the IBM-JDBC-Driver and perform the Stored Procedure at the DB2-System.

  • Is it possible to play flight simulator X on  i mac ?

    Is it possible to play Flight Simulator X on a imac ? Thank you for your answer.

  • Annoying behavior when opening mail with embedded images

    When I open an email that have embedded images within it, I am finding that Mail is always seizing control of the scrolling and is forcing the mail message to return to the top of the page. This happens while I am scrolling though the message and rep