To add custom container in actionscript

i have written a code in which i am finding difficulty in getting child in vertically..by pressing add new button
clck New Filter class and den add new...
please check the code..:-
<?xml version="1.0" encoding="utf-8"?>
<mx:Application
xmlns:fx="http://ns.adobe.com/mxml/2009"
    xmlns:mx="library://ns.adobe.com/flex/mx"
    xmlns:s="library://ns.adobe.com/flex/spark"
    >
  <mx:states >
    <mx:State name="si"/>
    <mx:State name="re"/>
    <mx:State name="de"/>
  </mx:states>
  <fx:Script>
    <![CDATA[
      import mx.controls.Alert; 
      import mx.core.Container;
       public function createNewTextInput(event:MouseEvent):void {
        var myTextInput:TextInput = new TextInput();
         myTextInput.width=50;
        var myTextInput1:TextInput = new TextInput();
         myTextInput1.width=122;
        myHBox.addChild(myTextInput);
        myHBox.addChild(myTextInput1);   
      public function myLabelFunc(item:Object):String
             return item.firstName + " " + item.lastName;
      public function myLabel1Func(item:Object):String
             return item.firstName ;
        ]]>
  </fx:Script>
<mx:VBox
id="VBox1"
top="10" 
>
   <mx:HBox
    id="HBox1"
    horizontalAlign="center">
<mx:ComboBox
id="ComboBox1"
            includeIn="si"
            labelFunction="myLabelFunc"
            labelField="name"
prompt="Subject"
width="180" height="20">
           <mx:dataProvider>
           <mx:ArrayCollection>
            <fx:Object firstName="Abhinav" lastName="Somal"/>
            <fx:Object firstName="Adit" lastName="Kumar"/>
            </mx:ArrayCollection>
          </mx:dataProvider> 
        </mx:ComboBox>
        <s:TextInput
        id="textinput1"           
            includeIn="re"
            width="180" height="20"/>
        <mx:LinkButton
            id="linkbutton1"
        label="New Template"
                click="currentState = 're'"
                includeIn="si"/>
        <mx:LinkButton
        id="linkbutton2"
        label="Clear"
        includeIn="si"/>
       </mx:HBox>
       <mx:HBox
         id="HBox2"
         horizontalAlign="center">
        <mx:ComboBox
        id="ComboBox2"
        includeIn="si"
        labelFunction="myLabel1Func"
        labelField="name"
prompt="Filter Class"
            width="180" height="20">       
            <mx:dataProvider >
            <mx:ArrayCollection>
            <fx:Object  />
            <fx:Object firstName="B" />
            </mx:ArrayCollection>
            </mx:dataProvider>
        </mx:ComboBox>
        <mx:LinkButton
        id="linkbutton3"
        label="New Filter Class"
        includeIn="si"
        click="currentState = 'de'" />
       </mx:HBox>
       <mx:HBox
        id="HBox3"
        horizontalAlign="center">
        <s:TextArea
        id="textarea"
        excludeFrom="de"
        text="The selected item is: {ComboBox1.selectedItem.firstName + ' '
        + ComboBox1.selectedItem.lastName};"/> 
<mx:Button
id="Button1"
label="Check Message"
includeIn="si"
click="Alert.show('Check Message Button is pressed','Alert Box',Alert.OK)" />
       </mx:HBox>
       <s:TextInput
       id="textinput2"           
                excludeFrom="re,si"
            width="180" height="20"/>
       <mx:HBox
          id="HBox4"
          horizontalAlign="center">
       <s:TextInput
       id="textinput3"
       excludeFrom="re,si"
       width="50" height="20"/>
       <s:TextInput
       id="textinput4"
       excludeFrom="re,si"
       width="122" height="20"/>
       <mx:LinkButton
       id="linkbutton4"
       label="Add New"
       excludeFrom="re,si"
       click="createNewTextInput(event)"/>
       </mx:HBox>    
       <mx:HBox
               id="myHBox"
               horizontalAlign="center"
               excludeFrom="si,re"/>
   <mx:HBox
id="HBox5"
horizontalAlign="center">
<mx:Button
excludeFrom="de"
id="Button2"
label="SEND" 
click="Alert.show('Send Button is pressed','Alert Box',Alert.OK)"/>
<mx:Button
id="Button3"
label="Create"
includeIn="de"
click="Alert.show('Create Button is pressed','Alert Box',Alert.OK)"/>
<mx:Button
id="Button4"
label="Cancel"
click="currentState = 'si' ;
Alert.show('Cancel Button is pressed','Alert Box',Alert.OK) "  />
   </mx:HBox>
</mx:VBox>
</mx:Application>
thnkx

You can try something like this.  Here I'm attaching a docking container on the bottom of the selection screen, and using an HTML viewer inside the docking. You would need to create your own HTML document with the specific HTML tags and text that you want, and then upload to SMW0 transaction as an HTML template, then use this document id in the program.
zREPORT  rich_0001.
DATA: dockingbottom  TYPE REF TO cl_gui_docking_container,
      html_viewer     TYPE REF TO cl_gui_html_viewer,
      repid TYPE syrepid.
DATA v_url TYPE bapibds01-uri.
PARAMETERS: p_check TYPE c,
            p_rad1 RADIOBUTTON GROUP grp1 DEFAULT 'X',
            p_rad2 RADIOBUTTON GROUP grp1,
            p_rad3 RADIOBUTTON GROUP grp1.
START-OF-SELECTION.
AT SELECTION-SCREEN OUTPUT.
  repid = sy-repid.
  CHECK dockingbottom IS INITIAL.
  CREATE OBJECT dockingbottom
    EXPORTING
      repid     = repid
      dynnr     = sy-dynnr
      side      = dockingbottom->dock_at_bottom
      extension = 300.
  CREATE OBJECT html_viewer
    EXPORTING
      parent = dockingbottom.
* This document_id is the document upload via transaction SMW0 as
* an HTML template
  html_viewer->load_html_document(
     EXPORTING  document_id  = 'HTMLCNTL_CNHTTST1_START'
     IMPORTING  assigned_url = v_url ).
  html_viewer->show_url( EXPORTING url = v_url ).
Regards,
Rich Heilman

Similar Messages

  • "Contains no actionscript" - yes it does!

    Hi,
    I'm new to Flash and actionscripting, but this issue also
    seems to boggle the minds of more experienced Flash users in the
    company I work for, and nobody has come up with an answer to this.
    I use Flash CS3 on PC. I should add that I also use the TxEff
    components by JumpEye. I'm working on a movie that definitely
    contains actionscript (see below), but when I save the file, all
    the scripting is ignored, and when I run the debugger, it says the
    movie cannot be debugged because it contains no actionscript! If I
    click the "check syntax" button, it says the script contains errors
    and that I should check the "Compiler Errors" panel. In that panel,
    there's nothing at all. It's just blank.
    If I copy the frames into a brand new document, it works. I
    can preview the movie as well, and publish it. It's when the
    document is saved that it happens.
    I sent a file to the TxEff folks to eliminate the possibility
    that it's the component's fault, but they couldn't duplicate the
    error on their end, which leads me to believe that there's
    something in my Flash setup that is wrong.
    Below is the actionscript that I have in the movie (at frame
    10), but I don't think it's the scripting itself since the same
    thing has happened in other movies I've made.
    ANY help you can provide in helping me solve this would be
    very much appreciated.
    -- Calle.

    either
    1. create a new fla and progressively add elements from the
    problem fla to the new fla until you pinpoint the problem, or
    2. remove that component from your library and create a
    movieclip with class = TXEFF and retest.

  • HTML BANNER in screen custom container..

    Can someone please give me simple example code or steps to add an HTML banner into a custom container??

    check this class CL_DD_DOCUMENT.
    and Prorams DD_STYLE_TABLE.
    check this blog..
    TOP_OF_PAGE in ALV  Using CL_GUI_ALV_GRID

  • Anyway to add custom javascript on launching an iView

    Hi Expert,
      I would like to see is there anyway to add custom javascript on an iview (which contains standard SAP pcd contain).
    I would like to invoke a script on the onLoad to trigger a popup windows when that iview launch.

    Thanks.
    Actually, I try to pop up a warning box when launching an iview.
    For example, when user try to click an iview. I want to pop up a warning box. After user clock "ok", the system would then launch the iview. Otherwise, it will navigate back to Home Page.

  • Add Custom Field not to all Incidents but in specific IR,SR template

    Hello, Dear Colleagues.
    With this manual:
    Adding a Custom Property to a Form – Support Group Property for Problem Form Example, I have added similarly custom field List Picker to Incident Form. 
    But now this custom field is default field for all new incident. How can I add custom field just in specific incident request or service offering (for example, Printer Repair service offering for Self-Service portal).
    Thanks.
    Have a nice day.

    You're certainly on the right track, this comes down to TypeProjections -
    something you'll absolutely want to start getting familiar with. I was about to start typing a quick post when I found a related said post exists out on the interwebs (https://dynamicdatacenter.wordpress.com/2012/10/03/add-custom-service-request-forms-in-servicemanager2012/).
    So, you can do it manually or you can create a relationship and this XML gets built for you. It certainly makes it a bit easier in terms of XML hacking when you're getting started too (i.e. copying and pasting the relationships)
    That said, I built a version of your management pack including a relationship (Configuration Item -> Printers) so you can get back to building and spend less time troubleshooting some of these quirks. You can copy and paste the following to an XML file,
    seal it to make it an MP and then bundle to a MPB with the ServiceRequestForm dll.
    <ManagementPack ContentReadable="true" SchemaVersion="2.0" OriginalSchemaVersion="1.1" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
    <Manifest>
    <Identity>
    <ID>BranchPrinters</ID>
    <Version>1.0.0.5</Version>
    </Identity>
    <Name>BranchPrinters</Name>
    <References>
    <Reference Alias="System">
    <ID>System.Library</ID>
    <Version>7.5.8501.0</Version>
    <PublicKeyToken>31bf3856ad364e35</PublicKeyToken>
    </Reference>
    <Reference Alias="Console">
    <ID>Microsoft.EnterpriseManagement.ServiceManager.UI.Console</ID>
    <Version>7.5.3079.0</Version>
    <PublicKeyToken>31bf3856ad364e35</PublicKeyToken>
    </Reference>
    <Reference Alias="Alias_48e2011a_96d4_42e2_9a09_7e0da882a6f3">
    <ID>System.WorkItem.ServiceRequest.Library</ID>
    <Version>7.5.3079.0</Version>
    <PublicKeyToken>31bf3856ad364e35</PublicKeyToken>
    </Reference>
    <Reference Alias="Alias_6e472436_00bc_4ca4_bff5_ffd041972427">
    <ID>Microsoft.EnterpriseManagement.ServiceManager.UI.Authoring</ID>
    <Version>7.5.3079.0</Version>
    <PublicKeyToken>31bf3856ad364e35</PublicKeyToken>
    </Reference>
    <Reference Alias="WorkItem">
    <ID>System.WorkItem.Library</ID>
    <Version>7.5.2905.0</Version>
    <PublicKeyToken>31bf3856ad364e35</PublicKeyToken>
    </Reference>
    <Reference Alias="SupportingItem">
    <ID>System.SupportingItem.Library</ID>
    <Version>7.5.2905.0</Version>
    <PublicKeyToken>31bf3856ad364e35</PublicKeyToken>
    </Reference>
    <Reference Alias="CoreKnowledge">
    <ID>System.Knowledge.Library</ID>
    <Version>7.5.2905.0</Version>
    <PublicKeyToken>31bf3856ad364e35</PublicKeyToken>
    </Reference>
    <Reference Alias="Catalog">
    <ID>System.ServiceCatalog.Library</ID>
    <Version>7.5.2905.0</Version>
    <PublicKeyToken>31bf3856ad364e35</PublicKeyToken>
    </Reference>
    </References>
    </Manifest>
    <TypeDefinitions>
    <EntityTypes>
    <ClassTypes>
    <ClassType ID="ServiceRequestBranchPrinters" Accessibility="Public" Abstract="false" Base="Alias_48e2011a_96d4_42e2_9a09_7e0da882a6f3!System.WorkItem.ServiceRequest" Hosted="false" Singleton="false" Extension="false">
    <Property ID="Branches" Type="enum" AutoIncrement="false" Key="false" CaseSensitive="false" MaxLength="256" MinLength="0" Required="false" Scale="0" EnumType="Branches" />
    <Property ID="PrinterModels" Type="enum" AutoIncrement="false" Key="false" CaseSensitive="false" MaxLength="256" MinLength="0" Required="false" Scale="0" EnumType="PrinterModels" />
    </ClassType>
    </ClassTypes>
    <RelationshipTypes>
    <RelationshipType ID="Printer" Accessibility="Public" Abstract="false" Base="System!System.Reference">
    <Source ID="Source_facee4a3_7203_41bd_87d4_e30123445605" MinCardinality="0" MaxCardinality="2147483647" Type="ServiceRequestBranchPrinters" />
    <Target ID="Target_8100dcd2_9c0a_42d1_9746_735a6e9ec302" MinCardinality="0" MaxCardinality="1" Type="System!System.Printer" />
    </RelationshipType>
    </RelationshipTypes>
    <EnumerationTypes>
    <EnumerationValue ID="Branches" Accessibility="Public" />
    <EnumerationValue ID="PrinterModels" Accessibility="Public" />
    </EnumerationTypes>
    <TypeProjections>
    <TypeProjection ID="ServiceRequestBranchPrinterForm_TypeProjection" Accessibility="Public" Type="ServiceRequestBranchPrinters">
    <Component Path="$Context/Path[Relationship='Printer']$" Alias="ComponentAlias_3ae38849_26ce_4c7c_86b4_6b6201aba2f3" />
    <Component Path="$Target/Path[Relationship='WorkItem!System.WorkItemAssignedToUser']$" Alias="AssignedTo" />
    <Component Path="$Target/Path[Relationship='WorkItem!System.WorkItemClosedByUser']$" Alias="ClosedBy" />
    <Component Path="$Target/Path[Relationship='WorkItem!System.WorkItemCreatedByUser']$" Alias="CreatedBy" />
    <Component Path="$Target/Path[Relationship='WorkItem!System.WorkItemAffectedUser']$" Alias="AffectedUser" />
    <Component Path="$Target/Path[Relationship='WorkItem!System.WorkItemRelatesToConfigItem']$" Alias="RelatedConfigItems" />
    <Component Path="$Target/Path[Relationship='WorkItem!System.WorkItemAboutConfigItem']$" Alias="AboutConfigItem" />
    <Component Path="$Target/Path[Relationship='WorkItem!System.WorkItemAboutConfigItem' TypeConstraint='System!System.Service']$" Alias="AffectedServices" />
    <Component Path="$Target/Path[Relationship='WorkItem!System.WorkItemRelatesToWorkItem']$" Alias="RelatedWorkItems">
    <Component Path="$Target/Path[Relationship='WorkItem!System.WorkItemAssignedToUser']$" Alias="RelatedWorkItemAssignedTo" />
    </Component>
    <Component Path="$Target/Path[Relationship='WorkItem!System.WorkItemRelatesToWorkItem' SeedRole='Target']$" Alias="RelatedWorkItemSource">
    <Component Path="$Target/Path[Relationship='WorkItem!System.WorkItemAssignedToUser']$" Alias="RelatedWorkItemAssignedTo" />
    </Component>
    <Component Path="$Target/Path[Relationship='WorkItem!System.WorkItemHasFileAttachment']$" Alias="FileAttachments">
    <Component Path="$Target/Path[Relationship='SupportingItem!System.FileAttachmentAddedByUser']$" Alias="FileAttachmentAddedBy" />
    </Component>
    <Component Path="$Target/Path[Relationship='CoreKnowledge!System.EntityLinksToKnowledgeDocument']$" Alias="RelatedKnowledgeArticles" />
    <Component Path="$Target/Path[Relationship='Catalog!System.WorkItemRelatesToRequestOffering']$" Alias="RelatedRequestOffering" />
    <Component Path="$Target/Path[Relationship='WorkItem!System.WorkItemHasActionLog' TypeConstraint='WorkItem!System.WorkItem.TroubleTicket.ActionLog']$" Alias="ActionLog" />
    <Component Path="$Target/Path[Relationship='WorkItem!System.WorkItemHasCommentLog' TypeConstraint='WorkItem!System.WorkItem.TroubleTicket.AnalystCommentLog']$" Alias="AnalystCommentLog" />
    <Component Path="$Target/Path[Relationship='WorkItem!System.WorkItemHasCommentLog' TypeConstraint='WorkItem!System.WorkItem.TroubleTicket.UserCommentLog']$" Alias="EndUserCommentLog" />
    </TypeProjection>
    </TypeProjections>
    </EntityTypes>
    </TypeDefinitions>
    <Categories>
    <Category ID="BranchPrinters.Category" Value="Console!Microsoft.EnterpriseManagement.ServiceManager.ManagementPack">
    <ManagementPackName>BranchPrinters</ManagementPackName>
    <ManagementPackVersion>1.0.0.0</ManagementPackVersion>
    </Category>
    <Category ID="CategoryId_11239275_bd51_4b5e_8038_f4c4f5c0835d" Target="Branches" Value="Alias_6e472436_00bc_4ca4_bff5_ffd041972427!Microsoft.EnterpriseManagement.ServiceManager.UI.Authoring.EnumerationViewTasks" />
    <Category ID="CategoryId_882c009d_9a50_4455_aff6_8b715edeb5b0" Target="Branches" Value="System!VisibleToUser" />
    <Category ID="CategoryId_e5352c5e_4c1b_4833_a5e0_bf9dd1bd42cd" Target="PrinterModels" Value="Alias_6e472436_00bc_4ca4_bff5_ffd041972427!Microsoft.EnterpriseManagement.ServiceManager.UI.Authoring.EnumerationViewTasks" />
    <Category ID="CategoryId_7fe9aacc_43b5_4dbc_b57e_223e579fa613" Target="PrinterModels" Value="System!VisibleToUser" />
    </Categories>
    <Presentation>
    <Forms>
    <Form ID="ServiceRequestBranchPrinterForm" Accessibility="Public" Target="ServiceRequestBranchPrinterForm_TypeProjection" Assembly="Microsoft.EnterpriseManagement.ServiceManager.Applications.ServiceRequest.Forms" TypeName="Microsoft.EnterpriseManagement.ServiceManager.Applications.ServiceRequest.Forms.ServiceRequestForm">
    <Category>Form</Category>
    <Customization>
    <AddControl Parent="srFormTabControl" Assembly="PresentationFramework, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" Type="System.Windows.Controls.TabItem" Left="377.5" Top="15" Right="0" Bottom="0" Row="0" Column="0" />
    <PropertyChange Object="TabItem_1" Property="Header">
    <NewValue>Printer Information</NewValue>
    </PropertyChange>
    <AddControl Parent="Grid_1" Assembly="Microsoft.EnterpriseManagement.UI.SMControls, Version=7.0.5000.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" Type="Microsoft.EnterpriseManagement.UI.WpfControls.ListPicker" Left="162.5" Top="63" Right="385" Bottom="827" Row="0" Column="0" />
    <PropertyChange Object="ListPicker_1" Property="HorizontalAlignment">
    <NewValue>Left</NewValue>
    </PropertyChange>
    <PropertyChange Object="ListPicker_1" Property="Margin">
    <NewValue>162.5,63,0,827</NewValue>
    </PropertyChange>
    <PropertyChange Object="ListPicker_1" Property="VerticalAlignment">
    <NewValue>Top</NewValue>
    </PropertyChange>
    <PropertyChange Object="ListPicker_1" Property="Margin">
    <NewValue>162.5,63,0,0</NewValue>
    </PropertyChange>
    <AddControl Parent="Grid_1" Assembly="PresentationFramework, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" Type="System.Windows.Controls.Label" Left="95.5" Top="62" Right="552" Bottom="826" Row="0" Column="0" />
    <PropertyChange Object="Label_1" Property="HorizontalAlignment">
    <NewValue>Left</NewValue>
    </PropertyChange>
    <PropertyChange Object="Label_1" Property="Margin">
    <NewValue>95.5,62,0,826</NewValue>
    </PropertyChange>
    <PropertyChange Object="Label_1" Property="VerticalAlignment">
    <NewValue>Top</NewValue>
    </PropertyChange>
    <PropertyChange Object="Label_1" Property="Margin">
    <NewValue>95.5,62,0,0</NewValue>
    </PropertyChange>
    <Move X="13" Y="-1">
    <Element Name="Label_1" />
    </Move>
    <PropertyChange Object="Label_1" Property="Margin">
    <NewValue>82.5,63,565,825</NewValue>
    </PropertyChange>
    <PropertyChange Object="Label_1" Property="Margin">
    <NewValue>82.5,63,0,825</NewValue>
    </PropertyChange>
    <PropertyChange Object="Label_1" Property="Margin">
    <NewValue>82.5,63,0,0</NewValue>
    </PropertyChange>
    <PropertyChange Object="Label_1" Property="FlowDirection">
    <NewValue>RightToLeft</NewValue>
    </PropertyChange>
    <PropertyChange Object="ListPicker_1" Property="ParentCategoryId">
    <NewValue>61909694-0d19-fb73-1a24-4f327facb268</NewValue>
    </PropertyChange>
    <PropertyBindingChange Object="ListPicker_1" Property="SelectedItem">
    <NewBinding Enabled="True" Path="PrinterModels" Mode="TwoWay" BindsDirectlyToSource="False" UpdateSourceTrigger="PropertyChanged" />
    </PropertyBindingChange>
    <Move X="21.8066666666666" Y="2.48000000000002">
    <Element Name="Label_1" />
    </Move>
    <PropertyChange Object="Label_1" Property="Margin">
    <NewValue>60.6933333333334,60.52,587,827</NewValue>
    </PropertyChange>
    <PropertyChange Object="Label_1" Property="Margin">
    <NewValue>60.6933333333334,60.52,0,827</NewValue>
    </PropertyChange>
    <PropertyChange Object="Label_1" Property="Margin">
    <NewValue>60.6933333333334,60.52,0,0</NewValue>
    </PropertyChange>
    <PropertyBindingChange Object="Label_1" Property="Content">
    <NewBinding Enabled="False" />
    </PropertyBindingChange>
    <PropertyChange Object="Label_1" Property="Content">
    <NewValue>Printer Model</NewValue>
    </PropertyChange>
    <Move X="-0.193333333333385" Y="-2">
    <Element Name="Label_1" />
    </Move>
    <PropertyChange Object="Label_1" Property="Margin">
    <NewValue>60.8866666666668,62.52,587,825</NewValue>
    </PropertyChange>
    <PropertyChange Object="Label_1" Property="Margin">
    <NewValue>60.8866666666668,62.52,0,825</NewValue>
    </PropertyChange>
    <PropertyChange Object="Label_1" Property="Margin">
    <NewValue>60.8866666666668,62.52,0,0</NewValue>
    </PropertyChange>
    <AddControl Parent="Grid_1" Assembly="PresentationFramework, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" Type="System.Windows.Controls.Label" Left="96.5" Top="112" Right="551" Bottom="776" Row="0" Column="0" />
    <PropertyChange Object="Label_2" Property="HorizontalAlignment">
    <NewValue>Left</NewValue>
    </PropertyChange>
    <PropertyChange Object="Label_2" Property="Margin">
    <NewValue>96.5,112,0,776</NewValue>
    </PropertyChange>
    <PropertyChange Object="Label_2" Property="VerticalAlignment">
    <NewValue>Top</NewValue>
    </PropertyChange>
    <PropertyChange Object="Label_2" Property="Margin">
    <NewValue>96.5,112,0,0</NewValue>
    </PropertyChange>
    <Move X="35.8066666666666" Y="24.52">
    <Element Name="Label_2" />
    </Move>
    <PropertyChange Object="Label_2" Property="Margin">
    <NewValue>60.6933333333334,87.48,587,800</NewValue>
    </PropertyChange>
    <PropertyChange Object="Label_2" Property="Margin">
    <NewValue>60.6933333333334,87.48,0,800</NewValue>
    </PropertyChange>
    <PropertyChange Object="Label_2" Property="Margin">
    <NewValue>60.6933333333334,87.48,0,0</NewValue>
    </PropertyChange>
    <PropertyBindingChange Object="Label_2" Property="Content">
    <NewBinding Enabled="False" />
    </PropertyBindingChange>
    <PropertyChange Object="Label_2" Property="Content">
    <NewValue>Branch</NewValue>
    </PropertyChange>
    <AddControl Parent="Grid_1" Assembly="Microsoft.EnterpriseManagement.UI.SMControls, Version=7.0.5000.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" Type="Microsoft.EnterpriseManagement.UI.WpfControls.ListPicker" Left="185.5" Top="93" Right="362" Bottom="797" Row="0" Column="0" />
    <PropertyChange Object="ListPicker_2" Property="Width">
    <NewValue>Auto</NewValue>
    </PropertyChange>
    <PropertyChange Object="ListPicker_2" Property="VerticalAlignment">
    <NewValue>Top</NewValue>
    </PropertyChange>
    <PropertyChange Object="ListPicker_2" Property="Margin">
    <NewValue>185.5,93,362,0</NewValue>
    </PropertyChange>
    <Move X="23" Y="-5">
    <Element Name="ListPicker_2" />
    </Move>
    <PropertyChange Object="ListPicker_2" Property="Margin">
    <NewValue>162.5,98,385,792</NewValue>
    </PropertyChange>
    <PropertyChange Object="ListPicker_2" Property="HorizontalAlignment">
    <NewValue>Left</NewValue>
    </PropertyChange>
    <PropertyChange Object="ListPicker_2" Property="Margin">
    <NewValue>162.5,98,0,792</NewValue>
    </PropertyChange>
    <PropertyChange Object="ListPicker_2" Property="Width">
    <NewValue>180.5</NewValue>
    </PropertyChange>
    <PropertyChange Object="ListPicker_2" Property="Margin">
    <NewValue>162.5,98,0,0</NewValue>
    </PropertyChange>
    <Move X="-0.193333333333385" Y="-8.51999999999998">
    <Element Name="Label_2" />
    </Move>
    <PropertyChange Object="Label_2" Property="Margin">
    <NewValue>60.8866666666668,96,587,792</NewValue>
    </PropertyChange>
    <PropertyChange Object="Label_2" Property="Margin">
    <NewValue>60.8866666666668,96,0,792</NewValue>
    </PropertyChange>
    <PropertyChange Object="Label_2" Property="Margin">
    <NewValue>60.8866666666668,96,0,0</NewValue>
    </PropertyChange>
    <PropertyChange Object="ListPicker_2" Property="ParentCategoryId">
    <NewValue>20d8a660-29aa-9470-2139-555f9938d114</NewValue>
    </PropertyChange>
    <PropertyBindingChange Object="ListPicker_2" Property="SelectedItem">
    <NewBinding Enabled="True" Path="Branches" Mode="TwoWay" BindsDirectlyToSource="False" UpdateSourceTrigger="PropertyChanged" />
    </PropertyBindingChange>
    <Move X="0" Y="-2">
    <Element Name="Label_2" />
    </Move>
    <PropertyChange Object="Label_2" Property="Margin">
    <NewValue>60.8866666666668,98,587,790</NewValue>
    </PropertyChange>
    <PropertyChange Object="Label_2" Property="Margin">
    <NewValue>60.8866666666668,98,0,790</NewValue>
    </PropertyChange>
    <PropertyChange Object="Label_2" Property="Margin">
    <NewValue>60.8866666666668,98,0,0</NewValue>
    </PropertyChange>
    <PropertyChange Object="Label_2" Property="FlowDirection">
    <NewValue>RightToLeft</NewValue>
    </PropertyChange>
    <AddControl Parent="Grid_1" Assembly="Microsoft.EnterpriseManagement.UI.SMControls, Version=7.0.5000.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" Type="Microsoft.EnterpriseManagement.UI.WpfControls.SingleInstancePicker" Left="211.5" Top="163" Right="336" Bottom="709" Row="0" Column="0" />
    <PropertyChange Object="SingleInstancePicker_1" Property="Width">
    <NewValue>Auto</NewValue>
    </PropertyChange>
    <PropertyChange Object="SingleInstancePicker_1" Property="VerticalAlignment">
    <NewValue>Top</NewValue>
    </PropertyChange>
    <PropertyChange Object="SingleInstancePicker_1" Property="Margin">
    <NewValue>211.5,163,336,0</NewValue>
    </PropertyChange>
    <Move X="47" Y="16">
    <Element Name="SingleInstancePicker_1" />
    </Move>
    <PropertyChange Object="SingleInstancePicker_1" Property="Margin">
    <NewValue>164.5,147,383,725</NewValue>
    </PropertyChange>
    <PropertyChange Object="SingleInstancePicker_1" Property="HorizontalAlignment">
    <NewValue>Left</NewValue>
    </PropertyChange>
    <PropertyChange Object="SingleInstancePicker_1" Property="Margin">
    <NewValue>164.5,147,0,725</NewValue>
    </PropertyChange>
    <PropertyChange Object="SingleInstancePicker_1" Property="Width">
    <NewValue>180.5</NewValue>
    </PropertyChange>
    <PropertyChange Object="SingleInstancePicker_1" Property="Margin">
    <NewValue>164.5,147,0,0</NewValue>
    </PropertyChange>
    <PropertyChange Object="SingleInstancePicker_1" Property="BaseClassId">
    <NewValue>319e665c-8db5-c06b-fd4b-93991942e429</NewValue>
    </PropertyChange>
    <PropertyBindingChange Object="SingleInstancePicker_1" Property="Instance">
    <NewBinding Enabled="True" Path="ComponentAlias_3ae38849_26ce_4c7c_86b4_6b6201aba2f3" Mode="TwoWay" BindsDirectlyToSource="False" UpdateSourceTrigger="PropertyChanged" />
    </PropertyBindingChange>
    <AddControl Parent="Grid_1" Assembly="PresentationFramework, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" Type="System.Windows.Controls.Label" Left="86.5" Top="158" Right="561" Bottom="730" Row="0" Column="0" />
    <PropertyChange Object="Label_3" Property="HorizontalAlignment">
    <NewValue>Left</NewValue>
    </PropertyChange>
    <PropertyChange Object="Label_3" Property="Margin">
    <NewValue>86.5,158,0,730</NewValue>
    </PropertyChange>
    <PropertyChange Object="Label_3" Property="VerticalAlignment">
    <NewValue>Top</NewValue>
    </PropertyChange>
    <PropertyChange Object="Label_3" Property="Margin">
    <NewValue>86.5,158,0,0</NewValue>
    </PropertyChange>
    <Move X="26" Y="2">
    <Element Name="Label_3" />
    </Move>
    <PropertyChange Object="Label_3" Property="Margin">
    <NewValue>60.5,156,587,732</NewValue>
    </PropertyChange>
    <PropertyChange Object="Label_3" Property="Margin">
    <NewValue>60.5,156,0,732</NewValue>
    </PropertyChange>
    <PropertyChange Object="Label_3" Property="Margin">
    <NewValue>60.5,156,0,0</NewValue>
    </PropertyChange>
    <PropertyChange Object="Label_3" Property="FlowDirection">
    <NewValue>RightToLeft</NewValue>
    </PropertyChange>
    <PropertyBindingChange Object="Label_3" Property="Content">
    <NewBinding Enabled="False" />
    </PropertyBindingChange>
    <PropertyChange Object="Label_3" Property="Content">
    <NewValue>Printer</NewValue>
    </PropertyChange>
    </Customization>
    </Form>
    </Forms>
    </Presentation>
    <LanguagePacks>
    <LanguagePack ID="ENU" IsDefault="true">
    <DisplayStrings>
    <DisplayString ElementID="BranchPrinters">
    <Name>BranchPrinters</Name>
    </DisplayString>
    <DisplayString ElementID="ServiceRequestBranchPrinters">
    <Name>Service Request, Branch Printers</Name>
    <Description>This class inherits from Service Request to define Branch Printers</Description>
    </DisplayString>
    <DisplayString ElementID="Branches">
    <Name>Branch List</Name>
    <Description>Contains a list of branches within the organization</Description>
    </DisplayString>
    <DisplayString ElementID="ServiceRequestBranchPrinters" SubElementID="Branches">
    <Name>Branches</Name>
    </DisplayString>
    <DisplayString ElementID="ServiceRequestBranchPrinters" SubElementID="PrinterModels">
    <Name>PrinterModels</Name>
    </DisplayString>
    <DisplayString ElementID="PrinterModels">
    <Name>Printer Model List</Name>
    <Description>Contains a list of printers featured throughout the organization</Description>
    </DisplayString>
    <DisplayString ElementID="ServiceRequestBranchPrinterForm">
    <Name>ServiceRequestBranchPrinterForm</Name>
    <Description>Specify your form description.</Description>
    </DisplayString>
    <DisplayString ElementID="Printer">
    <Name>Printer</Name>
    </DisplayString>
    <DisplayString ElementID="Printer" SubElementID="Source_facee4a3_7203_41bd_87d4_e30123445605">
    <Name>Source_facee4a3_7203_41bd_87d4_e30123445605</Name>
    </DisplayString>
    <DisplayString ElementID="Printer" SubElementID="Target_8100dcd2_9c0a_42d1_9746_735a6e9ec302">
    <Name>Target_8100dcd2_9c0a_42d1_9746_735a6e9ec302</Name>
    </DisplayString>
    </DisplayStrings>
    </LanguagePack>
    </LanguagePacks>
    <Resources>
    <Assembly ID="Microsoft.EnterpriseManagement.ServiceManager.Applications.ServiceRequest.Forms" Accessibility="Public" FileName="Microsoft.EnterpriseManagement.ServiceManager.Applications.ServiceRequest.Forms.dll" HasNullStream="false" QualifiedName="Microsoft.EnterpriseManagement.ServiceManager.Applications.ServiceRequest.Forms, Version=7.0.5000.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" />
    </Resources>
    </ManagementPack>
    Adam Dzak

  • Add custom dictionary files

    Hi,
    I am trying to add custom dictionary files to our office installation on a TS server.
    its 2012 R2 server running office 365 32bit.
    i have a script that adds the paths to the custom dictionaries to the registry.
    the script adds 2 entries for each dictionary
    "HKEY_CURRENT_USER\Software\Microsoft\Shared Tools\Proofing Tools\1.0\Custom
    Dictionaries\
    the name and the value is the path
    and then "name_state" with a hex value of 01 00 00
    this worked on 2010 but isnt working with my current setup.
    the dictionaries work if manually added through word.
    though if done this way 4 reg keys are created
    with name_roamed and name_external.
    the name also contains the username.domain if created in word.
    in the script the name is just a number,  "10" for example.
    any ideas on how to deploy custom dictionary files into office 365 on server 2012?
    Thanks]
    Colm

    see this link for related info
    http://blogs.technet.com/b/office_resource_kit/archive/2011/12/16/deploying-a-custom-dictionary.aspx

  • JS scripted needed to add custom text plus filename to file info in document title

    Would greatly appreciate any help with this one...
    JS script to add custom text plus filename to file info in document title
    many thanks

    Super :O)
    I have a folder of say 50 images and I want to run a JS script batch
    example in the document title :  image Nr 81205
    custom text is "image Nr" +  file name "81205"
    activeDocument.info.title =" image Nr" + decodeURI(activeDocument.name);
    would this be correct without seening the file ext
    many thanks

  • How to add custom fields in BADI  Subscreen.

    Hi Friends,
    I have to include some custom fields in MFBF tcode.(In make-to-order tab page).
    To do that I have used RM_HR_INTEGRATION  BADI definition  and created implementation for this. In the provided subscreen I tried to add custom fields but it asks access key . I donu2019t know , how to proceed further. Your help is needed.
    Or kindly provide me solution to achieve my requirement.
    Thanks in Advance,
    senthil.

    Hi Venky,
    We can see the documentation in
    se18 -> badi -> LE_SHP_TAB_CUST_HEAD -> display -> documentation button above the definition name
    in the first pop-up of documentation..go to the end which says 'Further notes'
    Further notes
    Documentation on BAdI Interface LE_SHP_TAB_CUST_HEAD
    click on this and we have a detailed description of each method defined in the badi
    Hope it helps
    Regards
    Byju

  • Display data in a custom container

    Hi All,
    My requirment is to just display data in a custom container.
    I could able to display data in change mode but not display mode.Can you please let me now how can i do that.
    Thanks in Advance
    KV

    Im using cl_gui_custom_container.
    In PBO
    here is my code whihc is fine for Change/Edit mode.
      create control container
        CREATE OBJECT g_editor_container
            EXPORTING
                container_name = 'DISP_CONT'
            EXCEPTIONS
                cntl_error = 1
                cntl_system_error = 2
                create_error = 3
                lifetime_error = 4
                lifetime_dynpro_dynpro_link = 5.
        IF sy-subrc NE 0.
        do nothing
        ENDIF.
      create calls constructor, which initializes, creats and links
       a TextEdit Control
        CREATE OBJECT g_editor
          EXPORTING
             parent = g_editor_container
             wordwrap_mode =  cl_gui_textedit => wordwrap_at_fixed_position
             wordwrap_to_linebreak_mode = cl_gui_textedit=>TRUE
          EXCEPTIONS
              OTHERS = 1.
        IF sy-subrc NE 0.
        do nothing
        ENDIF.
    In PAI
    CALL METHOD g_editor->get_text_as_r3table
        IMPORTING
          table  = Text_table
        EXCEPTIONS
          OTHERS = 1.
      IF sy-subrc NE 0.
      ENDIF.
    Text_table contains messages which r supposed to be displayed.
    Based on certain logical operations i will display the messages.

  • Add Custom CSS to SharePoint Foundation 2010

    I have SharePoint Foundation 2010. I am trying to use custom CSS to override the out of the box CSS. I have linked my CSS file within the master page a million different ways but nothing seems to work.
    Can this be done in Foundation or do I need to purchase Server?

    Hi Tory,
    How did you add the custom CSS for SharePoint 2010 foundation?
    You can upload the CSS file into a library at the SharePoint site collection, then use <SharePoint:CssRegistration name="<% $SPUrl:~SiteCollection/Style Library/Custom/styles.css %>" After="corev4.css" runat="server"/> to include a reference
    to your custom CSS file.
    In addition, please clear SharePoint cache, and do an IISRESET, then compare the result.
    More information, please refer to the links:
    http://labs.steveottenad.com/add-custom-css-to-a-sharepoint-2010-site/
    http://msdn.microsoft.com/en-us/library/gg447066.aspx
    Best Regards,
    Wendy
    Wendy Li
    TechNet Community Support

  • Refresh Editable ALV Grid inside a custom Container

    Hello all,
    I am having a screen with custom container in which i am populating datas and a entry screen which is going to have my
    filtering condition for this custom container screen..
    The problem i am facing is whenever i come out of the custom container screen after displaying and again give the
    necessary filtering data in the previous screen...
    the custom container screen displays wrong values...
    But when i refresh the data with the refresh icon in the container right datas are coming...
    I even used CALL METHOD C_ALVGD->REFRESH_TABLE_DISPLAY
    EXPORTING
    IS_STABLE = STABLE
    EXCEPTIONS
    FINISHED = 1
    OTHERS = 2. after displaying the values using
    CALL METHOD C_ALVGD->SET_TABLE_FOR_FIRST_DISPLAY
    EXPORTING
    IT_TOOLBAR_EXCLUDING = T_FUNC
    IS_LAYOUT = IT_LAYOUT
    I_SAVE = 'A'
    CHANGING
    IT_OUTTAB = IT_ZCAWNT_V
    IT_FIELDCATALOG = IT_FCAT
    EXCEPTIONS
    INVALID_PARAMETER_COMBINATION = 1
    PROGRAM_ERROR = 2
    TOO_MANY_LINES = 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.
    I have refreshed my internal table once when i display and again fetched from the DB according to the filtering conditions given
    in the first screen.
    I have tried clearing the Object created once when i display and again recreated it.But could not get the output.
    solution would be really helpful...

    Hey all,
    Thanks a lot for helping me...
    The problem is solved....
    i just used,
            CALL METHOD C_ALVGD->FREE. 'Grid inside the container
            CLEAR C_ALVGD.
            CALL METHOD C_CCONT->FREE. "Container
            CLEAR C_CCONT.
    when i click BACK Button from screen 2 to screen1.

  • How to Add custom Attribute in XML

    How to add Custom attribute recusrivly. With sequence order.
    //Before xml:-
    var myxml:XML=
    <root>
    <leval0 >
    <leval1 >
    <leval2></leval2>
    <leval2></leval2>
    </leval1>
    <leval1 >
    <leval2></leval2>
    <leval2></leval2>
    </leval1>
    </leval0>
    </root>
    ////After xml:
    var myxml:XML=
    <root>
    <leval0 levalid="0" >
    <leval1 levalid="0_0" >
    <leval2 levalid="0_0_0"></leval2>
    <leval2 levalid="0_0_1"></leval2>
    </leval1>
    <leval1 levalid="0_1" >
    <leval2 levalid="0_1_0"></leval2>
    <leval2 levalid="0_1_1"></leval2>
    </leval1>
    </leval0>
    </root>

    //call this method
                trace(addAttribute(myxml));
    //method
                private function addAttribute(node:XML, depth:String = ""):XML
                    if (node.hasComplexContent())
                        var count:int = 0;
                        var prefix:String = 0 < depth.length ? depth + "_" : "";
                        var currentAtt:String;
                        for each (var nodeItem:XML in node.children())
                            currentAtt = prefix + count;
                            nodeItem.@levalid = currentAtt;
                            addAttribute(nodeItem,currentAtt);
                            count++;
                    return node;

  • How can i add custom attributes to a new Class Object using the API ?

    Hello everyone,
    Here is my problem. I just created a subclass of Document using the API (not XML), by creating a ClassObjectDefinition and a ClassObject. Here is the code :
    // doc is an instance of Document
    ClassObject co = doc.getClassObject();
    ClassObjectDefinition cod = new ClassObjectDefinition(ifsSession);
    cod.setSuperclass(co);
    cod.setSuperclassName(co.getName());
    cod.setName("MYDocument");
    ClassObject c = (ClassObject)ifsSession.createSchemaObject(cod);
    Everything seems to be OK since i can see the new class when i use ifsmgr. But my question is : how can i add custom attributes to this new class ? Here is what i tried :
    AttributeDefinition value = new AttributeDefinition(ifsSession);
    value.setAttribute("FOO", AttributeValue.newAttributeValue("bar"));
    c.addAttribute(value);
    But i got the following error message :
    oracle.ifs.common.IfsException: IFS-30002: Unable to create new LibraryObject
    java.sql.SQLException: ORA-01400: impossible d'insirer NULL dans ("IFSSYS"."ODM_ATTRIBUTE"."DATATYPE")
    oracle.ifs.server.S_LibraryObjectData oracle.ifs.beans.LibrarySession.DMNewSchemaObject(oracle.ifs.server.S_LibraryObjectDefinition)
    oracle.ifs.beans.SchemaObject oracle.ifs.beans.LibrarySession.NewSchemaObject(oracle.ifs.beans.SchemaObjectDefinition)
    oracle.ifs.beans.SchemaObject oracle.ifs.beans.LibrarySession.createSchemaObject(oracle.ifs.beans.SchemaObjectDefinition)
    void fr.sword.ifs.GestionDocument.IFSDocument.createDocument(java.lang.String)
    void fr.sword.ifs.GestionDocument.IFSDocument.main(java.lang.String[])
    So, what am i doing wrong ?
    More generally, are we restricted in the types of the attributes ? (for example, would it be possible to add an attribute that would be an inputStream ? Or an object that i have already created ?).
    Any help would be appreciated. Thanks in advance.
    Guillaume
    PS : i'm using Oracle iFS 1.1.9 on NT4 SP6 and Oracle 8.1.7
    null

    Hi Guillaume,
    you're welcome. Don't know exactly, but assume that ATTRIBUTEDATATYPE_UNKNOWN
    is used to check for erronous cases only
    and it shouldn't be used otherwise.
    Creating your own objects could be simply done via
    ClassObject ifsClassObject;
    DocumentDefinition ifsDocDef = new DocumentDefinition(ifsSession);
    // get class object for my very own document
    ifsClassObject = ClassObject.getClassObjectFromLabel(ifsSession, "MYDOCUMENT");
    // set the class for the document i'd like to create
    ifsDocDef.setClassObject(ifsClassObject);
    // set attributes and content for the document...
    ifsDocDef.setAttribute("MYFOO_ATTRIBUTE",....);
    ifsDocDef.setContent("This is the content of my document");
    // create the document...
    PublicObject doc = ifsSession.createPublicObject(ifsDocDef);
    null

  • In R/3 display smartform as pdf in a custom container

    Hello,
    I want to display smartform as pdf in a custom contianer . I was able to find all the right code from sdn.
    but my problem is that when executed my sap gui is closed without any error.
    I am unable to understand what is going wrong.
      CALL METHOD G_HTML_CONTROL->SHOW_URL( URL = LV_URL
        IN_PLACE = 'X' ).  does not show the pdf.
    Can any one help me to find out if we need to do some setting for MIME type application/pdf. Because I tried to display a bar chart in the custom container of MIME type text/html , and this is working fine.
    Is any setting missing in our R/3 because of which the code is not getting executed.
    below code is the exact copy from a post in sdn:
    report ztest_pdf.
    DATA: LT_PDF TYPE TABLE OF TLINE,
          LS_PDF LIKE LINE OF LT_PDF,
          LV_URL TYPE CHAR255,
          PDF_FSIZE TYPE  I,
          LV_CONTENT  TYPE XSTRING,
          LT_DATA TYPE STANDARD TABLE OF X255.
    DATA : L_JOB_OUTPUT_INFO TYPE SSFCRESCL.
    DATA : LS_CONTROL_PARAM  TYPE SSFCTRLOP.
    DATA : G_HTML_CONTAINER TYPE REF TO CL_GUI_CUSTOM_CONTAINER,
           G_HTML_CONTROL   TYPE REF TO CL_GUI_HTML_VIEWER.
    *      pdf_control type ref to cl_gui_pdfviewer.
    DATA : P_VBELN TYPE  VBELN_VL.
    DATA : i_html TYPE w3htmltabtype.
    ",       g_url  TYPE w3url
    FIELD-SYMBOLS <FS_X> TYPE X.
    INITIALIZATION.
    LS_CONTROL_PARAM-GETOTF = 'X'.
    LS_CONTROL_PARAM-NO_DIALOG = 'X'.
    START-OF-SELECTION.
      CALL FUNCTION '/1BCDWB/SF00000298'
    EXPORTING
    *    ARCHIVE_INDEX              =
    *   ARCHIVE_INDEX_TAB          =
    *   ARCHIVE_PARAMETERS         =
         CONTROL_PARAMETERS         = LS_CONTROL_PARAM
    *     P_VBELN                    = P_VBELN
    *   MAIL_APPL_OBJ              =
    *   MAIL_RECIPIENT             =
    *   MAIL_SENDER                =
    *   OUTPUT_OPTIONS             =
    *   USER_SETTINGS              = 'X'
    IMPORTING
    *      DOCUMENT_OUTPUT_INFO  = L_DOCUMENT_OUTPUT_INFO
           JOB_OUTPUT_INFO       = L_JOB_OUTPUT_INFO
    *      JOB_OUTPUT_OPTIONS    = L_JOB_ OUTPUT_OPTIONS
    EXCEPTIONS
        FORMATTING_ERROR           = 1
        INTERNAL_ERROR             = 2
        SEND_ERROR                 = 3
        USER_CANCELED              = 4
        OTHERS                     = 5
      IF SY-SUBRC <>  0.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
    data pdfxstring type xstring.
      CALL FUNCTION 'CONVERT_OTF'
        EXPORTING
          FORMAT                = 'PDF'
        IMPORTING
          BIN_FILESIZE          = PDF_FSIZE
          bin_file              = pdfxstring
        TABLES
          OTF                   = L_JOB_OUTPUT_INFO-OTFDATA
          LINES                 = LT_PDF
        EXCEPTIONS
          ERR_MAX_LINEWIDTH     = 1
          ERR_FORMAT            = 2
          ERR_CONV_NOT_POSSIBLE = 3
          OTHERS                = 4.
      CALL SCREEN 100.
    module STATUS_0100 output.
    *  SET PF-STATUS 'xxxxxxxx'.
    *  SET TITLEBAR 'xxx'.
      CREATE OBJECT G_HTML_CONTAINER
        EXPORTING
          CONTAINER_NAME = 'PDF'.
    CREATE OBJECT G_HTML_CONTROL
        EXPORTING
          PARENT = G_HTML_CONTAINER.
    * Convert xstring to binary table to pass to the LOAD_DATA method
      CALL FUNCTION 'SCMS_XSTRING_TO_BINARY'
        EXPORTING
          BUFFER     = pdfxstring"LV_CONTENT
        TABLES
          BINARY_TAB = LT_DATA.
    * PERFORM bar_chart .
    * Load the HTML
      CALL METHOD G_HTML_CONTROL->LOAD_DATA(
         EXPORTING
           TYPE         = 'application' "'text' " 'application'
           SUBTYPE      = 'pdf' "'html'  "'pdf'
         IMPORTING
           ASSIGNED_URL         = lv_URL
         CHANGING
           DATA_TABLE           =  LT_DATA "i_html "LT_DATA
         EXCEPTIONS
           DP_INVALID_PARAMETER = 1
           DP_ERROR_GENERAL     = 2
           CNTL_ERROR           = 3
           OTHERS               = 4 ).
    * Show it
      CALL METHOD G_HTML_CONTROL->SHOW_URL( URL = LV_URL
        IN_PLACE = 'X' ).
    Thanks,
    Jaya.
    Edited by: kishan P on Jun 9, 2011 1:40 PM

    Hello Sandra,
    Thanks for your reply, but eventhen it fails to load the pdf. Is ADS required to be installed for this?
    Can I just pass the pdf_fsize imported from  CONVERT_OTF which is of type i.
      CALL FUNCTION 'CONVERT_OTF'
        EXPORTING
          FORMAT                = 'PDF'
        IMPORTING
          BIN_FILESIZE          = PDF_FSIZE    
    bin_file              = pdfxstring
        TABLES
          OTF                   = L_JOB_OUTPUT_INFO-OTFDATA
          LINES                 = LT_PDF
        EXCEPTIONS
          ERR_MAX_LINEWIDTH     = 1
          ERR_FORMAT            = 2
          ERR_CONV_NOT_POSSIBLE = 3
          OTHERS                = 4.
      CALL METHOD G_HTML_CONTROL->LOAD_DATA(
         EXPORTING
           TYPE         = 'application' "'text' " 'application'
           SUBTYPE      = 'pdf' "'html'  "'pdf'
           size           = PDF_FSIZE
         IMPORTING
           ASSIGNED_URL         = lv_URL
         CHANGING
           DATA_TABLE           =  LT_DATA "i_html "LT_DATA
         EXCEPTIONS
           DP_INVALID_PARAMETER = 1
           DP_ERROR_GENERAL     = 2
           CNTL_ERROR           = 3
           OTHERS               = 4 ).
    Thanks,
    Jaya.

  • Problem with Custom container - cl_gui_custom_container/cl_gui_alv_grid

    Hi,
    I want to reuse the same custom container screen for a different data.
    First screen there will be button 1 and button 2
    if I click button 1 then calculate and display data  in custom container, if button 2 is clicked then calculate and display data with  in the same custom container.
    For this
    1. Created Custom container - CONTAINER
    2. In program defined and created custom container and custom alv grid
    g_custom_container TYPE REF TO cl_gui_custom_container,
            alv_grid                     TYPE REF TO cl_gui_alv_grid.
           IF g_custom_container IS INITIAL.
                CREATE OBJECT g_custom_container
                    EXPORTING
                  container_name = 'CONTAINER'.
                CREATE OBJECT alv_grid
                   EXPORTING
                    i_parent = g_custom_container.
          ENDIF.
    3. Display data using CALL METHOD alv_grid->set_table_for_first_display
       every thing works great for button 1
    4. when button 2 is clicked then calculate and display different set of data in same custom container which is used earlier.
    5. here I used
    call method alv_grid->free.
        call method g_custom_container->free.
    6. create above objects once again and tried to use
    call method alv_grid->set_table_for_first_display
    , to reuse the same custom container 'CONTAINER' again for a different set of data and getting ABAP dump.
    In debug mode, when I used the above method FREE for both ALV_GRID and G_CUSTOM_CONTAINER objects are not clearing.
    Please let me know how can I reuse the same container for a different set of data when button2 is pressed.
    Thanks in advance,
    Krishna
    Please use code tags to format your code and post in the correct forum
    Edited by: Rob Burbank on Oct 1, 2010 2:37 PM

    Hello Krishna
    I would recommend to use a different approach instead of trying to initialize your container instances:
    DATA:
      go_container_1 TYPE REF TO cl_gui_custom_container,
      go_container_2 TYPE REF TO cl_gui_custom_container,
      go_grid_1          TYPE REF TO cl_gui_alv_grid,
      go_grid_2          TYPE REF TO cl_gui_alv_grid.
    " NOTE: Do this coding BEFORE calling the screen
    * (1) Create 2 containers
    CREATE OBJECT g_container_1
                    EXPORTING
                  container_name = 'CONTAINER'.
    CREATE OBJECT g_container_2
                    EXPORTING
                  container_name = 'CONTAINER'.
    " NOTE: If it is not possible to use the same container name then either create an additional
    "            dummy screen having a second CUSTOM_CONTROL element or replace
    " the customer containers with docking containers -> here you do not need to give a container name
    * (2) Create 2 grid instances using a different container
    * (3) Link the first container to the screen using its LINK method:
      CALL METHOD go_container_1
        EXPORTING
           repid = <...>
          dynnr = <...>.
    * (4) Perhaps you need to define a second dummy screen to which you link the second container
    * (5) Display first grid instance (as default)
    Now when the user pushes button 2 (to display the second grid) link container_1 to the dummy screen
    and link container_2 to your main screen.
    Regards
      Uwe

Maybe you are looking for

  • Table for SPL screening date

    Hi All We are trying to prepare a report that consists requires give output business partners that are screened for SPL for a given period of time. please provide tables or logic to get this done. Thanks for your time. Thanks & Regards Karthi

  • System instability using reports that raise an exceptions

    I am having a problem with some reports when I use the type "PL/SQL function body returning SQL query". If the Function raise an exception, the apex's engine will call again the function and it raise again the exception. These will make a loop that d

  • RCF Connection Error

    Hi Everyone, here i created and configured a RFC on DEV server for Remote end system(Production Sytem) and when i click on Connection Test then got following error. Logon                     Connection Error Error Details     Error when opening an RF

  • 6310i Bluetooth

    I am using a 6310i and trying to set up with a BT4517T headset. I have fallen at the first fence! Having accessed the Bluetooth menu (and turned BT on at the phone) there do not appear to be any further submenus like Search for audio devices. Whic sh

  • Disable battery usage by app

    With the iOS8 upgrade, I can now track battery usage by app, but is there any way to disable this feature?