Fundamentals: Custom Nodes vs Methods and Controller in MVC

I have a couple quick questions that I'd consider somewhat fundamental that I should have a better grasp this far along in development...
- First of all, what do you guys/gals consider the best way to structure your JavaFX classes. I almost always create custom nodes (XCustomNodes usually... from JFXtras) representing certain "panels" filled with content (buttons, labels, text, etc). I realize you could also create a separate class/method to simply return HBoxes, VBoxes, Groups, etc. So... thoughts?
- Second, I see all these articles/posts saying ghat JavaFX is a perfect MVC language. I agree for the most part, but what would you consider the Controller? Aren't the View and Controller pretty well married together in JFX? Separating the Controller into its own entity seems like it'd be more work than help.
Just trying to extend my knowledge reach... Thanks in advance!

evnafets
Thank you!!!
While I do not understand how to do this:(though I understand principle of it... the misunderstanding is the whole problem)
To make this example work all in one file, you have to make RemindTask2 an
inner class of Reminder (which is already an inner class)
I do not always understand packages....and doing what you suggested, in forming the packages, and sorting the classes, will help me understand the structure better...plus get me in the norm of always creating packages !
So what I'm going to do right now is go tear my code down into various packages
and source files.....however...if you or anyone else could explain/show example
of how to do what you said(for inner classes, not packages...understand packages) , it would be appreciated.
This fundamental inner class creation is obviously a major bump right now...and creating the packages and linking the classes will be easy, because I understand how to do it when I already have functional classes created.
I do not always understand class/method creation/implementation..such as here.
(IE: can create network apps/gui apps of simple nature....but this easy ol' thing has been driving me nuts.)
Creating those classes however,,,,even if not the most efficient way is something
needed for my basic Java knowledge.
Thank you,,,,VERY GOOD project/training is going to come from this !!
Really, thank you in any case...if you do not have the time(100% understand) please lmk, will just give you your duke award.
AEWSOME

Similar Messages

  • Displaying custom node group sequences (and their creation)

    Hi,
    firstly my usual disclaimer :) I am a newbie at JavaFX and only jump back in when I have a little time here and there.
    What I'm trying to achieve, is to create an Object call MyItem which is essentially a Group with a rectangle, image and text. I want to be able to create multiple of these MyItem's and add them to a sequence (list, array).
    Then do a foreach item MyItems --> insert into myGroup.content[];
    But it keeps saying that either a Node or a Sequence is not what it's looking for...
    See below which should be able to describe the problem better than my confusing explanation above:
    Main.fx
    package exampleitems;
    import javafx.stage.Stage;
    import javafx.scene.Scene;
    import javafx.scene.paint.LinearGradient;
    import javafx.scene.paint.Stop;
    import javafx.scene.paint.Color;
    import javafx.scene.Node;
    public var stg = Stage {
                title: "TestApp"
                scene: Scene {
                   fill: LinearGradient {
                      startX: 0.0
                      startY: 0.0
                      endX: 0.0
                      endY: 1.0
                      stops: [
                         Stop {
                            color: Color.web("#0c8ec4") //Color.BLACK
                            offset: 0.0
                         Stop {
                            color: Color.web("#0a1945") //Color.GRAY
                            offset: 1.0
                   width: 800
                   height: 600
                   content: []
                resizable: false
    var man=Manager{};
    public function insertThem(){
       var myItemsHere = man.getItems();
       for(node in myItemsHere){
          insert node as Node into Main.stg.scene.content;
    function run(){
       stg;
       insertThem();
    }Manager.fx
    package exampleitems;
    public class Manager {
       var itemsListHolderAA=AAItems{};
       package function getItems(){
          return itemsListHolderAA.getItems();
    }AAItems.fx
    package exampleitems;
    public class AAItems {
       var icon="{__DIR__}images/AA.png";
       package function getItems() {
          var i = 1;
          var myItems=[];
          //while(i < 10){
             insert Items{xPos: 20*i, yPos: 20*i, iconItem: icon} into myItems;
             //i++;
          return myItems;
    }Items.fx
    package exampleitems;
    import javafx.scene.shape.Rectangle;
    import javafx.scene.paint.Color;
    import javafx.scene.CustomNode;
    import javafx.scene.Node;
    import javafx.scene.image.ImageView;
    import javafx.scene.image.Image;
    import javafx.scene.text.Text;
    import javafx.scene.text.Font;
    public class Items extends CustomNode{
       public var xPos: Integer;
       public var yPos: Integer;
       public var iconItem: String;
       override protected function create () : Node {
          Rectangle {
             width: (750), height: (470/20)
             fill: Color.TRANSPARENT
             stroke: Color.web("#0c8ec4") //Color.TEAL
             strokeWidth: 1.0
             arcWidth: 20
             arcHeight: 20
             smooth: true
          ImageView {
             translateX: 2, translateY: 1
             image: Image {
                url: iconItem
             fitWidth: (470/20)
             fitHeight: (470/20)
          Text {
             translateX: ((470/20)+5)
             translateY: ((470/20)*0.666)
             font : Font {
                size: 10
             content: "Hello!"
    }As you can see, my main problem seems to be that the last Node in Items.fx gets displayed, and not all three (try commenting out Text node and image appears etc...)
    So, either I get the Items.fx to return as a Group (?), but then I get the error that it expects a sequence etc.
    So how can I get the myItems[] in AAItems.fx to fill up with a "group" of nodes and then be able to iterate through them on the Main.fx ?
    I hope that's clear? :/
    What I want is a list of Items(.fx) created in AAItems(.fx) and be able to then display (iterate through) them in Main(.fx).
    I'm sure it's a concept flaw on my part on how to implement it. Any help appreciated.

    Oops. I guess not "exactly" what I wanted:
    The Stack container arranges its managed content nodes in a back-to-front Stack. The z-order of the content is defined by the order of the content sequence with content[0] being the bottom and content[sizeof content-1] being the top...
    D'Oh! Just replacing Stack with Group does the job... man... I need a holiday!!! :D

  • Read a View Context's node's element and assign from Component controller

    Hello Experts,
    I'm new to JAVA WD.
    Here is my scenario.
    I have to use an Adobe form in a WDJ. The input parameters and the output parameters of the DC are defined in a method in the Interface Controller method.
    The context of the Component Controller has the following structure
    Context
    ---StartDate
    ---EndDate
    ---AbsenceType
    Then the mapping between the Component controller and the interface controller is done so that the Interface controller also has the context structure as
    Context
    ---StartDate
    ---EndDate
    ---AbsenceType
    So now the interface controller and the component controller are bounded correctly.
    Now I bind the view also with the Component controller as below.
    Context
    ---StartDate
    ---EndDate
    ---AbsenceType
    But since i need to use an Adobe interactive form inside this view, the datasource for the form cannot be the root context node but some other node. So I replicated the same structure in the view context so as to make the fields visible in the Adobe form context. Now the context looks as below.
    Context
    ---StartDate
    ---EndDate
    ---AbsenceType
    ---DATA_NODE
    -----StartDate
    -----EndDate
    -----AbsenceType
    Now my question is, how do i map the result from the Adobe form into the context of the view??
    What code should i write and where should i write to achieve this?
    I need to do the following. But dont know how to write the code for this.
    Context.StartDate = Context.DATA_NODE.StartDate
    Context.EndDate = Context.DATA_NODE.StartDate
    Context.AbsenceType= Context.DATA_NODE.AbsenceType
    Please help!
    Any help will be greatly appreciated.
    Thanks,
    Sam

    Hello Nikhil,
    I'm stuck with another small issue.
    Let me first explain what I'm trying to do.
    I have a view with the context structure as follows
    Context
    ---DATA_NODE (Node)
    ----Data1
    ----Data2
    ---Data1
    ---Data2
    All i need to do is, at the start of the view, i need to move the data from
    Context.Data1=>Context.DATA_NODE.Data1 and
    Context.Data2=>Context.DATA_NODE.Data2
    Also, at the View Submit button click, I need to move the data from
    Context.DATA_NODE.Data1 => Context.Data1 and
    Context.DATA_NODE.Data2 => Context.Data2
    (I managed to do this submit button click by calling an action->method and wrote the code as you gave earlier)
    wdContext.currentContextElement().setData1(wdContext.currentData_NodeElement().getData1());
    wdContext.currentContextElement().setData2(wdContext.currentData_NodeElement().getData2());
    But I wrote at wdInit() for the view the code in the reverse way, but the values are not getting passed to the Data_Node and hence its not defaulting with the values from the elements of the context.
    This is what I wrote.
    wdContext.currentData_NodeElement().setData1(wdContext.currentContextElement().getData1());
    wdContext.currentData_NodeElement().setData2(wdContext.currentContextElement().getData2());
    Please let me know if I'm doing something wrong here.
    Appreciate your help in advance!
    Cheers,
    Sam

  • How to create the custom method and make it available to clients:

    Hello, Can any one help me with this problem ASAP??
    I am trying to work on an example of "Customizing the Query and Creating an Associated Custom Method"
    from http://helponline.oracle.com/jdeveloper/help/topics/jdeveloper/developing_mvc_applications/adf_pviewcustommethod.html?tp=true#method. To do that, the first task is to create the custom method and make it available to clients.
    Following instructions in the helponline documentation, I completed the three steps: (1) "Specify a custom query for the View Object definition for EmployeesView", (2) "Add the custom method to the application module Java class", and (3) "Make the method available to clients".
    The following is the error message I got to test the application module. Can anyone tell me what the message really means and what I should do. I am wondering if there is any mistakes in the document.
    (oracle.jbo.SQLStmtException) JBO-27122: SQL error during statement preparation. Statement: SELECT Employees.EMPLOYEE_ID, Employees.FIRST_NAME, Employees.LAST_NAME, Employees.EMAIL, Employees.PHONE_NUMBER, Employees.HIRE_DATE, Employees.JOB_ID, Employees.SALARY, Employees.COMMISSION_PCT, Employees.MANAGER_ID, Employees.DEPARTMENT_ID FROM EMPLOYEES Employees WHERE Employees.SALARY > :1 and Employees.DEPARTMENT_ID = :2
    ----- LEVEL 1: DETAIL 0 -----
    (java.sql.SQLException) ORA-01008: not all variables bound

    You need to set values for the parameters in your query before you try to execute the query in the view object.
    So you need to call the setBindVars method before the query.

  • Adding custom nodes in SAP reference IMG and accessing them using SM30

    I was able to successfully add an IMG node and few activities under the node (for our custom configuration table data entry) in SAP reference IMG. (using transaction SIMGH).
    However, when I execute transaction SM30, enter the name of the custom table and hit the button customizing, it does not take me to the appropriate node in IMG. It simply doesn't do anything.
    For any SAP table or view, this works like a charm (wherever SAP has configured the nodes). But when we create custom nodes for custom tables, it does not work.
    What steps am I missing?
    I will really appreciate any help you can provide.
    Jitendra Mehta

    Hi Sree:
    I assume you have either created your view maintenance for Z tables or you have created transaction attaching calling SM30 for view maintenance of your Z table.
    You may go in transaction SIMGH and in SAP reference IMG, create a main node (wherever your end client wants you to put it) and under this node, you can create sub-node for each view maintenance with a suitable description of sub-node.
    Once you save and activate, you are done.
    Then you can execute transaction SPRO and you should see your custom nodes wherever you attached them in the tree.
    I hope I understood your problem and have answered it.
    If not, please let me know and we can discuss it further.
    Thanks.
    Jitendra Mehta

  • There is no node text 'CONTACTPERSON' in controller '

    Hi Experts ,
    I am getting dump "There is no node text 'CONTACTPERSON' in controller '' when I am clicking on one of the field in WebUi.
    I tried to debug but debugger in not reaching till GEP_P method of that filed.
    While debugging I found debugger is going at method DO_CONTEXT_NODE_BINDING of  class CL_BSP_WD_CONTROLLER line no 39.
    And I checked in Quality system same dump is coming but while performing different task.
    I checked SPRO setting for Global custom controller for DEFAULT_IC , all setting are same in all system.
    I am not getting the root cause of the problem , Please help me get the solution.
    Thanks & regards,
    Akhilesh Bhagat.

    Hi Shobhit,
    Main Compnent : BT125H_TASK
    View                   : BT125H_TASK/TaskDetails
    In this view I have one field called account which is linkable after clinking on this a view BP_ADDR/StandardAddress of BP_ADDR will call , but after clinking I am getting dump:
    "There is no node text 'CONTACTPERSON' in controller ''
    Thanks & Regards,
    Akhilesh Bhagat.

  • How to "repaint" a custom node

    Hi everybody.
    I have working with JavaFX for a short time and a problem has come up... I'm developing an application where I dragg and drop elements from one half of the Scene to the other. Each half is represented by a Custom node that shows some thumbnails. When I dragg an element from one side to the other, I managed to insert that element in the sequence belonging to the destiny (Custom node) side.
    What I want is making this change of position visible, Each side of the Scene has a lot of thumbnails and I use a scroll to browse all the elements. When I transfer a thumbnail from one side of the Scene to the other is still the origin custom node scroll which moves the just transferred thumbnail altought it should be managed by the destiny custom node scroll...
    What I would need is a kind of "repaint" method, like the Swing's one...
    Thank's in advanced. Regards.

    Hi Nachy,
      Thanks for your replay,
    Regards,
    Anumaala Kumar

  • Custom node not appearing in hbox

    I can insert this custom node into an hbox (I scanned the hbox and verified their existence), but the contents of the frame from the fxz file do not show up.
    My objective:
    -I have a series of fxz files (frames) that I wish to put into an hbox
    -Each frame, when clicked on, will animate, when off screen, the animation will be toggled off (i.e. myCustomNode.action.play();)
    -If I simply insert the contents of an fxz file (which I can) I don't see a universal way to turn animations on/off as I don't want frames eating up cpu cycles if they are off the viewing area
    Custom node is as follows:
    public class frameNode extends CustomNode{
        public var frameNumber;
        public var fxdContent;
        public var actualFrame;
        public var action;
        ///Get image content from fxz file
        public function configureFrame() : Void{
            fxdContent = FXDLoader.loadContent("{__DIR__}testFrame{frameNumber}.fxz");
            actualFrame = fxdContent.getRoot();
            action = fxdContent.getObject("move") as Timeline;
        override function create(): Node {
            def frameNodeGroup : Group = Group {
                content: [ actualFrame  //content from frame ]
            return frameNodeGroup;
    }Using the custom node class I've defined, I can't seem to insert the node itself but only the node's pubic variable 'actualFrame'
            var newFrame : frameNode = frameNode{
                frameNumber: frameNumber
            newFrame.configureFrame(); //fetches the content of the fxz file and assigns it to variable 'actualFrame'
            insert newFrame.actualFrame into myHbox.content; //works
            //insert newFrame into myHbox.content;  //this will NOT workEdit:
    -It turns out that invoking the .configureFrame() method as how I did above was the problem. Instead, I invoked it within the node class itself. As soon as the custom node receives a frame number (i.e. which file to point to) it fetches the FXZ content.

    Hi Ada,
    Please find below a very useful blog on configuring & working with SUS user defined fields.
    Ordering Unit vs Order Pricing Unit in SRM-SUS
    Hope this should solve your problem.
    Regards
    Kathirvel

  • BC4JToystore - View and Controller layer problem

    I am trying to create a web application based on the BC4JToystore design (MVC) where it seperates each layer into different project.
    Here is the problem.
    1. when i create a new Struts base JSP (JSP + Action Class) from the wizard on the controller prject/layer, JDev would automactically add the ApplicationResource.properties, define the /transaction, /navigate etc. to my struts-config.xml, add the ###_jpr_War.deploy. Of course, the Action.java + jsp files. So wat i did was, I manually remove the jsp files and add it to the view layer/project. Are there any better way of defining new struts action class/jsp. and how?
    2. I understand i would need to deploy my class files to the webroot/WEB-INF. I hav studied BC4Jtoystore where the .deploy profile is defined in the Deployment project. I couldn't quite get it right. I wonder how the developers deploy files from other projects (controller) into JAR files. I notice in the project settings where it onli includes the custom lib of toystores and when u preview the .deploy, they hav got all the class files from the controller project/layer. How u guys do that?
    As i couldn't get the Deploymnet project's .deploy profile work, so i define a .deploy profile in the controller layer/project itself. Here is the problem. It took me like 2 minutes to deploy just 1 file. Later i found out in the preview, it has heaps of classes in the archieve content where it includes the libraries i defined in project settings. Is is neccessary as I think these classes already exist in the library. how do i get rid of it if it is not?
    Thanz
    Tan Steven

    It depends on where you call the method. If you call it directly from the task flow you can right click on the method, select 'edit binding' and you get a dialog where you see the method binding. In the lower part you see the input parameters for your methos. There you set the parameter to '#{securityCcontext.UserName}'.
    If you call the method from inside a bean via an operation binding you use code like
            OperationBinding binding = bindingContainer.getOperationBinding("doSomething");
            binding.getParamsMap().put("param1", "hello");
            binding.execute();Don't forget to check for errors after calling hte method.
    Timo

  • How to set up SSO between e-portal employee node & ebill customer node?

    We have a requirement to set up SSO between e-portal employee node & ebill customer node.
    I am told that sso is possible only between 2 employee nodes.
    Please advise.

    Not sure I understand which part is failing.
    Is it the C program calling your packaged function? Or does the error occur in the PL/SQL code, in which case you should be able to pinpoint where it's wrong?
    A few comments :
    1) Using DOM to build XML out of relational data? What for? Use SQL/XML functions.
    2) Giving sample data is usually great, but it's not useful here since we can't run your code. We're missing the base tables.
    3) This is wrong :
    vStrSqlQuery := 'SELECT * FROM ' || vTblName                     || ' WHERE record_update_tms <= TO_DATE(''' || TO_CHAR(vLastPubTms, 'MM/DD/YYYY HH24:MI:SS') || ''', ''MM/DD/YYYY HH24:MI:SS'') ' ;
    A bind variable should be used here for the date.
    4) This is wrong :
    elmt_value := xmldom.createTextNode (doc, l_clob(1));
    createTextNode does not support CLOB so it will fail as soon as the CLOB you're trying to pass exceeds 32k.
    Maybe that's the problem you're referring to?
    5) This is most wrong :
         l_clob(1):=REPLACE(l_clob(1),'&lt;?xml version=&quot;1.0&quot;?&gt;', NULL); 
         l_clob(1):=REPLACE(l_clob(1),'&lt;', '<'); 
         l_clob(1):=REPLACE(l_clob(1),'&gt;', '>'); 
    I understand what you're trying to do but it's not the correct way.
    You're trying to convert a text() node representing XML in escaped form back to XML content.
    The problem is that there are other things to take care of besides just '&lt;' and '&gt;'.
    If you want to insert an XML node into an existing document, treat that as an XML node, not as a string.
    Anyway,
    Anyone that can help me to find out the required magic number
    That would be a bad idea. Fix what needs to be fixed.
    And please clearly state which part is failing : the C program or the PL/SQL code?
    I'd vote for PL/SQL, as pointed out in [4].

  • Custom Data Processing Extension and Parameters

    Hello,
    I have successfully implemented a custom data processing extension. Now I'm trying to add parameters, but the documentation is very weak on this topic. Also all examples of custam data processing extensions I have found so far are working without parameter support. Using a search engine I have found a custom data processing extension's sequence diagram during report execution. The related article also gives some hints about the IDbCommandAnalysis interface.
    The GetParameters implementation creates a parameter collection based on the current command text and returns this collection. So far no problem.
    My question is how to implement the IDbCommand's CreateParameter method and Parameters property? In CreateParameter I just return a new instance of my IDataParameter implementation, and the Parameters property returns a new parameter collection based on the current command text.
    Is this ok so? At least this is the first implementation which seems to work in the data designer. If I share an instance variable for GetParameters and Parameters I will either get all parameters twice or BIDS will crash when pressing the execute button in the dataset designer - depending on my actual implementation.
    What I'm still missing is how to get the parameters added automaticall to the dataset's properties parameter register?
    thanx in advance and kind regards, Gerald

    I think that finally (after some days of trying) I could make it work. The dataset and report parameters are reflecting the command text's parameters now (BTW: to answer my last question - the dataset's properties are updated after pressing the refresh button only). The road to success was not to use the same member variable for the collections returned by IDbCommandAnalysis:GetParameters() and IDbCommand:Parameter and not to fill the latter one with the command text's parameters (see partial source code below).
    public sealed class MyCommand : IDbCommand, IDbCommandAnalysis  
        private string m_commandText;  
        private MyParameterCollection m_parameters = new MyParameterCollection();  
        public string CommandText  
            get { return this.m_commandText; }  
            set { SetCommandText(value); }  
        public IDataParameterCollection Parameters  
            get { return m_parameters; }  
        public IDataParameter CreateParameter()  
            return new MyParameter();  
        public IDataParameterCollection GetParameters()  
            return GetParameterCollection();  
        private void SetCommandText(string commandText)  
            m_commandText = commandText;  
        private MyParameterCollection GetParameterCollection()  
            // ... create parameter collection based on m_commandText  
    Still there are some open questions:
    How can I update the report parameter's properties? Now the parameter's data type is always string, but I'd like to assign the right data type. I'd also like to tag the parameters as hidden and supply a non-queried default value. Is this possible? How?
    Although I my implementation of IDbCommandAnalysis:GetParameters() returns a collection containing the parameter names and values the "prompt query parameters" dialog (after pressing the query designer's execute button in the toolbar) shows a "<blank>" value for the parameters. What could be the problem?
    Thanx in advance and regards,
    Gerald

  • Communication between Lab view and Controller via USB

    USB communication between C8051F320 and Lab View. I try doing methods given in the NI site(http://zone.ni.com/devzone/cda/tut/p/id/4478) and atlast, it gives me error −1073807302 so if any one can answer my question please do post me the details concerned to it.

    My devices show up as NI-VISA USB but I'm not sure if that makes a difference and I'm not using USB RAW either. One thing that you can run is a VISA Property node like below and see what it reports. Also, what version of VISA are you using? If you are not using 4.0, you can download it from http://digital.ni.com/softlib.nsf/webcategories/85256410006C055586256BBB002C0E91?opendocument&node=1....
    Message Edited by Dennis Knutson on 01-31-2007 07:29 AM
    Attachments:
    USB RAW Property.PNG ‏3 KB

  • Creating a custom dictionary for Acrobat and Reader.

    I want to create a custom dictionary to be used by all of our users when they access a “forms document” through Adobe Reader/Acrobat.
    Here are some of the issues:
    The default dictionary name under Custom Dictionaries has a .clam extension.
    Is there a way to edit this?
    Does it contain the index settings for all the other added.txt and excluded.txt dictionary files?
    The Reader's default location is under a user’s LocalLow folder.
    C:\Users\PIN\ AppData\LocalLow\Adobe\Linguistics\Dictionaries\Adobe Custom Dictionary.
    The Acrobat default location is under the user's Roaming folder.
    C:\Users\PIN\ AppData\Roaming\Adobe\Linguistics\Dictionaries\Adobe Custom Dictionary\.
    This is buried under the users profile and we need to be able to update these files on all the user’s workstations prior to log on.
    This could be done by redirection of the new custom dictionary. What is the location of that setting in the registry?
    Is there is a way to append to the standard dictionary file so as not to replace any setting that a user may have made to the dictionary?
    Is this done to the .clam or .txt file outside of the Adobe Reader application?
    What is the “All” setting in the dictionary?
    Does that imply the program will look through all the dictionaries?
    Is there a way to create a new dictionary name that would appear under the preferences\spelling\dictionaries list. Is there an Index file that would point to a newly created Dictionary folder?

    Custom dictionaries must be created with a 3rd party program provided by Proximity (http://www.proximitytechnology.com/spell_correction.htm).
    The spelling support files are installed in this directory for all users (this is only the default)
    C:\Program Files\Adobe\<product>\Resource\Linguistics\Providers\Proximity
    File types include:
    ENV - eg: grmphon.env - the phonetic rule file for the spelling dictionary language. There is one of these “ENV” file for each language.
    CLX - eg: grm32.clx - a language related part of spelling dictionary. There is one of these “CLX” file for each language.
    LEX - eg: grm104.lex - an actual spelling dictionary. There may be several dictionaries for a given language, for example, grm104.lex, grm10401.lex.
    So the answer is:
    Create a custom dictionary with Proximity and use the Wizard or some other method to deploy the files in the correct location.
    Ben

  • Custom field in 'Notes and Attachment" tab of shopping cart

    Hi All,
    I am working in SRM 7.0 classic scenario and i have requirement in which i need to add custom field in 'Notes and Attachment" tab of the shopping cart portal.
    I have added those fields in structure --- INCL_EEW_PD_ITEM_CSF and INCL_EEW_PD_ITEM_CSF_SC.
    Also implemented the BBP_DOC_CHANGE_BADI in while i am populating the custom field value.
    I have created custom field as INPUT FIELD in webdynpro component /SAPSRM/WDC_DODC_NA and view : V_DODC_MAIN_VIEW.
    Now I can see the custom field value in table BBP_PDISC, but i am not getting the value in Shopping cart "Notes and Attachments" tab.( I am able to see the field but not the value of it).
    The value is getting populated in ITEM DATA tab instead.
    Please suggest if i am missing anything in the process and how to achieve this.
    Thank you in advance.
    Thanks,
    Satheesh

    Hi,
    You have done everything.. well.. except that you did not set the attribute of the input field to this value.
    When you have value u just need to bind it using set_attribute method of the element.
    Use  ctr+f7 to generate the wizard .. select in set mode.. click on context and select the attribute that you have created in the context.
    Hope this helps.
    Regards,
    Vinay

  • Sorting sequence of custom nodes

    How can one sort a sequence of custom nodes based on an arbitrary value?
    For example:
    Say you create a custom node of a person with their favorite number:
    var myNode : CustomNode = CustomNode{
        var personName: "John Smith"
        var personFavoriteNumber: 15
    //Create a sequence of CustomNode with different names and favorite numbers
    var customNodeSequence : CustomNode[] = .....My question is, how can you sort the sequence based off 'personName' (Alphabetically) or by their favorite number 'personFavoriteNumber' sequentially?
    I was reading [this article|http://blogs.sun.com/michaelheinrichs/entry/creating_javafx_sequences_in_java] and I'm curious to know more about this when he mentions the following:
    sort - Creates a new sequence by sorting the elements of a given sequence. The order can be induced either by the natural order of the elements, if they implement java.util.Comparable, or by providing a java.util.Comparator of the elements.+
    I believe it's related to [this thread|http://forums.sun.com/thread.jspa?threadID=5330227&tstart=31] , but I'm trying to figure out how to actually compare a custom node's variable with that of another. I'm not entirely sure how the comparator illustrated in this thread works.

    Found a solution.
    Here's a reference page: click
    var sortSeq = Sequences.sort(customNodeSequence , Comparator{
            public override function compare(o1 : Object, o2 : Object) : Integer{
                (o1 as CustomNode).personName.toLowerCase().compareTo((o2 as CustomNode).toLowerCase().personName);
    var customNodeSequenceSorted = (sortSeq as CustomNode[]); //sortSeq returns as object[], so you may have to type cast if you explicitly casted the destination sequence somewhere else

Maybe you are looking for