Changing field position at runtime

I am running forms 6.0.8.14.1
I have a field with a when-mouse-double-click trigger. When the user
double-clicks the field I want the cursor to move to a field in a different
block and display it over the current field hiding it. This works fine client
server. On the web it appears that the field is coming up behind the field I
want to hide. Is this a bug or am I missing something??
This is the code:
DECLARE hold_item varchar2(30) := :system.cursor_item;
l_value varchar2(1);
y number;
x number;
w number;
h number;
BEGIN
:dummy.hold_item := hold_item;
l_value := 'T';
x := to_number(get_item_property(:system.mouse_item,x_pos));
y := get_item_property(:system.mouse_item,height);
y := y * (to_number(:system.mouse_record_offset) - 1);
y := y + to_number(get_item_property(:system.mouse_item,y_pos));
w := get_item_property(hold_item,width);
h := get_item_property(hold_item,height);
set_item_property('dummy.display_stc_type2',position,x,y);
set_item_property('dummy.display_stc_type2',navigable,property_true);
set_item_property('dummy.display_stc_type2',width,w);
set_item_property('dummy.display_stc_type2',height,h);
:dummy.display_stc_type2 := l_value;
go_item('dummy.display_stc_type2');
synchronize;
END;

But in general, we don't support overlapping items - the behaviour is undefined and you don't know which will be displayed on top.
So if you want to pop one field ontop of another - you must explicitly hide the field that you want to overlay

Similar Messages

  • Change Field positions in selection screen of powl

    Hi all,
          I want to change the position of the fields in selection-screen of POWL,
      can any one suggest me on this.?
    Thanks all,

    Hi Vani
    You can refer the standard code in method IF_POWL_FEEDER~GET_SEL_CRITERIA of your feeder class.
    It goes something like this
      DO.
        CLEAR ls_selcrit.
       CASE sy-index.
          WHEN 1.
            ls_selcrit-selname            = 'SVBELN'.
            ls_selcrit-ref_field          = 'VBELN'.
            ls_selcrit-ddic_shlp          = 'LORD_VMVA'.
            ls_selcrit-kind               = lc_kind_range. " select option
            ls_selcrit-selopt_type        = 'A'.           " Select-option with interval and multi-selection
            ls_selcrit-header             = hdr_text_document_data.
            ls_selcrit-allow_admin_change = abap_true.
      ENDCASE.
        APPEND ls_selcrit TO mt_selcriteria.
      ENDDO.
    You need to enhance the above standard code using BADI in order to change the position of fields in selection criteria according to customer requirement.
    Regards
    Lorraine

  • Change Dialog Screen Field Position Dynamically

    Hi
    Can I change screen field position at runtime?
    I saw that in the SCREEN Structure there aren't any fields to set the position. Is there a Function Module or a Class to do that?
    Thanks,
    Eyal

    Hi Eyal,
    Good Question.
    1. R/3 abap does not allow this facility.
    2. However, if we use a custom control /container,
       then there one property LEFT, TOP,
      which is avaialbe in the OO hierarchy.
      CL_GUI_OBJECT  1 
      CL_GUI_CONTROL 2  <----
      ... CL_GUI_ALV_GRID, ETC. ETC.
    3. This 2 has got this property
    4.  we can use like this.
      CALL METHOD grid->set_top
        EXPORTING
          top        = 1500
        EXCEPTIONS
          cntl_error = 1
          OTHERS     = 2.
    5. I tried but i don't know why its not working.
    regards,
    amit m.

  • Search help Field positions

    Hi,
    Is it possible to change the field positions in the Hit List of a standard search help without using the access key?
    Please let me know.
    Thanks,
    Binu

    Hi Binju,
    I am not sure whether this will be listed in SPAU during upgrade.
    Yes, you didnt require access key to change field positions, add/delete search help parameters which are available in selection method i.e database/view fields for search help.
    This change effect the search help assigned to data eleements and tables assigned in SAP, so be caution before doing the change. If your change is specific to a particular instance then go for append search help. Copy the search help and provide this search help as new tab to your standard search help.
    Thanks,
    Vinay

  • Custom fields position change in srm 7.0 in Purchase Order on WebDynpro

    Hi Experts,
    We are upgrading to SRM 5.0 to SRM 7.0
    In Purchase order screen,under account assignment,we want to see the acocunt assignment detailed view as the default view under tab "ACCOUNT ASSIGNMENT".Click on the DETAILS button and then the details show up in the bottom part of the screen.
    Can anyone advise how do we change the postion of fields in the account assignment tab which are created dynamically.
    My requirement is :
    Rahmenkostenstelle field should come below Bahnstelle field
    WebDynpro Component:   /SAPSRM/WDC_UI_DO_ACC
    View:  V_DO_ACCOUNT_DETAIL
    Thanks,
    Aarthi.

    Hi,
    Did you manage to solve the issue? I've tried to define customizing point "Configure Generic Field Display on User Interface" with no luck.
    I've even tried to enhance the corresponding WD Component for SC items detail. Field position is correct in the layout editor, but position changes when fields are rendered in runtime.
    Does anybody have any idea regarding related OSS? what am I missing?
    Regards

  • I want to change the infotype 0002 field position(first name & lasname)

    Dear Freinds,
                 I have requirement where i have to change the positions of the first name and last name , as pe standard we will see is
    the lastname under that field we will se the first name . As per the user he wanted first name and then last name . I have read in sap help that it says the table T522N is the place. But before using i wanted to can i change or is there any method where i can do.
    i have changed the name2 as middle name by going to cmod and changing the text label. Here it dint asked me any access key.
    similary for chaning the position of the two fields can i do so please let me know if any body has done this.
    regards
    divya.

    Hi Divya,
    You can't change the position of the fields in standard SAP screens - PA30/20.
    This would be repair and you need to get access key to change the 2000 screen of module pool MP000200.
    T522N is used to change the name format in reports, etc. (Firstname Lastname or Lastname Firstname) It has nothing to do with the field positions in the screen of PA20/30.
    Regards,
    Dilek

  • Change the position of the text field in the report region

    Hi,
    I am having a report region in whch there are 2 buttons which are in the Region Template position #Create# and a
    text field. I added a text field in the same region. I tried to change the position of the text field near the buttons. I
    tried to change "label-Horizontal/vertical alignment" and "Element horizontal vertical alignment". But the postion of the
    text field is not changing. Plz help,
    Thanks,
    TJ

    Hi Andy,
    Sorry to ask this questions.
    1.Where exactly i need to change the HTML code(By uisng the view source?)
    2.My taskname part html code when viewing the source is given below
    tabindex="999"><img src="/i/e.gif" alt="Edit" class="eLink" />
    </a><tr></td><td nowrap align="left">
    <label for="P1_TASK_NAME" tabindex="999">
    <a class="t16OptionalLabelwithHelp" href="javascript:popupFieldHelp('5853137628393530415','676839962625525')"
    tabindex="999">Task Name</a></label></td>
    <td  colspan="1" rowspan="1" align="left" valign="top"><input type="hidden" name="p_arg_names"
    value="5853137628393530415" /><input type="text" name="p_t06" size="10" maxlength="20" value=""
    id="P1_TASK_NAME"  /><a class="eLink" title="Edit" href="javascript:popupURL('f?
    p=4000:371:676839962625525::::P371_ID,FB_FLOW_ID,FB_FLOW_PAGE_ID:5853137628393530415,107,1');" 
    tabindex="999"><img src="/i/e.gif" alt="Edit" class="eLink" /></a></td></table>
    <table summary="" cellspacing="0" cellpadding="0" border="0" width="100%"><tr><td align="right"><table
    cellpadding="0" cellspacing="0" border="0" summary="" class="t16Button">please suggest what changes i need in this code to change the alignment of the task_name text field,
    Thanks,
    TJ

  • Changing Screen field position dynamically

    Hi,
    Is there a way to change the position of screen fields dynamically in a module pool program?
    My requirement is that based on the value of a variable, I need to arrange a few input and text fields on a subscreen in different order.
    Points will be rewarded for helpful answers..
    Regards
    Abhishek

    Hi,
    For this what I can think of is that u need to create the fields multiple times on the same screen and then using SCREEN variables, u need to make them visible/invisible.
    e.g. Say, u want Matnr at first position at one time and 6th position at another. In that case, what u can do is create the field MATNR twice and them hide/unhide it depending upon the condition.
    Hope this helps.
    Regards,
    Himanshu

  • Change the position of fields

    Hi Experts,
    May any body tell me how can we change the position of the field in the application .e.g.In activity calendar we have priority and objective fields and we want that objective come first then priority.
    Can any body please tell me the process.
    Regards,
    Khurram Siddique

    Hi siddique,
                Let's consider  
    Position      Filed Name              Field Type
    10       FUNCTION     INPF Inputfield
    20       DEPARTMENT     INPF Inputfield
    now if you want to re-align these function and department fields, then first delete those two entires in the field group, then make entires of these two fields by changing the positions
    Position    Filed Name              Field Type
    10     DEPARTMENT     INPF Inputfield
    20     FUNCTION     INPF Inputfield
    and generate the layout..
    Thanks,
    Anil

  • Change webdynpro element position during runtime.

    Hi Experts,
    For one SAP standard screen there are 4 input field in the webdynpro view. Is it possible to change the position/order of these standard elements by enhancement or during run time?
    Thanks

    Hi Srinivas
    Yes, this is possible !
    You can create a component configuration(CC) from the context menu of the related Web Dynpro Component (Create/Change Configuration).
    Enter an id for new CC eg., ZTEST and click Create.
    In the next screen, click on the last tab labeled Web Dynpro Built-In. Hierarchy of UI elements will be displayed. Click on the Container UI element that contains your 4 input fields and then click on Re-sort link that appears on the right hand side. Now you can sort the input fields. Save your Comp Config. Run the standard WD application using newly created comp config by passing parameter 'ZTEST' in the URL.
    Hope this helps.
    Regards
    Lorraine

  • OVS - how to change the position of the fields in the OVS search criteria

    Hi,
    I have an OVS search screen where 4 search criterias are  there.Based on the search criteria , the values will be papulated in the OVS screen.
    Now I have to change the position of the fields in the search criteria.Means if the Maximum field (one of the search criteria) is in the first position,I need to put it in the last position.I have ro change the position of the search criteria field and not the result fields.
    Please suggest me how to do that.
    Regards
    -Sandip

    Hi Sandeep,
                      please go through this article for customizing Value Help:
    [https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/c0c6132f-4ea3-2b10-4d8f-e68d2e96113d]
    Thanks and Regards

  • Transfer Rules (Field position changes)

    In the Transfer Rules how can i change the position of the fields? I want a certain field to be on top and so on.

    Hi,
    Add the fields to the communication structure and then make the transfer rules
    add as per ur convenience and then mapping will be done in the order given by you in the comm structure
    thanks
    puneet

  • Change VI position runtime

    Dear All,
    I couldn't find any post which talks/discuss about changing the VI Position at runtime, that's why I have posted this question.
    I want to change the VI Position at runtime, but when I change the VI position at runtime, its not reflecting on the VI. When I run it again( I mean 2nd time) , VIs position got changed...
    Is it possible to change / move VI position at runtime without stop the application ?
    Thanks for your help!
    Gramy
    Solved!
    Go to Solution.

    You have to play with the Front Panel Windows Bounds.  It can get kind of tricky, so be careful.
    There are only two ways to tell somebody thanks: Kudos and Marked Solutions
    Unofficial Forum Rules and Guidelines
    Attachments:
    Move Window Position.png ‏23 KB

  • How to change report displayname at runtime when run from the report server?

    hi all,
    with the reportviewer widget in a winforms app, i'm able to change report displayname at runtime by handling thesubmittingparametervalues event like so:
            private void reportViewer1_SubmittingParameterValues(object sender, ReportParametersEventArgs e)
                string po = e.Parameters["Order"].Values[0];
                this.reportViewer1.ServerReport.DisplayName = "Load Out - " + po + " - " + DateTime.Now.ToShortDateString();
    question: how do i achieve the same thing when the report is run via the ssrs reportserver website?
    thanks for any tips,
    sff

    Hi sherifffruitfly2,
    According to your description, you want to change the display name of report in Report Manager. Right?
    In Reporting Services, we can't make the report file name dynamically. But we have Build-in Fields to show report name and execution time in a report. We can add a textbox and put in the expression below:
    ="Load on- "+Globals!ReportName+" "+Globals!ExecutionTime
    It will show the report name with execution time when we run the report:
    Reference:
    Built-in Collections in Expressions (Report Builder and SSRS)
    If you have any question, please feel free to ask.
    Best Regards,
    Simon Hou

  • How to change the position of a rectangle dynamically

    Hi,
    I am designing a form, where the position of a rectangle has to be changed dynamically. I'm trying with Set_Item_Property(Position property). But I'm unable to change the position. I need some information regarding this graphics object. Normally, we attach block name with the items. Then for these graphics object, what will be attached. I'm using Forms 6i version.
    Regards,
    Alok Dubey

    you can use a stacked canvas with the rectangle in it. Then you can change the position of the canvas at runtime. Problem is, that the canvas overlaps objects...

Maybe you are looking for