Modify width property in CL_GUI_CUSTOM_CONTAINER

Hello,
I have created a HTML custom container (class CL_GUI_CUSTOM_CONTAINER) and then, as a child of this object, a html control (class cl_crm_cic_html_viewer). which calls a URL. I'm trying to modify the size of this container using the SET_WIDTH method, but the size does not change. The code i am using is basically the following:
  CREATE OBJECT my_container
        EXPORTING
            container_name = 'HTML'
        EXCEPTIONS
            OTHERS = 1.
CALL METHOD my_container->SET_WIDTH
    EXPORTING
      WIDTH = 500.
CREATE OBJECT html_control
       EXPORTING
            parent    = my_container
            SHELLSTYLE = i_style.
CALL METHOD html_control->show_url
    EXPORTING
      url = doc_url.
Does anybody know how to change the size properties of the gui containers?
Thank you and best regards,
Mario

Hello Björn,
The problem is that i'm not drowing anything with the screren painter. I have a BSP view inside the html_control. The BSP has the 100% of the size, but the html_control only shows a part of it, because the resolution of my screen (1280x1024) is bigger than the standard .
I don't know how to resize the html_control to obtain all the posibilities of this resolution.
Best regards,
Mario

Similar Messages

  • Web Part Not Re-sizing Based on Width Property

    I have a SP 2010 publishing site with a custom master page, using the Body Only page layout.  I inserted a discussion board web part in the page content section of the page.  When I go into the standard web part properties and try to set an absolute
    width (in pixels), the web part itself does not squeeze down to this size.  Instead, the web part content stays the same size, and some other div involved gets the width applied and covers up the web part content (sounds confusing, see image below for
    example).  
    I tried this on a site with no master page and a web part zone, and it the web part content itself resized, which is what I was hoping to see above.  Has anyone else seen this behavior?  Does the web part need to be in an actual web part zone in
    order to resize?  Or is this all just a problem with my custom master/styles?  I suspect it may be the latter, but I'm not sure how much control I have to fix it.  Anyway, any thoughts would be greatly appreciated.  Image samples below
    to illustrate the issue.
    IMAGE 1: See how "Last Updated" is cut off at the end?  This was set to 600 pixels.  The web part content doesn't resize.
    IMAGE 2: This was set to 500 pixels in a traditional web part zone on a page with no custom master.  The content resizes as expected.

    I would use the Internet Explorer Developer tools to inspect the page and the styles being applied to the webpart. That will give you a clear understanding of what styles are being applied to your webpart (and the HTML that the webpart renders). 
    You can then use an HTML Form webpart (or attach a stylesheet) to apply CSS styles to override the width property and any other styles that require changing, in order to get the webpart to display correctly for your given width.
    Regards, Matthew
    MCPD | MCITP
    My Blog
    View
    Matthew Yarlett's profile
    See my webpart on the TechNet Gallery that allows administrative users to upload, crop and format user profile photos. Check it out here:
    Upload and Crop User Profile Photos

  • How to modify entity property?

    I have one custom attribute xcode in the BuilHeader. I know to access to the structure struct.xcode component corresponds to access to the xcode attribute of the BuilHeader genil object. To implement getter & setter method calls with non-generic method implementation.
    I have several context nodes in the view. I am enhancing one the context node called customer. Within these customer node, I have this struct.xcode. How I can modify this entity's property?
    Your reply is highly appreciated.
    Best regards
    Banu

    Hi,
    Is XCODE a pure customer enhanced attribute?
    Do you want to modify the property of the field, for example whether it is
      FIELD_TYPE_INPUT
    or
      FIELD_TYPE_PICKLIST
    Or some other property?
    You may think of redefine method GET_P_XCODE in the CLCN class.
    If you would like to change the value, please also check the method GET_XCODE and SET_XCODE and all the GET* methods.
    You can easily get example coding from standard component, one example I am checking recently:
    BT126H_APPT/ApptDetails
    //BTDATE/TIME
    Implementation Class CL_BT126H_A_APPTDETAILS_CN04
    Hongyan

  • Configuration Manager Module - modify expanded property?

    I am playing around with the Configuration Manager module  - specifically I am trying to modify properties of a maintenance window. 
    If I run: get-CMMaintenanceWindow -collectionID xxxxxxxx
    It pulls back the collection by the ID and displays some other properties (duration, name, description, etc). I am interested in modifying the property called "IsEnabled". I can narrow down to this property by piping into:  | select -expandproperty
    "isenabled"
    How can I modify this expanded property? Currently the value is $true but I want to set it to $false (then eventually back to $true)
    I don't think I am getting creative enough. Any suggestions?

    I am stuck.
    I can query via cmdlets and acquire a collection's maintenance window and view all the properties - but cannot modify the IsEnabled (or haven't discovered how yet)
    Get-CMDeviceCollection -name "sccm-mw-prod - 1we*" | select -expandproperty collectionid | foreach-obj
    ect {Get-CMMaintenanceWindow -CollectionId $_ } | select *
    As suggested, I started digging into WMI. I was able to pull collections by name and get their members
    query for collections with "1we" in the name
    gwmi -class sms_collection -namespace "root\sms\site_xxx" | where name -like "*1we*" | select name,collectionid
    If I put the above line into variable $test and pipe it like so, I can get the members of each collection
    $test | foreach-object {gwmi -class sms_collectionmember -namespace "root\sms\site_xxx" | where classpath -lik
    e "*$_" | select name | sort}
    NOW, if I take $test and change the query so it selects * instead of just name and collectionID - I can't find any properties that indicates maintenance/service window. All I see is one that says 'ServiceWindowsCount' which is useless.
    $test = gwmi -class sms_collection -namespace "root\sms\site_xxx" | where name -like "*1we*" | select *
    I then started playing around with a different WMI class called "sms_servicewindow". 
    $test2 = gwmi -list -namespace "root\sms\site_xxx" | where name -like "sms_servicewindow"
    If I type: $test2.properties I get a list of properties but they seem like a generic list; aka, they don't pertain to a specific maintenance/service window. I do see familiar properties like IsEnabled, description, duration, etc. I could be wrong though.
    *Ultimately, I would like to have a script that I could pass certain collections to and it would set the "isenabled" field for their maintenance windows to $false instead of $true. If we need to delay patches for a specific weekend, I don't want
    to have to manually go in to each window and disable it by hand - I can just run the script. This doesn't seem possible unless I am missing something. 
    Any help is appreciated!
    EDIT: and of course, if there was an easier way in the GUI to select multiple collections and disable all of the maintenance windows I would use that too - doesn't have to be a script. But I haven't found any other way to do this in the GUI besides manually
    doing it to each collection > MW.

  • Why can't I modify the property of a DAQmx timing node?

    I have right click the property and click "select property> browse>search property> more:reference clock:source". But the property list didn't update and I can't modify the property to "reference clock:source".
    Help me on this!
    Thanks!

    I think this article might be helpful, even if you are in a more recent version of DAQmx.  Otherwise, we might be looking at reinstalling the drivers.
    Kyle B  |  Product Support Engineer  |  ni.com/support

  • Spry Menu bar - cell width property

    I have a Spry menu bar and I want to modify the width of 1 of the menu item blocks (or cells or whatever they're called). Which property handles this, if any? I need to lengthen the width of 1 menu block to prevent the menu item text from going to the next line. BTW, I have DW CS6, Windows 7-64bit OS. Thanks, Ben 

    Depends on which Spry Menu you are using.  For Spry Menu 2.0
    #MenuBar  .MenuItem  .MenuItemLabel {
    text-align:center;
    line-height:1.4em;
    color:#ffffff;
    background-color:#037903;
    padding: 6px 15px 6px 39px;
    width: 7em; /**adjust width as needed or use auto**/
    But if you use anything other than "auto," all menu items will be the same width.
    Nancy O.

  • Changing scaleX/scaleY on parent scales the children but doesn't update  height/width property ?

    have created a custom component - MyImage - that has two children including a Bitmap as well as a Sprite.
    My display object hierarchy is as follows -
    mx:Canvas
      view:MyImage
         mx:Bitmap
         my:Sprite
    If I change the MyImage.scaleX, scaleY property, the children scale as I would expect them to.
    However when I try to place the children in the center using placeAgain() on getting a resize event:
        public function placeAgain():void
            if (image==null) return;
            var pCanvas:Canvas = this.parent as Canvas;
            if (image.width <= pCanvas.width)
                pCanvas.horizontalScrollPolicy="off";
                image.x = (pCanvas.width -image.width)/2;
            else
                pCanvas.horizontalScrollPolicy="on";
                image.x=0;
            if (image.height <= pCanvas.height)
                pCanvas.verticalScrollPolicy="off";
                image.y = (pCanvas.height -image.height)/2;
            else
                pCanvas.verticalScrollPolicy="on";
                image.y=0;
            alignKids();
    I find the image.height & width have not changed despite the image getting scaled!
    Isn't the child supposed to have its bounds changed after scaling its
    parent ? Especially after the child has actually been scaled correctly ?
    Why are bounds of the child stuck at the same value as before scaling? I
    am not caching the Bitmap, have not turned on caching of bitmaps.

    If I'm not mistaken, the bounds are updated with the scale. You rare not referencing the bounds, your referencing the width and height properties, which is a bit different. What happens if you use the getBounds function to get your dimensions?

  • Display of field width property...

    When we use a Number field of width 8 in query, then property of that field is rightly showing width of 8.
    But when we use ABS function over that field in query, the width in Reports is changed from 8 to 38. This happens to every Number field.
    We are using Oracle 9i and Reports 6.0.
    What is the reason of this difference ? And what care should be taken in Report Layout ?
    Thanks,
    Kiran.

    Hi Nishad,
    Its possible to change the field label, Follow the Steps,
    1) Enter T.Code CMOD .
    2) click on GOTO, "TEXT ENHANCEMENTS", then "KEY WORDS", Then "CHANGE".
    3) Enter your Data element, it will navigate to field label screen ,
    4) Change the field labels as per your client desire , save it.
    5) check your table .
    I hope it will surely work out.
    Regards,
    Saravana.S

  • Display 'Modified By' property in search results

    Hello All,
    Can anybody help us to display the modified by information on search results.
    Current search results displaying 'Author'. But I want to display the user name who last modified the document.
    Please suggest.
    Thanks & Regards

    Hi,
    You will need to create a new 'metadata property' through search and map it as below (though there is 1 OOTB property but you cannot use it) -
    1) Create metadata property, say 'Modified By User' (text)
    2) Map it to - ows_Modified_x0020_By(Text) , ows_ModifiedBy(Text) , Office:8(Text)
    3) Run a full crawl
    4) After this, you need to modify the search results XSLT to add 'Modified By' in the results page. You will find good articles on this on MSDN/Technet (check here - https://msdn.microsoft.com/en-us/library/office/ms560074(v=office.14).aspx)

  • Modify width of rectangle based on page number in InDesign via Javascript

    I have a rectangle called `pageBar` on my master page !
    I would like to create a script that will automatically resize the width of the rectangle based on the page number.
    Something like : `width = 1280 * (pageNumber / pageTotal)`
    Any help would be much appreciated.
    Thanks in advance,
    J.

    Here's the script I ended up with. I'm a bit unhappy that I ended up having the literal string "pageBar" in it twice. The second instance is there to allow the script to be run on the same document twice -- that's one of the prices you pay for using master page items in a script rather than creating objects on the fly and applying an object style to them (better than setting selected properties):
    //DESCRIPTION: Size PageBar on each page
    (function() {
              if (app.documents.length > 0) {
                        sizePageBars(app.documents[0]);
              return;
    function sizePageBars(aDoc) {
              var pageBar = getMasterItem(aDoc, "pageBar");
              if (pageBar == null) return;
              // walk through the document's pages and deal with each page
              var theMaster = pageBar.parent;
              var numPages = aDoc.pages.length;
              for (var j = numPages - 1; j >= 0; j--) {
                        if (theMaster == aDoc.pages[j].appliedMaster) { // ignore pages with other masters
                                  processPage(aDoc.pages[j]);
              function processPage(page) {
                        // numPages, pageBar and j are visible as global variables in this function
                        // caculate desired width
                        var desiredHalfWidth = 1280 * (j + 1)/(numPages * 2); // j starts at zero;
                        // could be running script for a second time, so check to see if page already has pageBar on it
                        var bar = page.rectangles.item("pageBar");
                        if (bar == null) {
                                  var bar = pageBar.override(page);
                        var pBounds = bar.geometricBounds;
                        var xCenter = (pBounds[3] + pBounds[1])/2;
                        pBounds[1] = xCenter - desiredHalfWidth;
                        pBounds[3] = xCenter + desiredHalfWidth;
                        bar.geometricBounds = pBounds;
              function getMasterItem(aDoc, name) {
                        var appliedMaster = aDoc.pages[0].appliedMaster;
                        var anItem = appliedMaster.rectangles.item(name);
                        if (anItem == null) {
                                  alert("Couldn't locate 'pageBar' rectangle.");
                        return anItem;
    I was going to introduce to the resize method, but that would have first meant understanding it myself. The description in the object model viewer is a masterful demonstration of how not to communicate complicated information.
    So I did a web search and found myself on this page by Marc Autret: http://www.indiscripts.com/post/2013/05/indesign-scripting-forum-roundup-4
    Search that page for resize and you'll see what I mean. Compared to the simple manipulation of geometric bounds, using resize is a nightmare of complexity. Marc has simplified it by providing a function you can call, but I decided to just go with using the bounds.
    I hope this proves helpful to you.
    Dave

  • Width property won't bind to a value

    OK, I have some (seemingly) simple data binding that's giving
    me warnings when I compile... I have a custom component and an
    HBox... I simply want the HBox's width to be whatever the width of
    the component is...
    <mx:HBox width="{comp.width}" ... > ...
    </mx:HBox>
    <my:component id="comp" .../>
    I do not declare a width for the component in the
    instantiation, nor in the declaration... Flex determines it by the
    width of all its sub-components... Anyway, when I compile, it's
    saying, "Data binding will not be able to detect assignments to
    'width'." Am I missing something simple here...? Is it just because
    of the order I insert them (component after HBox)...? I don't think
    that should affect it... Someone help me out please!
    - Ian

    "istrasci" <[email protected]> wrote in
    message
    news:gb8nf8$lr6$[email protected]..
    > OK, I have some (seemingly) simple data binding that's
    giving me warnings
    > when
    > I compile... I have a custom component and an HBox... I
    simply want the
    > HBox's width to be whatever the width of the component
    is...
    >
    > <mx:HBox width="{comp.width}" ... > ...
    </mx:HBox>
    > <my:component id="comp" .../>
    >
    > I do not declare a width for the component in the
    instantiation, nor in
    > the
    > declaration... Flex determines it by the width of all
    its
    > sub-components...
    > Anyway, when I compile, it's saying, "Data binding will
    not be able to
    > detect
    > assignments to 'width'." Am I missing something simple
    here...? Is it
    > just
    > because of the order I insert them (component after
    HBox)...? I don't
    > think
    > that should affect it... Someone help me out please!
    What is component extending?

  • Modified by - Property

    Hello Experts,
    we are using a simple layout set for our KM. One property is the modifiedby-property which links to the userprofile when cklicking on it.
    In our case we don't need this userprofile because we have a central expert profile database, which is accessible via http.
    What I need to know is:
    is it possible to open the external profile instead of the sap profile (e.g. http://expertprofiles/email=EMAIL -> email address is dynamic - and could be retrieved from sap portal account)
    how can I do it in a few steps or must I program it?
    I hope my requiremnt is clearly described.
    Many thanks
    Steve
    Edited by: Steve on Oct 7, 2009 1:02 PM

    Hi Steve,
    You have to develop a Property Renderer and not Resource Renderer. You can get more info from this page: [FlexUI Components|http://www.sdn.sap.com/irj/sdn/go/portal/prtroot/com.sap.km.cm.docs/library/netweaver/netweaver-developers-guide-2004s/NetWeaverDevelopersGuide2004s_Documents/KM_articles_new/howto/km/flexui/Flexible%20UI%20Components.html]
    Regards
    Ranjith

  • Modifying the width of the DESNAME system parameter in Reports 6i

    This is probably so simple so I apologise for posting it here but I've been asked to look at an error with an Oracle Report (Reports 6i) (I've never really used Reports).
    When attempting to run the report, we get the following error :
    REP-0091: Invalid value for parameter 'DESNAME'.
    I think this is because the runtime value supplied for the DESNAME parameter exceeds the width property defined in the report. However, I cannot seem to modify the width property in Report builder.
    Can someone tell me how to modify the width property for the DESNAME system paramter ??

    Hi!
    I don't think it is possible to increase its width. It's a system parameter which can have several pre-defined or user-defined values. Check the documentation or help regarding this.
    Also, I think you can check several things.
    1. Check "Report Triggers" if any. DESNAME can be modified there. Menu item "Program" --> "Find and replace in PL/SQL..." can help to search the code.
    2. But more likely, incorrect value of DESNAME is passed into report from a calling module or batch script, or whatever. It can be a RUN_PRODUCT call in forms, or RWRUN60 in script. Check DESNAME there.
    3. Try to debug. Use srw.message to display DESNAME value at report startup, for instance in "before parameter form" trigger.
    Regards,
    Andrew Velitchko
    BrainBench MVP for Developer/2000
    http://www.brainbench.com

  • Modifying property file at run time

    Hi all..
    I have been using properties file for handling few configurations in my project.
    whenever i need a change in the file, i had to change it in corresponding file, create a jar file and then introspect it into project and then publish the project.
    Is there any other way of achieving it.... can we modify the property file at run time just like we do for JSP pages...
    Or any other better way of doing this.. pls suggest..
    (am using 10g OBPM)
    Have a nice time...
    Regds,
    Viswanath

    Sharma,
    write a java class that reads a property file from the external path. make the jar file non-versionable in case you need to update that later. if you are on J2ee container all you need to do it drop the file @ domain root and u shd be good to go.
    sample code I am doing this for log4j.properties and application propertied.
    public class BPMLoggerUtil {
         // Initializing the default Logger //
         private static Logger logger = null;
         private static final String DEFAULT_PATH = "resources/log4j.properties";
         private static HashMap map = new HashMap();
         * This is the init method
         * @param propertyPath
         public static void init(String propertyPath){
              try {
                   if((logger = (Logger) map.get(propertyPath)) == null){
                        Properties properties = new Properties();
                        properties.load(LoggerUtil.class.getClassLoader().getResourceAsStream(propertyPath));
                        PropertyConfigurator.configure(properties);
                        logger = Logger.getLogger(PropertiesHelper.getProperty("resources.test", "AppName"));
                        map.put(propertyPath, logger);
              } catch(Exception ex) {
                   ex.printStackTrace();
         }

  • Modifying right/left/top/bottom property

    I have an mx:Image control that has a right="20" property.  I want to modify this property on the fly, but I can't do it.  There doesn't seem to be any way to access it from ActionScript.  Am I missing something?
    The reason I want to do this is I have a canvas that I use the mx:Move effect on, and if the image has a right property, it looks really terrible when the canvas moves.  (I'm sliding it "off screen").  The image kind of sticks to the side and looks jumpy and nasty when the effect plays.  I need to somehow un-anchor the image from the right side before starting the effect.

    In ActionScript, you set style properties with myImage.setStyle("left", 10);
    Remember, left, right, etc. only work when using absolute layout, and don't work in VBox, HBox, etc.
    If this post answers your question or helps, please mark it as such.
    Greg Lafrance - Flex 2 and 3 ACE certified
    www.ChikaraDev.com
    Flex / AIR Development, Training, and Support Services

Maybe you are looking for