Dynamic objects in a tabstrip

Hi,
I am creating dynamically tabs in my tabstrip and that works fine so for. I found some examples in SDN and here for me to learn. Now I try to add a transparent container and some objects to it, but do not know how. This is so far my code in WDDOMODIFYVIEW:
some code here
* Create a new tab:
  CONCATENATE 'TAB' wd_this->tot_tabs INTO aux_text.
  lr_tab = cl_wd_tab=>new_tab( id = aux_text ).
  lr_tabstrip->add_tab( the_tab = lr_tab ).
* Add a transparent container:
  CONCATENATE 'TABCONT' wd_this->tot_tabs INTO aux_text.
  lr_control = cl_wd_transparent_container=>new_transparent_container( id = aux_text
                                                                       view = view ).
  lr_tab->set_content( lr_control ).
TOT_TABS has the current number of the tab. System compiles the code correctly and activates it but when running the application I get this error message:
The following error text was processed in the system NSP : Access via 'NULL' object reference not possible.
The ABAP call stack was:
Method: CREATE_NW7_BY_VIEW_ELEMENT of program CL_NW7_VIEW_ELEMENT_ADAPTER===CP
Could it be maybe because I am not adding objects ?? I don´t know how anyway.

Hi Guillermo,
Welcome to SDN.
You can have dynamic tabs by placing the <htmlb:tabStripItem> in a loop in the layout:
<% loop at tabstrip_tab. %>
  <htmlb:tabStripItem index="<%=tabstrip_tab-index%>" etc. />
<% endloop. %>
Where tabstrip_tab contains the details of the tabstrip items.
Regards,
Patrick.

Similar Messages

  • Fetching Dynamic Object issue

    Hi all,
    Instead of define an variable as external (due to size limitation), I decided to use session.getInstanceData to obtain the value in an instance variable. While things works well on my environment, it does not work out in the QA environment. The following is how I do it:
    DynamicObject instanceData =
    session.getInstanceData(instanceInfo.getId());
    Map dataMap = instanceData.asMap();               
    //Get screening result
    String resultStr = "";
    boolean hasResult =
    dataMap.containsKey("screeningResults");
    if (hasResult){
    Object resultValue =
    dataMap.get("screeningResults");
         resultStr = resultValue.toString();
    I have also log the content of screen result inside the activity:
    logMessage("leaving ... "+this.activity.name +" with screening results="+ this.screeningResults);
    At my environment, I can see the content pass from the engine back to PAPI. However, on QA environment, I see the content show on the engine log (due to the logMessage) but PAPI gets empty string back.
    At first I thought it is due to the "Max Instnace Size limitation", so I upped the limit to 2000kb, but it still doesn't solve the issue. So anyone got any idea what did I do wrong or forgot to handle? Thanks!
    Matthew

    Can I create dynamic object?Depends what you mean by "dynamic object." That term is not part of standard Java parlance, AFAIK.

  • Error #1056, creating dynamic object

    Hi,
    I am simultaneously creating an object and adding it to an array, perhaps ill-advisedly. The following code worked on the main timeline, but not when I moved it to the constructor of a document class:
    package {
         import flash.geom.Point;
        import flash.display.MovieClip;
        public class IconTour extends MovieClip {
            var thePoint:Point = new Point();
            var defaultColor:Number;
            var overColor:Number;
            var iconCreationList:Array = new Array();
            //var xx:MyIcon;
            public function IconTour(){
                thePoint.x=50;
                thePoint.y=300;
                defaultColor=0x7dc2df;
                overColor=0x788dec;
                iconCreationList.push(this["xx"+iconCreationList.length] = new MyIcon(thePoint,"folder","Text for the folder", "Folder", defaultColor, overColor));
                for each (var iconObject:MyIcon in iconCreationList) {
                    addChild(iconObject);
    The following error is generated:
    >ReferenceError: Error #1056: Cannot create property xx0 on IconTour.
        at IconTour()
    I guess this is because xx0 isn't declared? How does one declare a dynamic object/variable?

    Nope. No mention. However, I guess I don't need to dynamically create a variable as this works:
    iconCreationList.push(xx = new MyIcon(thePoint,"folder","Text for the folder", "Folder", defaultColor, overColor));
    iconCreationList.push(xx = new MyIcon(thePoint,"assignments","Text for the assignment", "Assignments", defaultColor, overColor));
    where this does not:
    iconCreationList.push(this["xx"+iconCreationList.length] = new MyIcon(thePoint,"quiz","Text for the quiz", "Quiz", defaultColor, overColor));
    iconCreationList.push(this["xx"+iconCreationList.length] = new MyIcon(thePoint,"assignments","Text for the assignment", "Assignments", defaultColor, overColor));
    AS doesn't care if I add more than one object to the array that is named xx. I probably won't be referencing xx by that name anyway, just by iconCreationList[1].

  • Dynamic objects in component

    I be trying insert dynamic objects in my JSF component by JavaScript,
    but it don't see this objects in the Servlet.
    for e.g., i have a datatable with 3 rows(from Database), each row with a
    input text(HTML), and insert a dynamic input text(HTML) in my structure(4 rows),
    after execute submit to a ActionListener, the input text included in the
    fourth row dont exists in the Collection return by JSF.
    How can i get the fourth object value?

    Simply you can't.
    JavaScript can't affect the structure of the JSF component tree.

  • Change Value based on Dynamical Object

    Goal:
    The goal is to make the variable with value '2014-06-14 09:00:00.000'
    Problem:
    The syntax code is created as a dynamical object how do you make it from '2014-06-14 16:20:10.000' into value '2014-06-14 09:00:00.000'?
    DECLARE @a datetime = '2014-06-14 16:20:10.000'

    Are you looking for this?
    DECLARE @a datetime = '2014-06-14 16:20:10.000'
    select dateadd(hour,9,convert(datetime,convert(date,@a)))
    set @a = '2014-06-14 08:20:10.000'
    select dateadd(hour,9,convert(datetime,convert(date,@a)))
    Satheesh
    My Blog |
    How to ask questions in technical forum

  • Is create possible to dynamic object?

    I want to creating dynamic object.
    For example.
    class A{
    public static void main(String[] args){
    testObject("Test");
    public static void testObject(String obj){
    Class c = Class.forName(obj);
    obj o = c.newInstance();
    I define object type to use variable obj.
    Is it possible?
    obj o = c.newInstance();

    Still don't understand your question. Maybe this will help:
    public class TestNewInstance
         public static void main(String args[])
              throws Exception
              Object o = createNewInstance("java.lang.StringBuffer");
              StringBuffer sb = (StringBuffer)o;
              sb.append("I just created a StringBuffer");
              System.out.println(sb.toString());
         public static Object createNewInstance(String className)
              throws Exception
              return Class.forName(className).newInstance();
    }Notice how the code looks better when you use the "Code" tags as explained above?

  • Dynamic Objects

    Hello *,
    this is kinda wierd but I got this little 'dumb' question.
    I am new to dynamic objects and I want to improve the application I am developing.
    I got an item as Select List (P620_AN_NAME) populated with User list, returning the USER_ID
    'select user_name display, id return from users'
    Beneath there is an item which shall display the city      according to the selected user's address.
    advanced dynamic action, set value (imgs below)
    e.g. 'select city from addresses' where ID_ADDRESS (foreign key) = :P620_AN_NAME.
    Unfortunately the city will be changed only once, even if I selected "live" and the value which is selected is NOT the returning value from the list but the first always.
    http://imageshack.us/photo/my-images/5/dynt.jpg/
    http://imageshack.us/photo/my-images/59/actionse.jpg/
    Where is my mistake located?

    hi,
    this might not related to your post regarding dynamic actions.
    but,
    you can do your requirement using the a process pl/sql,
    declare
    x varcdhar2(50);
    y varcdhar2(50);
    begin
    --x := :P620_AN_NAME;
    select city into y from addresses where ID_ADDRESS = :P620_AN_NAME;
    item_city := y;
    end;this will change the item value accordingly(when select list changes/submits the page).
    regards,
    Little Foot

  • Dynamic Object for Checkbox in HTMLB control

    Hi all,
    I want to create dynamic object for Checkbox in HTMLB control.
    I have created dynamic check box in JSP using JSPDynpage. I can select multiple values in the list of checkbox.After clicking the submit button , I have to read the value of checkbox.  For this first i want to create the object for checkbox in controller.
    How can i create the dynamic object?
    Help me in this regard.
    Thanks & Regards
    Hemalatha J

    Krish
      Will this link helps you ????
      <a href="http://help.sap.com/saphelp_nw04/helpdata/en/7d/9b0e41a346ef6fe10000000a1550b0/frameset.htm">Check Box</a>
    Thanks
    Jack
    Allot points if it helps

  • Salmple at How to Create Dynamical Object for RTTC

    Hi all, I need a sample at How to Create Dynamical Object for RTTC.
      you can help me?.

    Hello Martinez,
    I have attached a sample for structure types. With the Where-Used-List on the Create() Method of the various RTTC classes one may find more samples. If you meant with object on OO Type then it is to mention that this is not possible yet.
    Regards
      Klaus
    PROGRAM sample.
    DATA: sdescr1 TYPE REF TO cl_abap_structdescr,
          sdescr2 TYPE REF TO cl_abap_structdescr,
          tdescr1 TYPE REF TO cl_abap_tabledescr,
          tdescr2 TYPE REF TO cl_abap_tabledescr,
          tref1   TYPE REF TO data,
          tref2   TYPE REF TO data,
          comp    TYPE abap_component_tab,
          wa      TYPE t100,
          xbuf    TYPE xstring.
    FIELD-SYMBOLS: <tab1> TYPE table,
                   <tab2> TYPE table.
    sdescr1 ?= cl_abap_typedescr=>describe_by_name( 'T100' ).
    comp     = sdescr1->get_components( ).
    sdescr2  = cl_abap_structdescr=>create( comp ).
    tdescr1  = cl_abap_tabledescr=>create( sdescr2 ).
    tdescr2  = cl_abap_tabledescr=>create( sdescr2 ).
    CREATE DATA: tref1 TYPE HANDLE tdescr1,
                 tref2 TYPE HANDLE tdescr2.
    ASSIGN: tref1->* TO <tab1>,
            tref2->* TO <tab2>.
    wa-sprsl = 'E'. wa-arbgb = 'SY'. wa-msgnr = '123'. wa-text = 'first text'.   INSERT wa INTO TABLE <tab1>.
    wa-sprsl = 'D'. wa-arbgb = 'SY'. wa-msgnr = '456'. wa-text = 'second text'.  INSERT wa INTO TABLE <tab1>.
    wa-sprsl = 'D'. wa-arbgb = 'XY'. wa-msgnr = '001'. wa-text = 'third text'.   INSERT wa INTO TABLE <tab1>.
    wa-sprsl = 'D'. wa-arbgb = 'ZZ'. wa-msgnr = '123'. wa-text = 'fourth text'.  INSERT wa INTO TABLE <tab1>.
    wa-sprsl = 'E'. wa-arbgb = 'SY'. wa-msgnr = '123'. wa-text = 'ABAP is a miracle'. INSERT wa INTO TABLE <tab1>.
    EXPORT tab = <tab1> TO DATA BUFFER xbuf.
    IMPORT tab = <tab2> FROM DATA BUFFER xbuf.
    LOOP AT <tab2> INTO wa.
      WRITE: / wa-sprsl, wa-arbgb, wa-msgnr, wa-text.
    ENDLOOP.

  • MXML Dynamic Object Creation

    Hi ,
    Static Object Creation :
    Eg:
        <mx:Fade id="ViewStack_EffectStart" duration="500" alphaFrom="0.0" alphaTo="1.0"/>
        <mx:Fade id="ViewStack_EffectEnd" duration="500" alphaFrom="1.0" alphaTo="0.0"/>
    <comp:ErrorBox id="errorBox" active="{active}" showEffect="{ViewStack_EffectStart}" hideEffect="{ViewStack_EffectEnd}"/> .
    The above static objects is working fine, but the problem is that we have lot of similiar static object which creates a memory issue.If we create dynamic objects, will it avoid the issue.Is dynamic objects advisible?.
    Thanks in advance.Please reply ASAP.
    Thanks ,
    San.

    hmn.. I don't understand your questions fully.
    What about create the fade object in "Model" and reference the same Fade object for all dynamic objects?
    or r u asking to find out how to create fade in actionscript?
    var fade:Fade = new Fade();
    fade.target = this;
    fade.alphaFrom = 0;
    fade.alphaTo = 1;
    fade.play();
    hope this helps,
    BaBo,

  • Java Core Program :: Dynamic Object Creation for Classe & Invoking the same

    Hi,
    I need to create a dynamic object for a class & invoke it.
    For eg: I have a table in my DB where all the names of my java classes are stored. I need to call name from the table of the DB and call that class dynamically in my java program.
    ResultSet_01 = executeQuery("select classname from class_table where class_descrip = 'Sales Invoice' ");
                   while(ResultSet_01.next())
                        String class_name = ResultSet_01.getDouble("classname");
                   }Now using the string in class_name that is fetched from ResultSet_01, I need to create an object for the class_name & invoke the class that is been created with the same name.
    Thank in advance.
    Regards,
    Haider Imani

    Well for a start since a class name is a String, not a number you'd better start by getting the name with getString() not getDouble().
    You need to work with fully qualified names, (FQNs) like "com.acme.myproject.MyDynamicClass", not just the bare MyDynamicClass.
    The next question is where the .class files for the dynamically loaded classes are stored. If they are part of your normal program code, on the class path, then you can use Class.forName to load the class and return a Class object. If they are in some special place you'll need to create a URLClassLoader and get the Class from that.
    Generally, when you load a class this way, it should implement some known interface, or extend some know abstract class. By placing objects of the dynamic class in a reference to that interface you can use the methods defined in the interface.
    The usual way of getting an instance of a dynamic class is to call newInstance() on the Class object.

  • PAPI -Dynamic Object is not retuning bpm response

    Hi ,
    I am trying to invoke bpm process form my struts application.For invoking bpm process iam using PAPI.While invoking the bpm process iam capturing the response throgh Dynamic Object.
    When i run my application for the first hit iam not getting the response.2nd hit onwards iam getting the response.
    Can u any body suggest me.
    Regards,
    Srinivas

    Properties configuration = new Properties();
              configuration.setProperty(ProcessService.DIRECTORY_ID, "default");
              configuration
                        .setProperty(ProcessService.PROJECT_PATH,
                                  "C:\\Documents and Settings\\mm0c14214\\OracleBPMWorkspace\\GAT_PROCESS");
              try {
                   ProcessService processService = ProcessService
                             .create(configuration);
                   ProcessServiceSession session = processService.createSession(
                             crmForm.getUserId(), crmForm.getUserId(), "localhost");
                   Arguments a = Arguments.create();
                   a.putArgument("contactIdArg", crmForm.getContctId());
                   a.putArgument("jobIdArg", crmForm.getJobid());
                   a.putArgument("organizationIdArg", crmForm.getOrganizationId());
                   a.putArgument("requestTypeArg", crmForm.getRequestType());
                   InstanceInfo processinstance = session.processCreateInstance(
                             "/GATSERVICE", "BeginIn", a);
                   processinstance = session.activityExecute(processinstance
                             .getActivityId(), processinstance.getId(), a);
                   DynamicObject dynamicObject = session
                             .instanceGetData(processinstance);
                   ArrayList productIdList = (ArrayList) dynamicObject
                             .asDynamicObject().getField("pIDList").asList();
                   ArrayList productNameList = (ArrayList) dynamicObject
                             .asDynamicObject().getField("nameList").asList();
                   HashMap map = new HashMap();
                   for (int i = 0; i < productIdList.size(); i++) {
                        map.put(productIdList.get(i), productNameList.get(i));
                   HttpSession httpSession = request.getSession();
                   httpSession.setAttribute("list", map);
                   httpSession.setAttribute("processinstance", processinstance.getId());
                   httpSession.setAttribute("session", session);
                   session.close();
                   processService.close();
              } catch (Exception e) {
                   e.printStackTrace();
    Regards,
    Srinivas

  • Is there a way to define a layer for dynamic objects?

    Hi all. Basically, I'm creating a number of dynamic text field objects in my Actionscript, but it looks like its being rendered on the wrong layer. I've written the actionscript in the first frame of my 3rd layer (which is masked), but the objects that are rendered dont appear to be affected by the masking effect (that does work with static objects). Is there a way to define programatically which layer an object is rendered in? Something like layerNo.stage.addChild(object)?

    first, you have the command 'addChildAt(child, index)'
    thought i'm not sure if that would solve your problem.  in order to mask dynamic text you have to embed its fond, by setting the textfield's property 'embedFonts' to true.

  • Dynamic tabs in the tabstrip

    Hello All,
    I am trying to populate dynamic tabs using the function module
    TAXI_INITIALIZE_CARRIERSCREEN. Using this FM we can populate at the max 32 tabs.
    My requirement is to place more than 32 tabs in the tabstrip.
    Is there any other function module which is used to populate tabs.
    Or any other solution for this.
    Thanks in Advance.
    Regards,
    Suganya.

    hi,
    i need help on TAXI_INITIALIZE_CARRIERSCREEN. i want to know how to use this
    say, i have created a tabcontrol in the screen painter with function code and reference field. i want to change the text dynamically during runtime.
    can i use this function.
    Moreover , say,
    tabcap-TAB01 = 'TOTAL'.
    tabcap-TAB02 = 'SIZEE'.
    *TABSTRIP_NAME
    CALL FUNCTION 'TAXI_INITIALIZE_CARRIERSCREEN'
      EXPORTING
        tabstrip_captions       = tabcap
      GUI_PROGRAM             =
      GUI_STATUS              =
      GUI_TITLE               =
      GUI_TITLE_PARAM         =
    In the above where do i specify the TAB Strip control Name.
    i dont know how to pass on the export details for GUI_PROGRAM and rest of it. kindly help me
    regs,
    raja

  • Saving dynamic objects in a container to a dataGrid

    I have an app which contains a dataGrid and a VBox container.
    dataGrid columns = username | objects
    VBox = holds children, objects (SWFLoaders)
    How would I be able to get the children back out of the
    dataGrid / save them to the dataGrid? Right now I'm using a
    VBox.getChildren(); and a dataGrid.selectedItem.objects =
    VBox.getChildren(); to get the information in. Is there any way to
    render it back out to the VBox so each user could have a different
    set of objects?
    Editing to show what the getChildren is returning - >
    AppName1.VBox.childName1,AppName1.VBox.childName2,AppName1.VBox.childName3,
    (etc)
    Any help, much appreciated.

    peterent:
    Let me try to clarify.
    I'm using a VBox to visually display a series of graphics. I
    am getting those graphics into the VBox by adding them as children.
    I'm using a dataGrid to hold data about a user, and it is set
    up to hold multiple users. Each user has a series of data that is
    redisplayed when you select their index in the datagrid. This is
    all textual data, so I figured out how to get it to save into the
    datagrid without too much trouble. Also I figured out how to
    redisplay the selected data once it was out.
    (Every column in the datagrid is set to not be visible except
    for the name)
    The big problem I'm having is turning the children of the
    VBox into something that would a> save easily to the dataGrid
    and b> load easily back into the VBox. This way, in addition to
    the data that I already have for each user, I could also save a
    series of graphics, that I could load back in at a later time into
    the VBox.
    I kinda went down the roads of considering using states
    today. But I don't really know how to dynamically generate a state
    which would then save into a dataGrid, and then have that state
    work for many different end-users.
    So, I hope this cleared things up a little bit. If not, or if
    you think you might know what I'm sniffing at but aren't totally
    sure, I could show you my source / app.

Maybe you are looking for

  • Post Goods Issue without reference to order

    Dear All We are using both Account and Costing Based COPA. We do post goods issue without reference to order. Now our problem is that at the time of post goods issue there is no Profit Analysis document posted in the system  and Profit Segment field

  • How to calculate totals based on year (date) and comparing othe columns in the same table please

    Hello Good Evening, Could you please help me here how to write condition for self table year records, such 2012 name and acctno match with 2013 name and acctno then total, provided below, create table #tab1 (MasterKey int, AcctNo varchar(12),name var

  • The volume control on my MacBook Pro (running Lion) is not working

    All of a sudden I lost the ability to move the volume slider for my MacBook Pro internal speakers. It's permanently set to mute. I can't figure out! Every time I go into System Preferences and click "Sound" I get the spinning beach ball of death and

  • Release Procedure of Purchase Requisition

    We are trying to configure the release strategy of purchase requisition with classification system.  Following field are included in the release strategy: document type, creation indicator, requisitioner, item category, purchasing organization and to

  • Re-installed itunes, now can see music, can't play it

    had computer crash, new hard drive came with no itunes. Had to reinstall, when I sync ipod nano, music shows up under ipod in left panel, but it is kinda grayed out in right panel. cannot click songs, play, anything. Only thing that works is to go to