BRF+: No context assigned to DB Lookup

Hello expert,
I am trying to create a BRF+ routing rule but I am facing since hour a problem.
I am refering to http://scn.sap.com/thread/3324445
When trying to create rules I got the message:
No context assigned to DB Lookup 'Z_GET_ROLEID' yet. Query result includes all data objects !
When I click on ROLE_NAME is got following picture and got a warning.
From SDN blog is see that I should look like this:
So what did I wrong, where is the missing link?
Thanks for any support which help me to complete my rule creation.
Regards Nguyen

Hi, problem solved.
create lookup. context overview is empty.
Now add lookup into decision table so the link to context view is done.
Now the context overview is available. Click on close.
Select your element and it works!
Enjoy BRF+ DB_LOOKUP
Best Nguyen

Similar Messages

  • BRF+ Heavy Context stoping Formula expressions to load

    HI Experts,
    I am developing a BRF+ App.(for CRM SS) Where the Complex structure holding the CRM-BT data is passed in the App. Because almost every field in that structure is used in decision making.
    As a result the context of app has become too heavy. Now it works some how when creating rules, but if I try to load FORMULA EXPRESSION. System keeps on loading the context and then breaks after a while with a RABAX State termination.
    Any suggestions to over come this problem will be highly appreciated. Any basis parameter or anything similar to increase memory something along those lines.
    Regards,

    Hi Kashif,
    we also faced this problem in the design time when building up a too large context object (combination of global and local BRF+ context). There are some notes available that improved the behavior (search SAP marketplace as they depend on your release), but at some point in time SAP support told us that the context is simply too big and we should reduce the size of the context e. g. be splitting the rules/functions
    Nevertheless there is one dedicated note for the formula expression, which sounds like your problem:
    2020139 - Opening forumula takes long time - 740 SP3
    If you find no suitable note you should conatct SAP support via OSS to take a look at your problem.
    BR
    Christian

  • Values for Context assignment

    Hello,
    I need some help in developing a webdynpro application. My scenario is as follows:-
    How to assign values entered in inputfields to table rows at runtime? The total number of rows in the table will only be decided at runtime. Could you advise me of how to do this?
    I would greatly appreciate your help.
    Regards,
    Gopal.

    Hi Uday,
    Thanks a lot for your reply. We are supposed to develop the application with as many less clicks as possible . So, giving the Add new row button is not an option for us. So, we are making use of the concept of  "Context Log" and it is working fine.
    I'll try to explain in more detail:-
    I have a custom node in my context, which has 9 different attributes. I have to get these 9 values from the end user. But, 3 of the attributes should be filled in through inputfields and the rest of the 6 attributes should be filled through a table because the end-user should be able to enter multiple line items.
    But, at runtime, when the users clicks the Button to execute the BAPI, the 3 attributes that are entered through inputfields should be assigned to every row of the table that the user is using.  But, the values are getting added only to the first row of the table. Do you get what I am saying?
    Please let me know if you need more clarification. Your help is very much appreciated.
    Regards,
    Gopal.

  • No Owning Context Assigned to the object 200000486

    Hi there,
    We using the Portal as the front end for PLM work. We are Encountering some issues on Create mode (for materials).
    Here is the error.
    Message no. /PLMB/AUTH_OWNACC006
    Diagnosis
    You want to save an object without assigning an owning the context to it.
    Procedure
    If you are a superuser or trusted user, you can decide if you want to save this object without an assignment to a access control context or enter a value for the owning context.
    For non-superuser and non-trusted user, this entry is mandatory. Enter a valid entry for the owning context.
    In the Material BOM, this input field for the owning context is located on the tab header.
    Note, the system display a message that discusses BOM, even though I am on a Material. 
    Any thoughts?
    Thanks In Advance
    Kumar

    Kumar,
    You should have had Ehp4 on your system and the user id from which you are trying to create this object could be a 'NON TRUSTED' user.  Meaning none of the roles for that the user has...is associated with
    the authorization object PLMWUI_TRUSR auth object to it.  Try creating with a TRUSTED user login you might not face this issue.  For all NON TRUSTED users(like external partners) the system will not
    allow to create objects without ACC.
    Hope this helps.
    Sujata.
    Edited by: sujata ramesh on Apr 14, 2010 11:18 PM

  • Lookup value in assignment

    Hello All,
    We are using lookup field value in assignment.
    field1 is lookup field and Lookup table has only one field Name
    Name
      a
       b
       c
    Field2 is lookup field and Lookup table(Cross Ref) has 2 fields Name1 Name2
    Name1          Name2 (Display field)
    a                      1
      b                     2
       c                    3
    What we are trying to do is
    if field1 has value a than Field 2 needs to have value 1
    i am running an assignment
    in Expression window i am putting  "field1.(Record)
    and in table field i am putting Field2. so that depending on field1 value Field2 will be assigned values based on cross ref manitained.
    Is this the right way to do it ? is there any other way around?
    (we want field2 value to be poppulated dynamically based on field1 value. We have cross ref table that is referenced to Field2 as lookup table where we maintain field1 lookup value and corresponding Name2 value of Field2)
    If this is the right design than i am facing one more problem ...
    In Field2 lookup i have following entries
    Name1                Name2
      a                          1
      b                         2
      c                          3
      d                          4
       e                         5
      f                           6
      g                          7
      h                          8
      i                           9
    Now except h and i values i am getting value assigned dynamically if Field2 has values from a to g .but when it comes to h and i i am getting assignment error as Assignment failed.????
    Instead of this can we have middleware like XI to take care of this cross Ref? as based on Field2 we are syndicating records to target system via middleware?

    Hi,
    The following are steps to be followed in the data manager to make Assignment to work.
    1) Create Assignment
    2) By Default Main table gets assigned .
    3) Select table where you want to change.
    4) Go to Assignment Editor
    5) Go to Looks ups and select the Lookup value what you want to assign...
    Hope this will help .
    Thanks
    Ganesh Kotti

  • Assign user to see one context

    Hi Experts,
    I need your help in the follwoing:
    i have two users
    user A
    User B
    And two contexts
    Main context
    sub context
    and two roles
    SSM  --> user A
    PM --> user b
    both roles are identical (all ssm actions added to each role)
    Main Context assigned to both roles (SSM & PM) and sub context is assigned to PM role only.
    I want user B to see only sub context and not main context. how to achieve this
    Taha

    Taha,
    SP0!!!! I hope this is only a demo or test machine or your users will be very unhappy with SSM!
    Before you do anything else, upgrade to the latest release which is SP11 HotFix 2. SP0 is riddled with things that only just about work as it is very early on. It was released mid 2011.
    SSM 10.1 is now up to SP06 so while you thinking about upgrading it would make sense to come right up to date.
    Regards
    Colin

  • How to get both JDNI context and JAAS Subject with EJB

    I looked at the JAAS docs and sample, but I'm still confused about
    something. There is a sample of JAAS in a regular, non-EJB scenario. The
    client initializes the LoginContext, calls login(), then retrieves the
    Subject (and possibly later does something with Subject.doAs()). However, in
    the typical EJB scenario, the client initializes the JNDI context, then does
    the lookup on the bean name (which implicitly does the authentication to the
    container). How do they work together, thought? I.e., what does the client
    code look like if JAAS authentication is to be used from an EJB client?
    Thank you!

    In your login module you have to authenticate the user to the Weblogic Server as
    well . For simplicity, Weblogic comes with a class weblogic.security.auth.Authenticate
    to login a subject with Weblogic Server.
    Once logged in, any thread that is invoked within the context of a Subject.doAs
    call gets that subject associated with it.
    Hope that helps
    "Allan" <dfusdfsdfsd> wrote:
    I looked at the JAAS docs and sample, but I'm still confused about
    something. There is a sample of JAAS in a regular, non-EJB scenario.
    The
    client initializes the LoginContext, calls login(), then retrieves the
    Subject (and possibly later does something with Subject.doAs()). However,
    in
    the typical EJB scenario, the client initializes the JNDI context, then
    does
    the lookup on the bean name (which implicitly does the authentication
    to the
    container). How do they work together, thought? I.e., what does the client
    code look like if JAAS authentication is to be used from an EJB client?
    Thank you!

  • Error in using Lookup Query - OIM 11g

    Hi Guys,
    I am trying to use following lookup query:
    select usr_key, usr_login from USR where usr_status = 'Active' and have following mapping defined in the process form:
    Column Width = 200
    Lookup Column Name = usr_login
    Column Names = usr_key, usr_login
    Column Captions = USER_KEY, USER_LOGIN
    The values are getting populated properly while searching for the lookup. But when I click on 'SELECT' button. It throws error. saying 'A system error occurred'
    I see following error in the log:
    <Jul 4, 2011 7:19:07 PM IST> <Error> <XELLERATE.WEBAPP> <BEA-000000> <Class/Method: tcLookupFieldAction/selectedValue encounter some problems: {1}
    Thor.API.Exceptions.tcColumnNotFoundException
    at Thor.API.tcMetaDataSet.getStringValue(tcMetaDataSet.java:368)
    at com.thortech.xl.webclient.actions.tcLookupFieldAction.selectedValue(tcLookupFieldAction.java:1723)
    ### Steps to Reproduce Problem ###
    1. Create a new process form
    2. For one of the column, assign following properties:
    Lookup Query = select usr_key, usr_login from USR where usr_status = 'Active'
    Column Width = 200
    Lookup Column Name = usr_login
    Column Names = usr_key, usr_login
    Column Captions = USER_KEY, USER_LOGIN
    3. Activate the form
    4. Open the resource in Web Console
    5. Search for that lookup.
    6. Select any of the value
    7. Press 'Select' button. Error is thrown.
    Could somebody please help me out with this issue?
    Thanks,

    Got the solution:
    tcColumnNotFoundException with Lookup Query

  • Problem with Multiple Context Creation

    Hi,
    We are facing a java.lang.SecurityException Invalid Subject
    We need to create multiple Initial Contexts for a single thread.
    Following is the Scenario
    1) The user will access Servlet/Struts Action class which performs database call and EJB(one, two) calls with different Initial Contexts ( Credentials are different)
    2) At the same time the Timer Task runs in back ground which is invoked from servlet load-on-startup and runs for every 1 min.
    3) The Timer Task invoke an MDB this MBD will make an external EJB (three) call for business logic.
    {color:#ff0000}Please Suggest me the Sequence of step I am expecting are correct or not{color}
    1) The Timer Task will run in the same JVM where the Servlet/Action classes are loaded (WEB-CONTAINER)
    2) The Thread created for Servlet/Action class will not be shared by Timer Task.
    3) The Thread created for Timer Task and the MDB are different.
    4) So the Servlet - Thread, Timer Task Thread and MDB Thread are different.
    The Behavior of the Context is as follows according to Bea Document.
    [http://e-docs.bea.com/wls/docs81/jndi/jndi.html#476864]
    JNDI Contexts and Threads
    How to Avoid Potential JNDI Context Problems (Please Refer this Paragraph)
    I am closing the entire Context's immediately after lookup
    Still we are facing this java.lang.SecurityException Invalid Subject Exception Problem
    The Context of EJB which we are calling from MDB is sharing the Servlet/Action Class Context -- Credentials
    Example_
    {color:#ff0000}Servlet/Action Class Context Credentials -- are user1/pass1{color}
    {color:#ff0000}EJB (three) Context Credentials -- are user3/pass3{color}
    When EJB (Three) lookup is invoked it&rsquo;s throwing the following Exception
    *java.lang.SecurityException: [Security: 090398] Invalid Subject: user1*
    Please advise to solve this problem
    Thank You.

    Solved By myself
    There is problem while passing data to internal table for item level

  • Why is the first lookup() relatively slow?

    Hello hello,
    I am doing load testing on an LDAP server right now. The first call to lookup() is an order of magnitude slower that subsequent lookup() calls over the same Context instance. Why?
    I create a few instances of Context using Sun's InitialContext factory. I loop through a few lookup() requests over each of those Contexts. The first lookup takes 800 milliseconds, and all subsequent lookups take less than 20 milliseconds.
    I believe that this has nothing to do with socket operations because I don't start the lookup thread until after its Context has been created. I've also checked the BER buffers sent and received by the LDAP provider, and verified that the security authentication is complete before I start timing the lookup.
    Finally, I've also ensured that server-side caching does not cause subsequent requests to speed up.
    This might have something to do with the operation of the particular LDAP server I'm using, OpenLDAP.
    Has anybody else noticed similar behavior by a Context?

    Im also having a similar problem. It takes about 1.2 seconds to create the InitialDirContext object.
    DirContext ctx = new InitialDirContext(env); //takes about 1.2 sec
    Im using eDirectory (Novell Directory Service). Im using 'simple' authentication and Im suppling the ID and password in the environment variables.
    Did you find out anything?

  • How to add interaction record into busniess context?

    Hi all,
    I have a requirement to include interaction record in business context assignment block for a new business role. The spro settings seems to be okay as i compared with existing business role settings.
    But IR(Interaction Record) is getting added in business context as in existing buz role.
    Plz help me out in this ..
    Thanks,
    Karthik

    Hi Andrei Vishnevsky,
    The Runtime Framework Profile is maintained for the business role as you specified above.
    I can see in debugging that IR is getting created in GET_INTERACTION_RECORD and being inserted into the collection in the class: CL_ICCMP_CUCOIREC_IMPL method : EH_BP_CONFIRMED. But in business context the IR record is missing in the collection.
    Thanks,
    Karthik

  • Can we run an assignment on a qualified table from a main table?

    Can I run an assignment on a qualified table from a main table.
    For example: My main table Vendor and Qualified  Table is Company Qualified .
    Company Qualified - VendorNr (Non- Qualifier),Company(Qualifier,lookupFlat - Company)
    Company  - Name,Description (It has valid values in it already).
    How to add a default value into the Company Qualified table.
    When i add a assignment like
    If(is_null(Company Qualified [Record],default lookup value from Company)  ...it says invalid.
    Any help greatly appreciated  thanks

    This is not possible currently in MDM.  I've tried many times to find a good way to do this and so far have been unsuccessful.  I also have tried to have a workflow on the main table call an assignment in a lookup / qualified table, and that doesn't work either.  The biggest reason is because you have to select a table field when you create an assignment, and it doesn't give you the option to choose fields within a table.
    Hopefully they will address this in a future release.
    Edited by: Harrison Holland on Jun 3, 2008 2:33 PM

  • Make files downloadable from outside tomcat(web) context

    Hi there,
    I made an application on whicht people can upload word/pdf files.
    I put them in a dir called /opt/customer/2342/ , where 2342 is the customer id.
    The files are stored there, because I don't want people to be able to just download the files by using http://www.blahblah.com/customer/2342
    Now I want to create a servlet or jsp file that is able to make the files downloadable for specific users.
    Of course I can find the files using java.util.File. But I don't have a clue how to make them downloadable from this path. Should it be something with a FileStream... ?? And adding the mime-type?
    Can anybody give me some hints on making files downloadable from a specific dir?
    Thanks in advance.
    Jeroen van Hertum

    here is a servlet that is used to load files that are stored on the file system. The user submits the file path releative to a know file path.
    package common.servlet;
    import java.io.*;
    import java.net.*;
    import javax.naming.*;
    import javax.servlet.*;
    import javax.servlet.http.*;
    import org.apache.log4j.Logger;
    public class FileResourceServlet extends HttpServlet
        // -------- Static fields ----------------------------------------------
        // Logger
        private static Logger logger = Logger.getLogger(FileResourceServlet.class.getName());
         * Root context for all JNDI lookups
        private static final String ROOT_CONTEXT = "java:comp/env";
         * JNDI lookup name of the binary path value
        private static final String BINARY_PATH_KEY = "binaryPath";
         * Default in case looking it up from the environment fails
        private static final String DEFAULT_FILE_RESOURCE_PATH = "/home/cp/bin";
        // -------- Fields -----------------------------------------------------
        private String fileResourcePath = null;
        // -------- Methods ----------------------------------------------------
         * Initializes the servlet.
        public void init(ServletConfig config) throws ServletException
            super.init(config);
            try
                //Get Norm's info
                Context initCtx = new InitialContext();
                Context envCtx = (Context)initCtx.lookup(ROOT_CONTEXT);
                fileResourcePath = (String)envCtx.lookup(BINARY_PATH_KEY);         
            catch( Exception e )
                logger.error("Error looking up file resource path, going with " +
                             "default value - " + DEFAULT_FILE_RESOURCE_PATH, e);
                this.fileResourcePath = DEFAULT_FILE_RESOURCE_PATH;
            logger.debug("File Resource Path:" + fileResourcePath );
         * Destroys the servlet.
        public void destroy()
         * Processes requests for both HTTP <code>GET</code> and <code>POST</code> methods.
         * @param request servlet request
         * @param response servlet response
        protected void processRequest(HttpServletRequest request,
                                      HttpServletResponse resp)
                                      throws ServletException, IOException
            ServletContext sc = getServletContext();
            String pathInfo = request.getPathInfo();
            logger.debug("Path Info: " + pathInfo);
            if (pathInfo!=null && !pathInfo.startsWith("/")) pathInfo = "/" + pathInfo;
            String filename = fileResourcePath + pathInfo;       
            logger.debug("Binary Filename:" + filename );
            // Get the MIME type of the image
            String mimeType = sc.getMimeType(filename);
            if (mimeType == null)
                //sc.log("Could not get MIME type of " + filename);
                logger.warn("Could not get MIME type of " + filename);
                resp.setStatus(HttpServletResponse.SC_INTERNAL_SERVER_ERROR);
                return;
            // Set content type
            resp.setContentType(mimeType);
            // Set content size
            File file = new File(filename);
            resp.setContentLength((int)file.length());
            // Open the file and output streams
            FileInputStream in = new FileInputStream(file);
            OutputStream out = resp.getOutputStream();
            // Copy the contents of the file to the output stream
            byte[] buf = new byte[2048];
            int count = 0;
            while ((count = in.read(buf)) >= 0)
                out.write(buf, 0, count);
            in.close();
            out.close();
         * Handles the HTTP <code>GET</code> method.
         * @param request servlet request
         * @param response servlet response
        protected void doGet(HttpServletRequest request,
                             HttpServletResponse response)
                             throws ServletException, IOException
            processRequest(request, response);
         * Handles the HTTP <code>POST</code> method.
         * @param request servlet request
         * @param response servlet response
        protected void doPost(HttpServletRequest request,
                              HttpServletResponse response)
                              throws ServletException, IOException
            processRequest(request, response);
         * Returns a short description of the servlet.
        public String getServletInfo()
            return "Short description";
    }

  • Ejb lookups fail from threads spawned from servlet

    Hello,
    We have a servlet from which we are spawning a thread. In the thread we are
    trying to do a JNDI lookup for the database resource / EJBs. It does not
    work as if it is not able to find the context t do the lookup.
    I thought that the threads are spawned in the same JVM and context, so why
    does the lookup not work.
    Please need to figure out a solution to this problem, we need to call some
    business logic in the EJBS from the thread and we do not want to do RMI-IIOP
    lookups becuase they could be slower.
    Appreciate your help in advance.
    Regards,
    Sakib

    Custom threading is not supported. I think a workaround was posted on
    this alias (search for custom threading), where you can call the
    proprietary API's of the container to recreate the context, but I'm
    pretty sure that it's not a supported or recommended solution.
    The better (and more scalable) solution is to avoid spawning your own
    threads.
    David
    Sakib Mehasanewala wrote:
    Hello,
    We have a servlet from which we are spawning a thread. In the thread we are
    trying to do a JNDI lookup for the database resource / EJBs. It does not
    work as if it is not able to find the context t do the lookup.
    I thought that the threads are spawned in the same JVM and context, so why
    does the lookup not work.
    Please need to figure out a solution to this problem, we need to call some
    business logic in the EJBS from the thread and we do not want to do RMI-IIOP
    lookups becuase they could be slower.
    Appreciate your help in advance.
    Regards,
    Sakib

  • Could someone explain how node 'lookup' works ?

    Or more specifically the difference between pre 1.2 and 1.2 ? And now correct usage..
    My application was quite happily using lookups.
    - Assigning an id, including the nodes in the scene content at creation time. Looking them up, getting the address and then manipulating them
    After the 1.2 upgrade they do not work at all (no changes) i.e. a null address after lookup
    I did discover, however, that now in 1.2 if I created a new 'dynamic/on the fly' node with an id and then inserted it into the scene content later - hey presto it could be found.
    So - what happened ?
    And what is the correct procedure ?
    Anyone else have this problem and can anyone help explain why this occurred ?
    And technically (flow wise ?) how this (the id assignment, scene injection, lookup) works in FX ?
    It appears to me that pre-created (or static[?]) approach is now broken and that only new post node (dynamic[?]) creation id and lookup works.
    Cheers
    ScottyB

    Hi PhiLho,
    Thanks for your patience and help.
    I think it must be to do with CustomNodes as content then. Also content within content which does not mentioned directly in the mainScene.
    I stripped down my application into some bare example - its not fancy as its hacked to death - but maybe it might explain what I am 'assuming' wrongly.
    As I said before this was working in 1.1.
    I probably have done something blazingly obviously wrong - but an explanition of why and how to do this correctly would be great.
    When the button is hit: the print out is as follows
    ****LEFT PANEL****
    mainSceneId: MainScene [id=mainSceneId]
    LeftPanel: null
    Left Movie01: null
    backgroundRectangle: null
    mainSceneId: MainScene [id=mainSceneId]
    LeftPanel: null
    ****RIGHT PANEL****
    mainSceneId: MainScene [id=mainSceneId]
    RightPanel: MovieButtonPanel [id=rightPanelId]
    Right Movie01: null
    mainSceneId: MainScene [id=mainSceneId]
    RightPanel: nullCode follows:
    Main.fx
    package testbed.test03;
    import javafx.scene.Scene;
    import javafx.stage.Stage;
    var mainScene = MainScene {
        id: "mainSceneId"
    public def myStage = Stage {
        title: "DynaButtons"
        width: 400
        height: 400
        scene: Scene {
            content: [mainScene]
    function run(): Void {
    }MainScene.fx
    package testbed.test03;
    import javafx.scene.CustomNode;
    import javafx.scene.Group;
    import javafx.scene.Node;
    import javafx.scene.shape.Rectangle;
    import javafx.scene.paint.Color;
    import javafx.scene.control.Button;
    public class MainScene extends CustomNode {
        var leftPanel = MovieButtonPanel {
            id: "leftPanelId"
        var rightPanel = MovieButtonPanel {
            id: "rightPanelId"
            translateX: 210
        def button =   Button {
                translateX: 100
                translateY: 300
                text: "Press Me"
                action: function() {
                    println("****LEFT PANEL****");
                    // lookup mainSceneId
                    var myNode:Node = Main.myStage.scene.lookup("mainSceneId");
                    println("mainSceneId: {myNode}");
                    // lookup Left Panel
                    myNode = Main.myStage.scene.lookup("leftPanelId");
                    println("LeftPanel: {myNode}");
                    // lookup Movie01 Button
                    myNode = Main.myStage.scene.lookup("Movie01");
                    println("Left Movie01: {myNode}");
                    // lookup background Rectangle
                    myNode = Main.myStage.scene.lookup("backgroundRectangle");
                    println("backgroundRectangle: {myNode}");
                    // lookup mainSceneId
                    myNode  = Main.myStage.scene.lookup("mainSceneId");
                    println("mainSceneId: {myNode}");
                    // lookup Left Panel from inside mainSceneID contents
                    var myInternalNode:Node = myNode.lookup("leftPanelId");
                    println("LeftPanel: {myInternalNode}");
                    println("****RIGHT PANEL****");
                    insert rightPanel into Main.myStage.scene.content;
                    // lookup mainSceneId
                    myNode = Main.myStage.scene.lookup("mainSceneId");
                    println("mainSceneId: {myNode}");
                    // lookup Left Panel
                    myNode = Main.myStage.scene.lookup("rightPanelId");
                    println("RightPanel: {myNode}");
                    // lookup Button
                    myNode = Main.myStage.scene.lookup("Movie01");
                    println("Right Movie01: {myNode}");
                    // lookup mainSceneId
                    myNode  = Main.myStage.scene.lookup("mainSceneId");
                    println("mainSceneId: {myNode}");
                    // lookup Left Panel from inside mainSceneID contents
                    myInternalNode = myNode.lookup("RightPanelId");
                    println("RightPanel: {myInternalNode}");
        override public function create() : Node {
            return Group {
                content: [
                    Rectangle {
                        id: "backgroundRectangle"
                        width: 400
                        height: 400
                        fill:Color.WHITE
                    leftPanel,button
    }MovieButtonPanel.fx
    package testbed.test03;
    import javafx.scene.CustomNode;
    import javafx.scene.Group;
    import javafx.scene.Node;
    import javafx.scene.layout.VBox;
    import javafx.scene.shape.Rectangle;
    import javafx.scene.paint.Color;
    public class MovieButtonPanel extends CustomNode {
        var movies: String[] = ["Movie01","Movie02","Movie03","Movie04","Movie05"];
        def rect = Rectangle {
                width: 200, height: 300
                fill: Color.GRAY
        def movieButtons:MovieButton[] = bind for( movie in movies){
            MovieButton {
                id: movie
                movie: movie
                translateX: 20
        var listView = VBox {
            spacing: 10
            content: bind movieButtons
        override function create() : Node {
             Group {
                content: [rect,listView]
    }MovieButton.fx
    package testbed.test03;
    import javafx.scene.CustomNode;
    import javafx.scene.Group;
    import javafx.scene.Node;
    import javafx.scene.paint.Color;
    import javafx.scene.shape.Rectangle;
    import javafx.scene.text.Text;
    import javafx.scene.text.TextOrigin;
    import javafx.scene.text.Font;
    public class MovieButton extends CustomNode {
        public-init var movie: String;
        def theText = Text {
                font : Font {
                    size: 12
           textOrigin: TextOrigin.TOP
            fill: Color.WHITE
            content: bind movie
        def theRect:Rectangle = Rectangle {
            fill: Color.BLACK
            width: 80
            height: 20
        override public function create() : Node {
            var buttonGroup = Group {
                content: [
                    theRect,
                    theText
            return buttonGroup;
    }

Maybe you are looking for

  • Re-installing after macbook rebuild serial number not working

    My macbook had to be rebuilt due to a software problem. Lightroom 5 has been deleted. I tried re-installing lightroom (downloaded) and can use the trial version etc. However, when I tried to put my serial number in, it did not work. This is probably

  • My Itunes is in french please HELP!

    I live and work in France, and my credit card is linked to my french address. Unfortunately this means my itunes displays itself in French and i cant find anyway of changing it. Is there anything I can do?

  • CCMS Adapter Engine monitoring

    Hi, CCMS has been configured in our land scape long back. this configuration gets data from adapter engine and display it. We need to modify this. When we checked the configuration all Integration engine errors are being gathered using standard MTE c

  • Report problem when called from menu

    Hi Im calling a report from the menu item. in the items pl/sql i have the following code DECLARE Report_Id REPORT_OBJECT; Report_Job_Id VARCHAR2(20); Report_Status VARCHAR2(80); Report_Svr VARCHAR2(20); BEGIN Report_Svr := 'testserver'; Report_Id :=

  • Shutdown

    hi all, now some employees working for create forms & this employees  he shutdown pc & don't save any data we can retrive this data or no thanks for any help, hamad