Disable a custom object in dialog ??

hi,
i created a custom container and associated a text object to it.
i want it to be disabled intially. how to set that ??
i create the object as fol
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

check the sample code..
REPORT  zvijay_textedit.
DATA:
  obj_cust     TYPE REF TO cl_gui_custom_container,
  obj_text     TYPE REF TO cl_gui_textedit.
* Internal table to display
DATA:
BEGIN OF i_table OCCURS 0,
  line(132) TYPE c,
END OF i_table.
START-OF-SELECTION.
  CALL SCREEN 100.
*&      Module  STATUS_0100  OUTPUT
*       text
MODULE status_0100 OUTPUT.
* To create the object custom container
* screen
  CREATE OBJECT obj_cust
      EXPORTING
          container_name = 'CONTAINER'
      EXCEPTIONS
          cntl_error = 1
          cntl_system_error = 2
          create_error = 3
          lifetime_error = 4
          lifetime_dynpro_dynpro_link = 5.
  IF sy-subrc NE 0.
  ENDIF.                             " IF sy-subrc NE 0
* create the a TextEdit Control
  CREATE OBJECT obj_text
    EXPORTING
       parent = obj_cust
       wordwrap_mode = cl_gui_textedit=>wordwrap_at_fixed_position
       wordwrap_to_linebreak_mode = cl_gui_textedit=>true
    EXCEPTIONS
        OTHERS = 1.
* put the text box in display mode
  CALL METHOD obj_text->set_readonly_mode
    EXPORTING
      readonly_mode          = 1
    EXCEPTIONS
      error_cntl_call_method = 1
      invalid_parameter      = 2
      OTHERS                 = 3.
  IF sy-subrc NE 0.
  ENDIF.                             " IF sy-subrc NE 0.
  MOVE: 'SDN Sample code' TO i_table.
  APPEND i_table.
  CALL METHOD obj_text->set_text_as_r3table
    EXPORTING
      table  = i_table[]
    EXCEPTIONS
      OTHERS = 1.
* Flush
  CALL METHOD cl_gui_cfw=>flush
    EXCEPTIONS
      OTHERS = 1.
  IF sy-subrc NE 0.
  ENDIF.                               " IF sy-subrc NE 0
ENDMODULE.                 " STATUS_0100  OUTPUT
Regards
Vijay Babu Dudla

Similar Messages

  • How can I disable a Custom Object Test?

    I wonder if there is a way to disable a Custom Object Test. When I do a right click I don't see the option as in the other items under the frame node. I don't want to delete them because I may use them as reference in the future. So far I've been saving the file with a different name in order to preserve them, but, I don't want to have too many unused files around.

    In order to disable a Custom Object Test right click on the Custom Object Test node and select "Script VBA Properties...". In the window that is opened uncheck "e-Tester" if you want to disable it when playing back in eTester for regression testing. The other two checkboxes are to disable the execution of the Custom Object Test when running the script in eLoad.

  • Event Bubbling Custom Object not inheriting from control

    One of the new things flash flex and xaml have are ways which
    the event easily bubbles up to a parent that knows how to handle
    the event. Similar to exceptions travel up until someone catches
    it.
    My goal is to use the frameworks event system on custom
    objects. My custom objects are:
    ApplicationConfiguration
    through composition contains:
    SecurityCollection which contains many or no SecurityElements
    and
    FileSystemCollection.cs which contains many or no
    FileSystemElement objects
    ect ect basically defining the following xml file with custom
    objects.
    [code]
    <ApplicationConfiguration>
    <communication>
    <hardwareinterface type="Ethernet">
    <ethernet localipaddress="192.168.1.2" localport="5555"
    remoteipaddress="192.168.1.1" remoteport="5555" />
    <serial baudrate="115200" port="COM1" />
    </hardwareinterface>
    <timing type="InternalClock" />
    </communication>
    <filesystem>
    <add id="location.scriptfiles" value="c:\\" />
    <add id="location.logfiles" value="c:\\" />
    <add id="location.configurationfiles" value="c:\\" />
    </filesystem>
    <security>
    <add id="name1" value="secret1" />
    <add id="name2" value="secret2" />
    </security>
    <logging EnableLogging="true"
    LogApplicationExceptions="true" LogInvalidMessages="true"
    CreateTranscript="true" />
    </ApplicationConfiguration>
    [/code]
    basically these custom objects abstract the xml details of
    accessing attributes, writing content out of the higher application
    layers.
    These custom objects hold the application configuration which
    contains the users options. The gui application uses these
    parameters across various windows forms, modal dialog boxes ect.
    The gui has a modal dialog that allows the user to modify these
    parameters during runtime.
    basically i manage: load, store, new, edit, delete of these
    configuration files using my custom objects.
    Where would event propagation help in custom objects like
    described above?
    ConfigurationSingleton.getInstance().ApplicationConfiguration.CommunicationElement.Hardwar eInterfaceElement.EthernetElement.RemoteIPAddress
    =
    System.Net.IPAddress.Parse(this.textBoxRemoteEthernetIpAddress.Text);
    The EthernetElement should propagate a changed event up to
    the parent ApplicationConfiguration which would persist this to the
    registry, db, file or whatever backend.
    currently this logic is maintained else where. I serialize
    the root node which compositely serializing the nested nodes and i
    check of the serialization is different from that in the backend
    … This tells me if the dom was modified. It works but i would
    like an event driven system.
    how should i implement bubbling using custom objects?
    3 implementation ideas:
    1) A simple way is to implement a singleton event manager:
    EventManager.RegisterRoutedEvent
    http://msdn2.microsoft.com/en-us/library/ms742806.aspx
    I like this idea but how can you tell which object is nested
    in who… this way the event can be stopped and discontinue
    propagation?
    2) If i use binders as discussed in Apress’s book:
    Event-Based
    Programming Taking Events to the Limit
    basically a binder connects the events between seperate
    objects together… although it would work for my app, I would
    like a more generalized approach so i can reuse the event system on
    future project.
    3) how does flash flex handle this..
    objectproxy.as?
    http://www.gamejd.com/resource/apollo_alpha1_docs/apiReference/combined/mx/utils/ObjectPro xy.html#getComplexProperty()
    >Provides a place for subclasses to override how a complex
    property that needs to be either proxied or daisy chained for event
    bubbling is managed.
    how does these systems all work....? Reflection ?
    this way i can simulate this on my own custom classes.
    Thanks!

    I have a strong sensation that the OSMF project is quite dead.
    no new submits since 2010, the contact form on the offical OSMF
    project website http://www.opensourcemediaframework.com/
    returns a PHP error.
    and many unanswered questions about OSMF in this forum.
    i think it would be wise to not use OSMF if possible, although
    I'm also stuck with it since we are utilizing HDS/PHDS
    protocols which are utilized in the framework.
    otherwise its quite a head-ache.
    I'm unable to get to a video element coming from a proxied element
    that is being produced via an HDS connection.
    and haven't found any solution that works.

  • No versions after import for customer objects

    Hi all!
    I have a little problem with transporting of (customer dictonary objects) and the versions.
    The system enviroment is SAP ECC 6, software level
    SAPKB70016
    SAPKA70016
    SAPKH60302
    On the developer system the customer objects have versions - after transporting them to the quality system they have no versions.
    On the other side SAP Objects e. g. table BSEG or BKPF have versions - in the developer and also quality system.
    Its a strang thing. Normally versions will be created after import in a seperate step.
    How can i check if something is wrong with versions? The parameter "vers_at_imp" is not set in the tpparam but i think that shouldn't be a matter.
    Please can anybody help me - I don't believe that it will be a bug because all notes I found were for older releases.
    Thank you!
    Best regards
    Thomas Wassenhoven

    Hi!
    Thank you for the answer!
    I found additional information now - the version management is disabled per default (tp parameter vers_at_imp)
    Best regards
    Thomas

  • Inventory Management using Custom Object 07

    Hi Guys,
    I have been trying to use custom object 07 as Inventory.
    I have renamed custom object 07 as Inventory. I have verified that already a relationship exists between this custom object and Products. So, I modified the Inventory Page Layout to make the products related information section visible. I have created access profiles and role appropriately. I was able to see the products related information section in the Inventory detail page but I didn't see any means of associating records with the inventory like buttons.
    Did I miss any step? Also could you point me to documentation related to custom objects?
    Thanks and Regards
    Naren B

    Hi Bobb. Thanks for the reply.
    My requirement doesn't require any reports to be developed. So, I didn't think about it. I tried to use custom object 7 for as Inventory. So, i just renamed Custom object 7 as Inventory. Already there is a relationship existing between custom object 7 and products. So, I went to the related information layout of Inventory(CO-7) and used the standard information layout provided for products. But, I didn't find any buttons to associate a product in the related information section under inventory. My main requirement is to manage inventory transactions. When a shipment is receiving the available quantity and the quality of the product have to be changed accordingly and so on. Currently I am using custom objects 1,2 and 3 for this purpose and i was able to achieve the requirement. Don't know what was wrong. May be the button was disabled purposefully. I will check it out and i will let you know. Can you explain in brief in two to three steps the procedure you followed ?
    Thanks and Regards
    Naren

  • Service Objects with Dialog duration

    m
    Hi Forte`ans,
    I am trying to listen to an event from a service object which has a
    dialog duation of Message.The service object is configured for
    failover.
    I get an exception ( not an error message ) saying :
    SYSTEM ERROR: Invalid attempt to register for an event on an object of
    class (CKBaseServiceMgrProxy) which has a dialog duration of
    message. The
    semantics of message duration do not guarantee that the same object
    instance will service each message, which is in conflict with the
    semantics of event registration (which requires that the same object
    instance to which the event is registered for generates the event;
    these are two separate actions). To disable this restriction,
    restart this process with cfg:do:4 specified.
    If I make the dialog duration of the SO Session, it works without
    screaming.
    Does this mean I cannot listen to events from such SO( Failover
    enabled with Message duration?) Is it because the event loop may still
    point to the failed SO and Forte wants to avoid such situations???
    Can somebody throw some light on this..?
    Thanks
    Ajith Kallambella M
    International Business Corporation.

    We ran into this same problem when converting an application from R1 to
    R2. In R1, you were allowed to do this. However, Forte won't
    guarantee, even in a non-replicated, non-failover partition, that it
    won't swap objects under certain situations unless the dialog duration
    is session. If this happened, you would lose your registration and not
    even know it. The recommended solution is for the client partition to
    pass a reference to an object anchored in its partition to the service
    object in the remote partition. The service object can then post events
    on the anchored object, which is guaranteed to be there during the life
    of that client partition. The logger flag was designed for backwards
    compatibility. It's not really recommended, but it's not supposed to
    have much overhead if you do use it. We already had a client
    notification architecture in place, so we re-worked our application to
    use it in the cases where we had been using direct registrations. Hope
    this helps -- Chris
    Chris Kelly, IS Architect
    Andersen Windows
    From:
    [email protected][SMTP:[email protected].
    net.in]
    Sent: Thursday, September 18, 1997 1:44 PM
    To: [email protected]
    Subject: Service Objects with Dialog duration
    m
    Hi Forte`ans,
    I am trying to listen to an event from a service object which
    has a
    dialog duation of Message.The service object is configured for
    failover.
    I get an exception ( not an error message ) saying :
    SYSTEM ERROR: Invalid attempt to register for an event on an
    object of
    class (CKBaseServiceMgrProxy) which has a dialog duration of
    message. The
    semantics of message duration do not guarantee that the same
    object
    instance will service each message, which is in conflict with
    the
    semantics of event registration (which requires that the same
    object
    instance to which the event is registered for generates the
    event;
    these are two separate actions). To disable this restriction,
    restart this process with cfg:do:4 specified.
    If I make the dialog duration of the SO Session, it works without
    screaming.
    Does this mean I cannot listen to events from such SO( Failover
    enabled with Message duration?) Is it because the event loop may
    still
    point to the failed SO and Forte wants to avoid such
    situations???
    Can somebody throw some light on this..?
    Thanks
    Ajith Kallambella M
    International Business Corporation.

  • Custom check in dialog

    Hi,
    we are currently implementing a custom check-in dialog for Bridge.
    The dialog contains a Combobox.
    The available items in the combobox are loaded from a web-service, called from Bridge. How is it possible to provide the Flex UI with data from Bridge?
    Thanks

    I think I'm on the right track but I'm not able to get it working.
    I'm using the IGetCustomCheckInUIContextInfoHandler from the Drive SDK, and have added following testcode:
    HashMap<String, Object> items = new HashMap<String, Object>();
    items.put("key1", "value1");
    items.put("key2", "value2");
    response.setContextInfo(items);
    In the Flex Mdule, I have implemented ICustomCheckInUI and using following code:
    public function setContextInfo(info:Object):void
    var items:Array = info as Array; 
    if(items != null) {workflowCombo.dataProvider = items;
    When running, I am able to see the ComboBox, but it is empty. Anyone an idea?

  • Disable / Enable Swing Objects

    Hello,
    I have a JFrame with objects on it,
    like several JTextField, JComboBox, JFormattedTextField, JCheckBox, JButton.
    - User set some parameters on the GUI
    - When user press the "export" button, an export function starts as Thread.
    During the export process, how can I prevent that user changes the settings or press the export button again?
    I am thinking about ...
    When user press the export button, then
    - export runs
    - all objects are disabled
    When export is done, then
    - all objects are enabled
    Is there a smart way of disabling / enabling all objects at once, without explicitly referencing each one of them like field1.disbabled(), ...
    I am open also for other approaches.
    Thanks,A.

    Hi Kayaman,
    the approach with progress bar with modal dialog fits best to my need.
    I re-used the code from the following website ...
    http://www.java2s.com/Code/Java/Swing-JFC/Creatingamodalprogressdialog.htm
    Thanks, A.

  • Performance issue in Webi rep when using custom object from SAP BW univ

    Hi All,
    I had to design a report that runs for the previous day and hence we had created a custom object which ranks the dates and then a pre-defined filter which picks the date with highest rank.
    the definition for the rank variable(in universe) is as follows:
    <expression>Rank([0CALDAY].Currentmember,  Order([0CALDAY].Currentmember.Level.Members ,Rank([0CALDAY].Currentmember,[0CALDAY].Currentmember.Level.Members), BDESC))</expression>
    Now to the issue I am currently facing,
    The report works fine when we ran it on a test environment ie :with small amount of data.
    Our production environment has millions of rows of data and when I run the report with filter it just hangs.I think this is because it tries to rank all the dates(to find the max date) and thus resulting in a huge performance issue.
    Can someone suggest how this performance issue can be overcome?
    I work on BO XI3.1 with SAP BW.
    Thanks and Regards,
    Smitha.

    Hi,
    Using a variable on the BW side is not feasible since we want to use the same BW query for a few other reports as well.
    Could you please explain what you mean by 'use LAG function'.How can it be used in this scenario?
    Thanks and Regards,
    Smitha Mohan.

  • How to create the data for custom objects in pList

    Hi,
    I am new in developing on iPhone and I don't know much about this area. I would like to ask a question. I couldn't find the answer on this question in apple documentation but I hope Internet community will help me.
    Lets say I have a class called classA. The classA has 2 public properties (or fields):
    *int customIndex*;
    and
    NSString *customTitle;
    My view controller class showMeSomething has a property NSArray which holds the objects of type classA. I would like to load the array from the plist resource file. How do I edit the resource file with initial values or how do I know the format of the plist which can be loaded from using mainBundle for my array of custom objects?
    Thanks!

    Here's some info on working with plists:
    http://developer.apple.com/documentation/Cocoa/Conceptual/PropertyLists/Introduc tion/chapter1_section1.html
    They can be edited with any text editor. Xcode provides a graphical editor for them - make sure to use the .plist extension so Xcode will recognize it.

  • In Object Properties dialog box, modify "tab path"...

    For FrameMaker versions up to and including 8 (and I suspect 9).
    Select a graphic, then click in sequence
    ESC g o to open the
    Object Properties dialog box. By default the dialog box opens with the insertion point in the
    Width text entry area.
    Now press TAB four times: The insertion point moves sequentially to the
    Height,
    Top,
    Left, and then
    Color text entry areas.
    I wish the last movement, to the
    Color text entry area, was replaced with movement to the
    Percent text entry area. This would enable me to use the keyboard to efficiently configure the size, position, and scaling of a graphic.
    As it is, I virtually never need to select the graphic's
    Color text entry area and the movement of the insertion point to that essentially useless tool drives me crazy: It makes me TAB all the way 'round the dialog box or grab the pointing device to get it to the
    Percent text entry area...
    Cheers,
    Riley

    Odd... What does your properties dialog look like? Can you post a screenshot of the dialog box? Also, what version of LabVIEW are you running?
    Message Edited by smercurio_fc on 06-03-2008 04:56 PM

  • Generate quote off custom object--HTML in narrative duplicates table

    Hi,
    I am trying to build a quote header and lines off a custom object. Quote header works, but I am using a separate narrative report called from a web link to show the quote item lines data. The narrative section displays my basic table header and lines, but since the report returns two rows for the selected parts, the table with the header and lines is displayed twice, once for each row returned by the report itself.
    I just want one instance of the table, one header and two lines, not separate tables for each part.
    Here is the sample html placed in the narrative section of the report.
    <TABLE BORDER="5" WIDTH="50%" CELLPADDING="4" CELLSPACING="3">
    <TR>
    <TH COLSPAN="2"><BR><H3>TABLE TITLE</H3>
    </TH>
    </TR>
    <TR ALIGN="CENTER">
    <TH>Column A</TH><TD>@5</TD><TH>Column B</TH><TD>@8</TD>
    </TR>
    </TABLE>
    Many thanks for any input.

    Hi,
    Instead of putting it all in the Narrative section you could use the Prefix and Postfix like below:
    <!-- Prefix -->
    <TABLE BORDER="5" WIDTH="50%" CELLPADDING="4" CELLSPACING="3">
    <TR>
    <TH COLSPAN="2">
    TABLE TITLE
    </TH>
    </TR>
    <TR ALIGN="CENTER">
    <TH>Column A</TH><TH>Column B</TH>
    </TR>
    <!-- Narrative -->
    <TR ALIGN="CENTER"><TD>@5</TD><TD>@8</TD>
    </TR>
    <!-- Postfix-->
    </TABLE>

  • How do I disable linked smart-object auto-update/refresh?

    Working in the CC3D features, I am constantly making changes to my bump map. Every time I step-backwards, or make a significant change to the bump texture (smart object?), CC auto-saves the layer. This specific file is a very very large document (3 gigs in the bump texture layer alone), and the 3D layer has lots of lights and is very complex. This auto-refresh/update really bogs down the time that it would take me to make my changes. I have a very fast machine (I know it's fast, I dont need to list my specs), and I have all shadows disabled.
    How do I disable linked smart-object auto-update/refresh?

    If you do not like a feature like smart objects there is nothing forcing you to use it. Use some other features to do what you want. Please don't ask Adobe to introduce bug into smart object support.
    You could work on your bump maps textures in external files. When your done some time in the future you could edit your project with the smart object layer and use replace smart object. Only then will all smart filters be applied to the smart layer with the replaced smart object.
    Or if by CC Auto save Layer you referring to CC Generate feature you can disable that feature.
    I have no idea what your referring to when you write "CC auto-saves the layer" being a feature. I know CC Generate will write layers out as web files but that more a Web feature then a 3d feature.  Where do you see your layer being saved?

  • How can i create a custom object 0REQUID

    Hello all,
    I have a question. How can i create a custom object 0REQUID? Is it possible to create it without actvating BI content?
    Thanks in advance..

    Hi,
    If you want to create a new info object which is a copy of 0REQUID. then
    Go to > info object key figure / Chara catalogue> create new key figure / Chara --> enter 0REQUID in front of TEMPLATE and you will get all details of 0REQUID in your new key figure / chara.
    Hope this helps.
    Assgn pts if helpful.
    Regards
    Edited by: chintamani deshmukh on Apr 14, 2008 11:09 AM

  • Checking the status of task records tied to the custom object 3

    We are using custom object 3
    There has been lot of configuration work done on this object.
    There is a checkbox on the UI. When a user will checks off the check box, a task record(s) is created depending on the condition.
    Is there a way for me to check the status on the task records and then set a field on the parent record i.e. custom object 3.
    Thanks,
    Nitika

    To whom are you speaking?

Maybe you are looking for

  • How to disable "save as" from blocking print function in gmail/net pages

    In Windows XP/Norton360/Firefox: Can't print Gmail or web site pages as of 2/2/12. After clicking PRINT command, the SAVE AS window pops up on top of the PRINT STATUS box. When I close SAVE AS, I get this message box: "Unknown error has occurred whil

  • Lifeblog not working

    I am using Nokia Lifeblog 2.5 with my Nokia N95,recently it has stopped working. Error message is as follows : "Lifeblog encountered problems copying item to or from your phone. Please check the connection and try again. If the problem persists, rest

  • Re: Exchange Rate value is different in VF01-Header

    Hi, We maintain different Exchange Rate Type for Customer and Vendor. For Customer we maintain in Cust Master  AR( Rate for Sale).In OB08 we also maintan USD to INR for AR Exchange rate type.( Rs 48). In sales order Exchange rate is fine .It's coming

  • IOS 4.2.1 problem

    Hi. I have a problem that came with iOS 4.2.1. When im talking on the phone and resiewe a text or mail, the phone vibrates. This is not nice, during a phonecall it should just play a sound?! Sorry for bad english

  • The change of SC will affect the Contract ?

    HI, Expert :    I work in SRM 7.0 ,ECS   I create one Shopping Cart with 2 Material item , and then  create the FRx according this SC .In the new FRx ,I add one Service item ,and publish it .   In the end ,I get 2 contracts  according the RFx, one wi