Auto resize (dynpro / custom control / html_viewer)

Hello!
I'm using a dynpro + custom control + html_viewer.
Is there a way to make the html_viewer size dynamic? So that if resize the SAP Window the size of the html_viewer changes to the avaliable space on the screen. I don't want fullscree because i want to see the SAP standard menu.

Please refer Flexible custom control
Regards
Marcin

Similar Messages

  • How to select "ISO A" (auto) using Custom Controls with lever assigned to ISO change?

    On 7D Mark II with firmware 1.0.4, I have used Custom Controls to assign ISO change to the lever.  However, it is not possible to change ISO to "ISO A" (auto).  How to select "ISO A" (auto) using Custom Controls with lever assigned to ISO change? 

    Follow Up:
    Ok so ive changed things up a bit and have had some more success.
    I have used a Switch statement in my For loop to perform different actions based on the item selected.
    The code looks like this:
    Workbook.Content.Table1.Row3.AppropriationDetails.Row4.Cell1::change - (JavaScript, client)
    var fFrom = xfa.resolveNodes("Workbook.Content.Table1.Row3.AppropriationDetails[*] .Row4.Cell1");
    var fTo = xfa.resolveNodes("Workbook.Content.Table2.Row3.AppropriationDetails[* ].Row4.Cell1");
    for (var i=0; i <= fFrom.length-1; i++) {
         switch (fFrom.item(i).rawValue)
         case "Option 3":
         fTo.item(i).rawValue = "Enter the details in the field below";
         break;
         default:
         fTo.item(i).rawValue = fFrom.item(i).boundItem(xfa.event.newText);
         break;
    This code solves my problem but has thrown up a new issue:
    When i select Option 1 or 2 from the dropdown list  the change in the text field is instantaneous, however if I select Option 3 it wont appear in the text field until I either select Option 3 a second time or select another item. Its as if the text field is a selction behind what I have enterd in the dropdown list.
    Any thoughts?

  • Dynpro: event handling on input field in custom control?

    Hello,
    can I  put an input/output Field in Custom Control?
    I have seen this (DD_ADD_FORM_INPUT) but i dont need a Form.
    What i want to do is: Double Click Event handling on the input field in the custom control.
    Thank you?

    Hi Mohi,
    OK, you could reduce DD_ADD_FORM_INPUT to what you really need - but the DD elements (rarely if ever used in standard SAP) do not have a double-click event. Must stick to ENTER.
    An alternative is a text_edit or an editable grid_control with one line one field.
    The problem is: There is no way to put any selection-screen element on a control.
    I's go for the grid approach as you certainly may have some more fields of interest.
    Regards,
    Clemens.

  • 'Auto resize image' 'Settings' dialog box controls

    I have a signature that contains an avatar image (size 120px by 120px)
    Every time I 'Send' an 'Auto Resize Image' > 'Settings' dialogue box pops up
    How can I bypass this as its becoming annoying.
    Most emails (98%) do not contain any other embedded or attached images.
    This only started to happen after upgrading to latest version of Thunderbird, was never an issue before.

    Doesn't sound like a standard Thunderbird pop up as I've not come across it.
    Do you by any chance have an addon /extension such as Auto Resize Image?
    * https://addons.mozilla.org/en-US/thunderbird/addon/auto-resize-image/
    if yes, disable it and retest to see if message stops.
    Check you are using an up to date version.
    check to see if there is some settings you can use to 'not ask again' or similar. Can't say exactly as I do not use it.
    I use the standard TB settings to adjust for sizing when I originally insert an image.

  • Update of custom control

    Hello experts,
    I built a program with just 1 screen. This screen consists of 2 sections. Section 1 contains input fields for a selection, section 2 constains a custom control on which the selected data is displayed as pdf. For the creation of the pdf I use smartforms.
    First selection works fine.
    If I do a second selection with other selection values the pdf is not updated but displays the values of the first selection. How can I display the new values?
      IF custom_container IS INITIAL.
        CREATE OBJECT custom_container
              EXPORTING container_name = 'CUSTOM_CONTROL'.
      ENDIF.
      CREATE OBJECT html_viewer
          EXPORTING parent  = custom_container.
    * pdf_string_x in Tabelle konvertieren
      length = XSTRLEN( pdf_string_x ).
      full_lines = length DIV 1000.
      last_length = length MOD 1000.
      CLEAR offset.
      DO full_lines TIMES.
        i_data = pdf_string_x+offset(1000).
        APPEND i_data TO it_data.
        offset = offset + 1000.
      ENDDO.
      i_data = pdf_string_x+offset(last_length).
      APPEND i_data TO it_data.
      CALL METHOD html_viewer->load_data
        EXPORTING
    *    URL                  =
          type                 = 'text'
          subtype              = 'pdf'
    *    SIZE                 = pdf_fsize
    *    ENCODING             =
    *    CHARSET              =
    *    LANGUAGE             =
        IMPORTING
          assigned_url         = url
        CHANGING
          data_table           = it_data[]
    *  EXCEPTIONS
    *    DP_INVALID_PARAMETER = 1
    *    DP_ERROR_GENERAL     = 2
    *    CNTL_ERROR           = 3
    *    others               = 4
      IF sy-subrc <> 0.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
      CALL METHOD cl_gui_cfw=>flush.
      CALL METHOD html_viewer->show_data
        EXPORTING
          url = url.
    Thanks in advance!
    Johannes

    CLEAR IT_DATA[].
      DO full_lines TIMES.
        i_data = pdf_string_x+offset(1000).
        APPEND i_data TO it_data.
        offset = offset + 1000.
      ENDDO.
    Use   CLOSE_DOCUMENT
          or DO_REFRESH method the second time

  • Dynpro Table Control Column's Order

    Hi everyone,
    I am facing a strange issue in a Dynpro Table Control with the order of the columns.
    I had to add a new key filed in a standard view. When I am running the Table Maintenance Generator in SE11, the Dynpro Table Control is generated correctly and the new column appears at the right place with the other key fields. But when I display the view data with either in SE11 or using the Customizing link in SPRO, the new key field appears at the complete right end of the Dynpro in between two normal fields.
    I tried to delete the screen and to generate it again, I tried to use the same screen number and also a new screen number but the result is always the same. The column's order is not correctly displayed when executing the Dynpro.
    The only way the columns are correctly displayed it's if I created a new screen in a new Z program but this solution cannot be consider since we are talking about standard Dynpro / Table / Function Pool. Using a Z program would not permit to use the standard SPRO link no more.
    I know that sometimes the Table Maintenance Generator does not work properly but I never saw this kind of behavior before. Can someone help me?
    Thank you in advance for your answers,
    Sylvain

    hi,
    r u making through wizard?
    it is good practice.
    Otherwise first take I/O field, give name and than u can take text field for column heading.
    Reward if useful.

  • Auto Clearing of Customer Account with Special G/L W

    Dear Experts,
    Currently auto clearing of customer account with norm items is running smoothly.
    When we tried to run the same for Special G/L Indicator "W' in F.13 tcode , it is not happening (Category 'W' special G/L transaction were
    not selected).
    Even we tried to change the rules in Ob74 but no luck.
    We can do manual clearing through F-32 but the volume is very high on every day.
    Since we considered Open PDC's is one of the criteria for credit control customer in our business and hence system is blocking
    all customers where documents having special g/l w even though net amount is zero in fbl5n.
    Could you please suggest me how to do auto clearing.
    Regards
    Shaik

    Hello,
    Are you trying to clear Bill Of Exchange (SGL Code W) with F.13 ?
    You have to use the remittance process (FBWE and report S_ALR_87012211).
    Regards

  • CUSTOM CONTROL  ( long text )

    Hi,
    I have to implement a custom control in a dynpros of a Module Pool.
    The object must have the following functions:
    -read data from a field of a transaction.
    -edit over new data.
    -save this data, that are saved in a field of a transaction, the CJ20N.  (PS MODULE)
    Anyone have a code that I can use?

    Hi,
    Search with the key word "[Custom Control|Custom Container in module pool program]" you will get many threads related to this.
    Thanks,
    Sri.

  • Customized Control shape varies in Windows XP to Windows 7

    Hello all
     I have created few customized control icon and used in my application,for development i using windows XP ,screen resolution -1280X1024,when i use the Exe created in Windows7 system with screen resolution 1280X1024, the customized control icon resizes it shape.
    i have tried by enabling and disabling the scaling and proportioning of panel objects in a VI to see the difference ,
    File>>VI Properties>>Window Size>>Enable - Maintain proportions of window for different monitor resoltion & scale all objects on front panel as window resizes ,
    please find the attched image for reference.kindly help me out ,if anyone have the solution to overcome this.
    Attachments:
    comparison 1.JPG ‏46 KB

    I don't know for sure, but your problem may be the font changes between Windows XP and Windows 7.  By default, buttons have boolean text centered in the middle of the button.  Even if the there is no text, the button will still resize with font sizes.  To prevent this from happening, right click the button to select the properties and deselect the option to center the text.  If you have disabled showing text, you will need to enable it, deselect centering, then disable text again.
    This account is no longer active. Contact ShadesOfGray for current posts and information.

  • Flexible custom control

    Hi all, I am developing ALV using OO concept in which custom container is placed on custom control, i have kept that custom control of full screen size but my requirement is to make custom control flexible dynamically while we are adjusting the size of main window.
    I used Resizing option while designing the layout, but still its not properly serving my purpose. Is there any other way to work with it?

    There is no direct option which will resize custom control/container when resizing window. The one you already set will prevent from making it too small. You may however, set custom control large enought (i.e fullscreen) but resize container inside it by using methods SET_HEIGHT and SET_WIDTH of cl_gui_custom_container .
    Regards
    Marcin

  • Auto resize width height in TextFlow controller

    HI,
    We are facing the problem in auto resize width height in TextFlow controller. Content is overlaping withing the controller or sometimes it's seems like not full containt displaying on the control.
    We are writing the below code in the flashx.textLayout.events.CompositionCompleteEvent listiner to orgnize the above step:
         var controller:ContainerController = new ContainerController();
         textFlow.flowComposer.composeToPosition();
         var contentBounds:Rectangle = _controller.getContentBounds();
       _controller.setCompositionSize(_controller.compositionWidth, contentBounds.height);
       textFlow.flowComposer.addController(_controller);
       textFlow.flowComposer.updateAllControllers();
    Please correct if are missing any steps above.
    Regards,
    R.BS

    Hi,
    I have got the solution on my last query. Below is the code to get rid of the content display and auto adjust the width & height of the controller:
    var textHeight:int = Math.ceil(_controller.getContentBounds().height);
       if (textHeight > _controller.compositionHeight) {
         TextDataHeight = textHeight + 12;
                   _controller.setCompositionSize(TextDataWidth ,TextDataHeight);
                   textFlow.flowComposer.updateAllControllers();
    I have also set the TextDataHeight = 50 to display complete paragraph text.
    Due to this I have one problem arise that is indentation of the paragraph content or bulleted text on my content.
    Is any one have the solution on this?
    Looking forward for your response.
    Regards,
    R.BS

  • Size dinamically a Custom Control

    Hi all,
    in a dynpro I have two section:
    - one with some parameters
    - one with alv (using cl_gui_alv_grid).
    I build the first section with a sub area and with a button to collapse and expand the sub area. All works fine.
    The problem is that when I collapse the subarea I want to expand the custom control where the alv is.
    I want to do something like the trx ME23N.
    Any one can help me?
    Bye
    enzo

    Hi,
    I just wanna know how you did the collapse / expand for a sub area like tcode me23n do ???
    Any help would be appreciated !
    Max
    >
    Enzo Porcasi wrote:
    > Hi all,
    > in a dynpro I have two section:
    > - one with some parameters
    > - one with alv (using cl_gui_alv_grid).
    >
    > I build the first section with a sub area and with a button to collapse and expand the sub area. All works fine.
    > The problem is that when I collapse the subarea I want to expand the custom control where the alv is.
    >
    > I want to do something like the trx ME23N.
    > Any one can help me?
    >
    > Bye
    > enzo

  • Fully custom controls

    Hello:
    I have struggled with this off and on for several years now. I need to build custom controls for industrial automation applications using LabVIEW and the DSC module. I need the ability to fully customize the appearance of the existing controls while maintinaing color and blink properties. It would also be nice to preserve smooth control apearance when resizing.
    I have figured out how to acheive transparency using Photoshop CS and png files. Other information is obviously lost when an image in a custom control is changed.
    Since the built-in controls scale smothly, can I assume that they are vector graphics based? Can their images be better edited using a vector-based tool?
    Is there a special channel which allows for color properties to be applied to a control's image? Is it possible to manipulate this into custom controls?
    In general, I would like to know how to edit graphics for custom controls so that I can maintain the original ability to use property nodes to control the appearance of a custom control.

    Thank you for the link. It dies answer some of my wuestions, but still leaves me without a solution. Can you provide more information on the "picture in c code" format? I can not find any information on it online. I am a C++ and C# programmer, but I am not familiar with PICC.
    Is it possible to access the source code for the controls included with LabVIEW and truly customize them?
    Thank you,
    plaskey

  • Custom Controls and ALV

    Hi,
    I have created on one Dynpro 3 Custom Controls, which are
    responsible for Three ALV Grid Reports.
    I have named CC1 for ALV1 CC2 for ALV2 and CC3 for ALV3.
    I can put the Data for each ALVs.
    So far so good, but if I save the Layout global for one ALV and start the Program again, disappears me some Elements on other ALVs like Columns , Buttons etc...
    I have used Method set_for_first_display.
    Thanks for your Replies.
    Best Regards
    Beserithan Malabakan

    Wha tis happening is the VARIANT parameter values that you are passing are the same for all the three grids. So, once you alter the layout of one its changing all the grids. What you need to do is to specify a unique name in the field HANDLE of the parameter VARIANT for each grid, say the grid name.
    Then this problem will not occur and you will have variants specific to the grid.
    It has nothing to do with the global / user defined layouts.
    Regards,
    Ravi
    Note: Please mark the helpful answers

  • I need create a custom control for visualization HTML

    Hi guys,
      I need create a custom control for HTML files visualization on SAPGUI JAVA. I created a sample program and perfectly run on SAPGUI Windows.
    Thanks.
    Regards.
    Jose Antonio Campos.

    Hi,
    Just as a quick start
    http://gumbo.flashhub.net/sizer/  (view source enabled).
    this uses a skin to make a titlewindow resizable, its not about the skin as much as giving you a starting point for resizing code.
    if you look into the skin you will see these functions
    protected function sizer_mouseDownHandler(event:MouseEvent):void
    OldX=event.stageX;
    OldY=event.stageY;
    systemManager.addEventListener(MouseEvent.MOUSE_MOVE,startResize);
    systemManager.addEventListener(MouseEvent.MOUSE_UP,endResize);
    protected function endResize(event:MouseEvent):void
    systemManager.removeEventListener(MouseEvent.MOUSE_MOVE,startResize);
    systemManager.removeEventListener(MouseEvent.MOUSE_UP,endResize);
    private function startResize(event:MouseEvent): void
    hostComponent.width -= OldX-event.stageX;
    hostComponent.height -= OldY-event.stageY;
    OldX=event.stageX;
    OldY=event.stageY;
    The idea is to have a hit area on your custom component (a corner, or all corners). You capture the mouseposition when you mousedown then in the mouse move eventlistener you update the object size with the difference between current X and Y from initial X and Y.
    Hope this gets you started.
    David

Maybe you are looking for

  • Can i upgrade MBP MB466LL/A hard drive to SATA 3 SSD

    i have a really good deal on CORSAIR FORSE GT SSD 120 on amazon and i was wandering if my MBP can take the upgrade to SATA 3 SSD alsoi if it take the upgrade how can i move my system from the current HHD to the new SSD drive

  • How to change the column heading as the column changes

    dear memebrs, Take an example fo the table EMP. I need to create a report whose parameters are the table column names. so depending on the parameter(which is the column name) the report o/p changes. so i am dynamically selecting the table column name

  • Indoor color temperature too hot

    I have a 4G Iphone, with the latest software update, and noticed that when I take indoor flash pictures the fleshtones are very hot(yellowish/orange). Besides having to export the picture to my computer to edit the color, is there an adjustment or up

  • Demand Management Workflow

    Is that possible to customize browse upload button in demand management workflow 2013 in Project Server 2013.

  • What is INV_QUANTITY_TREE_PUB.update_quantities effects?

    Hi, Im using bellow querry for update quantities, but it not effect, it is not in synch with corresponding database tables or applications. Anybody tell me what is INV_QUANTITY_TREE_PUB.update_quantities effects? Thanks. DECLARE O_RETURN_STATUS VARCH