Dynamic creation of object

Hai
There is a calss Firm like below
public class Firm
public void sayHai()
System.out.println("Hai");
There is a main class like below
public main
public void getObject(String className,Object firmObject)
In this method I am passing Object as a parameter.
I want to accessw sayHai() method of Firm Class by using firmObject
variable.
Actually i am trying like below
Class clsFirm = Class.forName(className);
Object objFirm = clsFirm.newInstance();
objFirm.sayHai(); // Here it is showing error. I am not getting
// How to cast the ObjFirm to actual object.
// Since I know className only.
public static void main(String args[])
          Main doMain = new Main();
Firm doFirm = new doFirm();
          dc.getObject("Firm",doFirm);
Thnks in advance for clarifying my doubt.

There are two approaches. Usually the best one is to predefine an interface which your dynamically loaded are required to implement. Then you can cast the dynamically created object to that interface and call it from there.
public interface DynInterface {
  public void sayHI();
public class Firm implements DynInterface {
  public void sayHi() {
Class cls = Class.forName("Firm");
DynInterface obj = (Dyninterface)cls.newInstance();
obj.sayHi();If you don't have that kind of control over the specs of the dynamically loaded classes they you need to resort to introspecion. In this can use the getMethod() call of Class to get a java.lang.reflect.Method object and use "invoke" on it:
Class cls = Class.forName("Firm");
Method m = cls.getMethod("sayHi", null);
Object obj = cls.newInstance();
m.invoke(obj, null);

Similar Messages

  • Dynamic Creation of Objects using Tree Control

    I am able to Create Dynamic Objets using List control in
    flex,but not able to create objects using TreeControl,currently iam
    using switch case to do that iam embedding source code please help
    me how to do that
    <?xml version="1.0" encoding="utf-8"?>
    <!--This Application Deals With How to Create Objects
    Dynamically -->
    <mx:Application xmlns:mx="
    http://www.adobe.com/2006/mxml"
    layout="absolute">
    <mx:XML id="treeDP">
    <node label="Controls">
    <node label="Button"/>
    <node label="ComboBox"/>
    <node label="ColorPicker"/>
    <node label="Hslider"/>
    <node label="Vslider"/>
    <node label="Checkbox"/>
    </node>
    </mx:XML>
    <mx:Script>
    <![CDATA[
    import mx.core.UIComponentGlobals;
    import mx.containers.HBox;
    import mx.controls.*;
    import mx.controls.VSlider;
    import mx.controls.Button;
    import mx.controls.Alert;
    import mx.core.UIComponent;
    import mx.controls.Image;
    import mx.managers.DragManager;
    import mx.events.DragEvent;
    import mx.controls.Tree;
    import mx.core.DragSource
    import mx.core.IFlexDisplayObject;
    /*This function accepts the item as on when it is dragged
    from tree Component */
    private function ondragEnter(event:DragEvent) : void
    if (event.dragSource.hasFormat("treeItems"))
    DragManager.acceptDragDrop(Canvas(event.currentTarget));
    DragManager.showFeedback(DragManager.COPY);
    return;
    else{
    DragManager.acceptDragDrop(Canvas(event.currentTarget));
    return;
    /*This Function creates objects as the items are Dragged
    from the TreeComponent
    And Creates Objects as and When They Are Dropped on the
    Container */
    private function ondragDrop(event:DragEvent) : void
    if (event.dragSource.hasFormat("treeItems"))
    var items:Array =event.dragSource.dataForFormat("treeItems")
    as Array;
    for (var i:int = items.length - 1; i >= 0; i--)
    switch(items
    [email protected]())
    case "Button":
    var b:Button=new Button();
    b.x = event.localX;
    b.y = event.localY;
    b.addEventListener(MouseEvent.MOUSE_MOVE,mouseMoveHandler);
    myCanvas.addChild(b);
    break;
    case "ComboBox":
    var cb:ComboBox=new ComboBox();
    myCanvas.addChild(cb);
    cb.x = event.localX;
    cb.y = event.localY;
    cb.addEventListener(MouseEvent.MOUSE_MOVE,mouseMoveHandler);
    break;
    case "ColorPicker":
    var cp:ColorPicker=new ColorPicker();
    myCanvas.addChild(cp);
    cp.x = event.localX;
    cp.y = event.localY;
    cp.addEventListener(MouseEvent.MOUSE_MOVE,mouseMoveHandler);
    break;
    case "Vslider":
    var vs:VSlider=new VSlider();
    myCanvas.addChild(vs);
    vs.x = event.localX;
    vs.y = event.localY;
    vs.addEventListener(MouseEvent.MOUSE_MOVE,mouseMoveHandler);
    break;
    case "Hslider":
    var hs:HSlider=new HSlider();
    myCanvas.addChild(hs);
    hs.x = event.localX;
    hs.y = event.localY;
    hs.addEventListener(MouseEvent.MOUSE_MOVE,mouseMoveHandler);
    break;
    case "Checkbox":
    var check:CheckBox=new CheckBox();
    myCanvas.addChild(check);
    check.x = event.localX;
    check.y = event.localY;
    check.addEventListener(MouseEvent.MOUSE_MOVE,mouseMoveHandler);
    break;
    else {
    var Component:UIComponent =
    event.dragSource.dataForFormat("items") as UIComponent ;
    Component.x = event.localX;
    Component.y = event.localY;
    Component.addEventListener(MouseEvent.MOUSE_MOVE,mouseMoveHandler);
    myCanvas.addChild(Component);
    /*How to move the Objects within the Container */
    public function mouseMoveHandler(event:MouseEvent):void{
    var
    dragInitiator:UIComponent=UIComponent(event.currentTarget);
    var ds:DragSource = new DragSource();
    ds.addData(dragInitiator,"items")
    DragManager.doDrag(dragInitiator, ds, event);
    ]]>
    </mx:Script>
    <mx:Tree dataProvider="{treeDP}" labelField="@label"
    dragEnabled="true" width="313" left="0" bottom="-193" top="0"/>
    <mx:Canvas id="myCanvas" dragEnter="ondragEnter(event)"
    dragDrop="ondragDrop(event)" backgroundColor="#DDDDDD"
    borderStyle="solid" left="321" right="-452" top="0"
    bottom="-194"/>
    </mx:Application>
    iwant to optimize the code in the place of switch case
    TextText

    Assuming your objects are known and what you need are simply
    variable names created by the program, try using objects as
    associative arrays:
    var asArray:Object = new Object();
    for (var n:int = 0; n < 10; n++) {
    asArray["obj" + n] = new WHAT_EVER();

  • Dynamic creation of objects at runtime

    supposed i want to create a tree structure and i use objects to represent the nodes...but i need the user to specify the number of nodes in the tree...so the user will enter 10 or 13 whatever.So how do we create those nodes dynamically...i know how to add nodes ...umm Example
    Node A=new node('A');
    Node B=new node('B');
    //this creates a new node A of type node(user defined class)
    but how to create it dynamicaaly
    eg
    for(i=1;i<=Totalnodes;i++)
    Node A= new node('A');
    } //well obviously this code is wrong .
    Here is a copy of the main program where nodes are added to the code and not specified by the user
    public class Main {
         public static void main(String[] args)
              //Lets create nodes as given as an example in the article
              Node nA=new Node('A');
              Node nB=new Node('B');
              Node nC=new Node('C');
              Node nD=new Node('D');
              Node nE=new Node('E');
              Node nF=new Node('F');
              //Create the graph, add nodes, create edges between nodes
              Graph g=new Graph();
              g.addNode(nA);
              g.addNode(nB);
              g.addNode(nC);
              g.addNode(nD);
              g.addNode(nE);
              g.addNode(nF);
              g.setRootNode(nA);
              g.connectNode(nA,nB);
              g.connectNode(nA,nC);
              g.connectNode(nA,nD);
              g.connectNode(nB,nE);
              g.connectNode(nB,nF);
              g.connectNode(nC,nF);
    .

    Ugh i so messed up..ok ok im gonna explain clearly now coz i just kinda blurted out stuff before :P
    ok So here is the main program :
    public class Main {
         public static void main(String[] args)
              //Lets create nodes as given as an example in the article
              Node nA=new Node('A');
              Node nB=new Node('B');
              Node nC=new Node('C');
              Node nD=new Node('D');
              Node nE=new Node('E');
              Node nF=new Node('F');
              //Create the graph, add nodes, create edges between nodes
              Graph g=new Graph();
              g.addNode(nA);
              g.addNode(nB);
              g.addNode(nC);
              g.addNode(nD);
              g.addNode(nE);
              g.addNode(nF);
              g.setRootNode(nA);
              g.connectNode(nA,nB);
              g.connectNode(nA,nC);
              g.connectNode(nA,nD);
              g.connectNode(nB,nE);
              g.connectNode(nB,nF);
              g.connectNode(nC,nF);
              //Perform the traversal of the graph
              System.out.println("DFS Traversal of a tree is ------------->");
              g.dfs();
              System.out.println("\nBFS Traversal of a tree is ------------->");
              g.bfs();
    And this is the Graph module:
    import java.util.ArrayList;
    import java.util.LinkedList;
    import java.util.Queue;
    import java.util.Stack;
    public class Graph
         public Node rootNode;
         public ArrayList nodes=new ArrayList();
         public int[][] adjMatrix;//Edges will be represented as adjacency Matrix
         int size;
         public void setRootNode(Node n)
              this.rootNode=n;
         public Node getRootNode()
              return this.rootNode;
         public void addNode(Node n)
              nodes.add(n);
         //This method will be called to make connect two nodes
         public void connectNode(Node start,Node end)
              if(adjMatrix==null)
                   size=nodes.size();
                   adjMatrix=new int[size][size];
              int startIndex=nodes.indexOf(start);
              int endIndex=nodes.indexOf(end);
              adjMatrix[startIndex][endIndex]=1;
              adjMatrix[endIndex][startIndex]=1;
         private Node getUnvisitedChildNode(Node n)
              int index=nodes.indexOf(n);
              int j=0;
              while(j<size)
                   if(adjMatrix[index][j]==1 && ((Node)nodes.get(j)).visited==false)
                        return (Node)nodes.get(j);
                   j++;
              return null;
         //BFS traversal of a tree is performed by the bfs() function
         public void bfs()
              //BFS uses Queue data structure
              Queue q=new LinkedList();
              q.add(this.rootNode);
              printNode(this.rootNode);
              rootNode.visited=true;
              while(!q.isEmpty())
                   Node n=(Node)q.remove();
                   Node child=null;
                   while((child=getUnvisitedChildNode(n))!=null)
                        child.visited=true;
                        printNode(child);
                        q.add(child);
              //Clear visited property of nodes
              clearNodes();
         //DFS traversal of a tree is performed by the dfs() function
         public void dfs()
              //DFS uses Stack data structure
              Stack s=new Stack();
              s.push(this.rootNode);
              rootNode.visited=true;
              printNode(rootNode);
              while(!s.isEmpty())
                   Node n=(Node)s.peek();
                   Node child=getUnvisitedChildNode(n);
                   if(child!=null)
                        child.visited=true;
                        printNode(child);
                        s.push(child);
                   else
                        s.pop();
              //Clear visited property of nodes
              clearNodes();
         //Utility methods for clearing visited property of node
         private void clearNodes()
              int i=0;
              while(i<size)
                   Node n=(Node)nodes.get(i);
                   n.visited=false;
                   i++;
         //Utility methods for printing the node's label
         private void printNode(Node n)
              System.out.print(n.label+" ");
    And this is the node module:
    public class Node
         public char label;
         public boolean visited=false;
         public Node(char l)
              this.label=l;
    So my question is: How do i get the user to specify the number of nodes..i.e take input the number of nodes...add them to a tree....and how do i convert this graph into a tree

  • Dynamic creation of object names

    Dear all,
    I have chose a rather generic title for a rather special problem, since I believe the above is the root. I am trying to create a bunch of JButtons which should have a running number in their names, like: button1, button2, button3, etc. Naturally, I'd like to do this in a loop. But it seems like I can't just concatenate the loop index to the button name like this:
    for(int i = 0; i < x; i++)
          JButton myButton + i = new JButton("Text");
        }How else could I achieve this? Thanks a lot in advance for any hitns!
    Cheers,
    N.

    Sorry for checking back so late...got distracted.
    To clarify further: I want to populate a column in a JTable with the buttons. The table rows contain pairs of words for a simple vocabulary trainer. If the user clicks on the button, the respective row should be deleted. The table data is built in a loop that populates a 2-dimensional object array. So, the buttons need some sort of identifier associated with them, so that I can determine which row should be deleted.
    Cheers,
    N.

  • How can I trace creation of objects?

    I am wondering how I can trace creation of objects with new. For example:
    interface CreationListener {
        void objectCreated(Object o);
    class CreationNotifier {
        static void registerCreationListener(Class cls, CreationListener listener) {
            // registers `listener' to be notified after creating any object of class `cls'
    class Test {
        public static void main(String[] args) {
            CreationNotifier.registerCreationListener(Integer.class, new CreationListener() {
                public void objectCreated(Object o) {
                    System.out.println("Created Integer " + ((Integer)o).intValue());
            new Integer(2);  // Now I would expect to see `Created Integer 2' on my console...
    }In other ways I want to get informed about every object of the specified class that gets created
    throughout the application.
    Does anyone have an idea about it? I was trying to find something appropriate in SecurityManager
    but I failed :(
    Please help!

    I think you did not understand exactly what I meant. Your solution is only good for classes written by
    me and I wanted to catch all object constructions in any class, e.g. one that I have only in a binary form.
    Maybe Hashtable is
    not the right data structure but I got to go back to
    work :-) Let me know if you come up with a better
    implementation.
    -- Niladri.I created a WeakHashSet class on top of WeakHashMap which uses one static object as a value and really cares only about the keys. In the registrating class I have a HashMap with keys of type Class and values of WeakHashSet. The register method is simple:
    public void register(Object o) {
        if (o == null) return;
        if (!map.containsKey(o.getClass()))    // this is the first object of this class being registered
            map.put(o.getClass(), new WeakHashSet());
        ((WeakHashSet)map.get(o.getClass())).add(o);    // WeakHashSet implements Set interface
    }This design ensures (because of using WeakHashMap) that I only have live objects in my structure after running GC (in fact, I call System.gc() in methods to find the live objects of a specific class).
    As you can see, my only problem is to have the object registration automate for classes that I have not written (and do not have sources).
    And using the profiler is not portable (as I guess) - in examples for JProbe they used DLL's and UNIX shared objects. And that requires unusual switches when starting JVM. I would like to have an all-Java language solution as the code fragments which I have described come from a library which I am writing now and I should not make the users of it depend on switches or dynamic libraries...
    Anyway, thanks for your good will. :-)

  • Error in creation of Object Type from XML passed

    Hi,
    I am facing a problem creating a appropriate a object type for a XML.
    Below are the details:
    XML Passed
    <mer_offer_action_data>
    <form_id>
    134039588
    </form_id>
    <action_cd>
    OA
    </action_cd>
    <offer_decline_reason_cd>
    </offer_decline_reason_cd>
    <start_dt>
    </start_dt>
    <candidate>
    <ds_prs_id>
    109315
    </ds_prs_id>
    <ds_prs_id>
    110534
    </ds_prs_id>
    <ds_prs_id>
    110059
    </ds_prs_id>
    </candidate>
    </mer_offer_action_data>
    Types Declaration
    +CREATE OR REPLACE type MER_OFF_CANDIDATE
    AS
    OBJECT
    DS_PRS_ID NUMBER
    CREATE OR REPLACE TYPE MER_OFF_CANDIDATE_t
    AS
    TABLE OF MER_OFF_CANDIDATE;
    CREATE OR REPLACE type MER_OFFER_ACT_DATA
    AS
    OBJECT
    FORM_ID NUMBER,
    ACTION_CD VARCHAR2(6),
    OFFER_DECLINE_REASON_CD VARCHAR2(6),
    START_DT VARCHAR2(11),
    CANDIDATE MER_OFF_CANDIDATE_t
    CREATE OR REPLACE TYPE MER_OFFER_ACT_DATA_t
    AS
    TABLE OF MER_OFFER_ACT_DATA;
    CREATE OR REPLACE type MER_OFFER_ACTION_DATA
    AS
    OBJECT
    MER_OFF_ACT_DATA MER_OFFER_ACT_DATA_t
    /+
    My Declaration
    +merOffActDataXML      xmltype;
    merOffActData     MER_OFFER_ACTION_DATA := MER_OFFER_ACTION_DATA(MER_OFFER_ACT_DATA_t());+
    Inside Pl/SQL block
    +-- Converts XML data into user defined type for further processing of data
    xmltype.toobject(merOffActDataXML,merOffActData);+
    when I run the Pl/Sql block it gives me error
    ORA-19031: XML element or attribute FORM_ID does not match any in type ORADBA.MER_OFFER_ACTION_DATA
    which means the object type mapping is wrong
    I would like to know whether the object type I had created is correct or not.
    Thanks for your help
    Beda

    Bedabrata Patel wrote:
    Below are the details:The details except for a description of the problem
    I am facing a problem creating a appropriate a object type for a XML.And which error you are getting
    Error in creation of Object Type http://download.oracle.com/docs/cd/E11882_01/server.112/e10880/toc.htm
    And which version of Oracle you are getting the unknown error creating the unknown problem.

  • Error in creation of Object Type

    Hi,
    I am facing a problem creating a appropriate a object type for a XML.
    Below are the details:
    XML Passed
    <mer_offer_action_data>
         <form_id>
              134039588
         </form_id>
         <action_cd>
              OA
         </action_cd>
         <offer_decline_reason_cd>
         </offer_decline_reason_cd>
         <start_dt>
         </start_dt>
         <candidate>
              <ds_prs_id>
                   109315
              </ds_prs_id>
              <ds_prs_id>
                   110534
              </ds_prs_id>
              <ds_prs_id>
                   110059
              </ds_prs_id>
         </candidate>
    </mer_offer_action_data>
    Types Declaration
    +CREATE OR REPLACE type MER_OFF_CANDIDATE
    AS
    OBJECT
    DS_PRS_ID NUMBER
    CREATE OR REPLACE TYPE MER_OFF_CANDIDATE_t
    AS
    TABLE OF MER_OFF_CANDIDATE;
    CREATE OR REPLACE type MER_OFFER_ACT_DATA
    AS
    OBJECT
    FORM_ID NUMBER,
    ACTION_CD VARCHAR2(6),
    OFFER_DECLINE_REASON_CD VARCHAR2(6),
    START_DT VARCHAR2(11),
    CANDIDATE MER_OFF_CANDIDATE_t
    CREATE OR REPLACE TYPE MER_OFFER_ACT_DATA_t
    AS
    TABLE OF MER_OFFER_ACT_DATA;
    CREATE OR REPLACE type MER_OFFER_ACTION_DATA
    AS
    OBJECT
    MER_OFF_ACT_DATA MER_OFFER_ACT_DATA_t
    /+
    My Declaration
         +merOffActDataXML          xmltype;
         merOffActData          MER_OFFER_ACTION_DATA := MER_OFFER_ACTION_DATA(MER_OFFER_ACT_DATA_t());+
    Inside Pl/SQL block
         +-- Converts XML data into user defined type for further processing of data
         xmltype.toobject(merOffActDataXML,merOffActData);+
    Thanks for your help
    Beda
    Edited by: Bedabrata Patel on Jul 12, 2010 5:51 AM

    Bedabrata Patel wrote:
    Below are the details:The details except for a description of the problem
    I am facing a problem creating a appropriate a object type for a XML.And which error you are getting
    Error in creation of Object Type http://download.oracle.com/docs/cd/E11882_01/server.112/e10880/toc.htm
    And which version of Oracle you are getting the unknown error creating the unknown problem.

  • Error in Creation of Object ID 00000000 is not allowed

    Hi all,
    When I am Hiring an employee using PA40, I am getting an error as "Creation of Object ID 00000000 is not allowed", when I save it.
    In the NUMKR Feature, the return value has been assigned to the Personnel Sub Area.
    Pls. can anybody explain, how can I solve this problem. 
    This is urgent requirement of client.
    Thanks,
    HR User.

    Hi Hr user
    Now listen carefully.
    1. If you have defined your feature NUMKR according to PSA then while running hiring action does PSA comes or it just gives you the Position, PA, EG and ESG fileds only.
    2. If the first condition is true then you will get the error, now the question is why
    Answer, you have defined the feature through PSA and once you try to save the IT0000 there is no PSA mentioned there thats why the system gives you the error.
    If this explnanation is understood by you than reply , i will tell you how you can bring the PSA field also in hiring action at IT0000.
    Do reply
    Regards,
    Bhupesh Wankar

  • Display an error message in Portal during creation of Object Link

    Hi,
    I have a requirement where I need to throw an error message in Portal during creation of Object Link.
    The requirement is whenever the user clicks on Item and try to create a Object Link for Material-Plant combination, if the Mat-Plant combination exist, than I have to throw/display an error message.
    I tried for some enhancements in BAPI_BUS2172 but it does not work out.
    Please help.
    Thanks in advance.
    Arbind

    Hi,
    If you include the UI, it will display at the top of the screen..
    Please see below how to create a message in the message editor.
    http://help.sap.com/saphelp_nw04/helpdata/en/72/1d6526263ff24995016a152705eab2/frameset.htm
    and this is how you access the error message in the application ti display it to the end user
    http://help.sap.com/saphelp_nw04/helpdata/en/72/1d6526263ff24995016a152705eab2/frameset.htm
    Regards,
    Ganesh N

  • Dynamic creation of TabStrip

    Hi,
    I want to create a tabstrip dynamically.The tabstrip should have 3 tabs, and in each of the tabs i want to put some UI elements like a label, input field, dropdown, tables.........etc.
    Im able to create the tabstrip and add tabs to it dynamically.
    I've even created the UI elements which i wanted to put in the tabs.............But im not able to proceed as i dont know how to add the UI elements to the tabs.......
    Can anyone tell me how to add UI elements to a tab in a tabstrip?
    Regards,
    Padmalatha.K
    Points will be rewarded.

    Hi,
    Following code will help you to understand the dynamic creation and adding them
    //Tabstrip
           IWDTabStrip tabStrip = view.createElement(IWDTabStrip.class);
           //Tab
           IWDTab tab = view.createElement(IWDTab.class);
           //Input Field
           IWDInputField inputField = view.createElement(IWDInputField.class);
           //Adding inputfield to tab
           tab.setContent(inputField);
           //Adding tab to tabstrip
           tabStrip.addTab(tab);
    //Finally add this tabstip to either your root container or some other container.
    Regards
    Ayyapparaj

  • Dynamic creation of ComponentUsage

    Hi people,
    I want to reuse a view (ViewA) in different views (ViewB, ViewC, ViewD).ViewA has a quite complex logic, so it is necessary to outsource this view.  Not only the logic, but also the count of UIElements and contextelements is quite large, for this I don't want to implement this part redundant in the views A, C and D.
    I have to use ViewA in a table in  the TablePopin UIElement. Every line of the table should have its own instance of ViewA. Is that possible?
    My idea is it, to put the view in an own component. For every tableline I need an instance of the componentUsage. My problem is now, that I'm not able to create at runtime a ComponentUsage and at designtime I don't know how many instances I need. Is it possible in webdynpro to create dynamic instances of ComponentUsage?
    If you know an other way, that prevents me from implementing the view and its logic more times, please tell me!
    Thanks in  advance,
    Thomas Morandell

    Hi Thomas,
    just for clarification. Principally it is possible in Web Dynpro to dynamically create new component usages of the same type like an existing, statically declared one. This means after having defined a component usage of type ISomeComp (component interface definition) you can dynamically create new component usages which all point to the same component interface definition ISomeComp:
    wdThis.wdGetISomeCompUsage().createComponentUsageOfSameType();
    But this dynamic creation approach implies, that you must also embed the component interface view of this component usage to the view composition dynamically; and this is (unfortunately) quite cumbersome and complicated based on the existing Web Dynpro Java API (it is not yet optimized for a simple dynamic view composition modification.
    Additionally, like Valery pointed out, the dynamic creation of new component usages is not compatible with table popins.
    Regards, Bertram

  • Dynamic Creation of UI in adobe forms??

    Hi Experts,
    I need to create a dynamic interactive form and dynamic UI elements in the interactive form.
    As per my requirement I need to display a pdf and I will be getting values from the RFC's. I need to show the form segments and the UI elements only when there's a data from the RFC else not. I am unable to understand whether this requirement needs generation of the UI elements dynamically or I can do it statically as well.
    The form thus generated will be having data from the RFC which based on the data quantity may exceed to n number of pages.
    In case it needs dynamic creation can you suggest me please how to achive it in interactive forms?
    Helpful answers will be appreciated.
    Warm Regards,
    Gaurav

    Hi,
    subForm1:-
    Flow content
    Allow page breaks
    Place: following previous-----> This means when you are repeating the subform the previous one should be followed.
    Say you have a table and have 3 columns in it.
    After 1st column is completed, the next column should come with 1st comun
    After: Continue filling parent--->Continously fill the data with the parent element
    Repeat sub form min count is 1 : Minimum of 1 line item will be printed
    Height: Expand to fit is true.: If the field height is increased it automatically expands.
    For help in Adobe Press F1 or Goto Help--> Adobe Designer Help in Adobe Designer
    After installing Adobe Designer, goto the specific folder
    C:\Program Files\Adobe\Designer 8.0\EN you can get sample documents.
    For help press F1 after opening designer.
    Sub Form1: Content--> Flowed, Flow direction --> Top to bottom
                       Binding --> Check the checkbox Repeat Subform for each data item
    Subform 2: Content --> Positioned, No pagination No binding settings changes needed.
    Hey i forgot to mention the Header Subform where you create all these subforms should be flowed.
    Try it once like this and lte us know
    Edited by: Sankar Narayana on Oct 3, 2008 5:06 PM

  • Dynamic creation of date in selection variant

    Hi All,
    I have a Z program for updating a field in BOM item. One of the input field in the report is "Valid From Date". Actually the current date is automatically fetched through a function module and it is defaulted in that field. 
    Our client is using selection variant for ease of use. The problem here is old date in the selection variant  is replacing the current date. I want current date to be created automatically during insertion of variant also. How can i solve this problem. Is there any selection variable inside the variant for dynamic creation of Date?
    Thanks
    Sankar

    As I know there is no setting for this. For any std or Z report variant function with L should act same way...anyway you discuss with your ADABer.
    See the help for variables
    Selection Variables                                                                               
    The following three types of selection variables are currently          
        supported:                                                                               
    o   Table variables from TVARV                                          
            You should use these variables if you want to store static          
            information. TVARV variables are proposed by default.                                                                               
    o   Dynamic date calculations:                                          
            To use these variables, the corresponding selection field must have 
            type 'D' (date). If the system has to convert from type T to type D 
            when you select the selection variables, the VARIABLE NAME field is 
            no longer ready for input. Instead, you can only set values using   
            the input help.                                                     
            The system currently supports the following dynamic date            
            calculations:                                                       
            Today's date                                                        
           From beginning of the month to today                               
           Today's date +/- x days                                            
           First quarter ????                                                 
           Second quarter ????                                                
           Third quarter ????                                                 
           Fourth quarter ????                                                
           Today's date - xxx, today's date + yyy                             
           Previous month                                                                               
    o   User-specific variables                                            
           Prerequisite: The selection field must have been defined in the    
           program using the MEMORY ID pid addition. User-specific values,    
           which can be created either from the selection screen or from the  
           user maintenance transaction, are placed in the corresponding      
           selection fields when the user runs the program.                                                                               
    The SELECTION OPTIONS button is only supported for date variables that 
       fill select-options fields with single values.                         
    i.e means we can do that with D also.

  • Dynamic Positioning of Objects in a Grid (rows and columns) AS3 Tutorial

    The topic of a dynamic positioning of objects in a right grid (rows and columns) comes up often so I decided to post an AS3 solution here:
    http://flashascript.wordpress.com/2010/12/25/arranging-objects-into-2d-dynamic-grid-with-a ctionscript-3/

    Hard to tell from your description but this might help:
    http://dtptools.com/product.asp?id=atid
    Bob

  • Dynamic Positioning of Objects in a Grid (rows and columns) with AS3 Tutorial

    The topic of a dynamic positioning of objects in a right grid (rows and columns) comes up often so I decided to post an AS3 solution here:
    http://flashascript.wordpress.com/2010/12/25/arranging-objects-into-2d-dynamic-grid-with-a ctionscript-3/

    Hard to tell from your description but this might help:
    http://dtptools.com/product.asp?id=atid
    Bob

Maybe you are looking for

  • SPROXY not working in application system

    Hello all, I have been trying to make SPROXY work in my QAS ERP 2004 SPS23 system for a few days now but I can not make it. I have configured SPROXY in the past for my sandbox and DEV system with success but I do not seem to have any luck in QAS. My

  • Final Cut Pro keeps crushing when I open it

    When I run Final Cut Pro it keep crashing and gives me this error message: Process: Final Cut Pro [221] Path: /Applications/Final Cut Pro.app/Contents/MacOS/Final Cut Pro Identifier: com.apple.FinalCut Version: 10.0.9 (231027) Build Info: ProEditor-2

  • HDV print to tape? Help.

    I can't seem to get my HDV sequence to print to tape. I am new to the whole HDV thing so bear with me. I am using a sony HVR-V1U. Sequence Settings: Frame size: 1440x1080 Pixel Aspect Ratio: HD 1440 x 1080 Editing Time Base: 29.97 (can't Change) QT v

  • Opening Wrong Word Program for Attachments

    My wife has a new iMac-intel. We installed office X, but had not started using it. The first email she received had a word document. She opened it and it was opened in Word 2003 which is a trial version. I moved Office 2003 to the trash and now every

  • New template field does not compute

    I added a new template field in Address Book to hold custom data from another data base. When I go to import the new data, the new field does not appear in the import wizard where you assign targets for imported data. The 'stock' names offered in Car