Input for nested data structure service

I plan to use a service which require some header-information and additional 1...n item-information.
The data structure of this service is nested, means there is only one input-port for the header AND the nested items.
Is it somehow possible to create a UI consists of two inputs like one input form for the header and one input table for the items on the inputport??
The main problem is that either the header or the item information is transported to the input port of the service, never both as required by the service. Tried to solve it using a data bridge (or as it called in Ehp1 for 7.1 "data share") without any success.
Solved it by myself Just forgot to check "Control Buttons" in the Configure tab of the table.
Edited by: Stefan Witschel on Nov 18, 2008 1:47 PM

Yes, I still used it.
In Ehp1 is a feature that automatically add a data share if you drag and drop the input port of your servce with nested structure anywhere on the screen. On this data share you can add another input form or table for the nested elements. Both forms/tables than are connected at the input with the share.
Finally you do the data mapping for the nested structure and define an action to call this connection.
Actually my problem was that I couldn't input data in rows of a table for the nested structure. I solved it by enabling the table controls which allows you to add an delete rows.

Similar Messages

  • JAXB: Marshalling complex nested data structures?

    Hello!
    I am dealing with complex data structures:
    Map< A, Set< B > >
    Set< Map< A, B > >
    Map< A, Map< B, Set< C > > >
    Map< A, Set< Map< B, C > > >
    [and so on](NOTE: In my case it doesn't matters if I use Set<?> or List<?>)
    I wanted to write wrappers for JAXB for these data structures, but I have no idea how.
    My idea was: write XmlAdapter with generics for Map, Set and List, but it failed:
    "[javax.xml.bind.JAXBException: class java.util.LinkedList nor any of its super class is known to this context.]"
    because I was using LinkedList<T> inside the XmlAdapter (it seems that from the point of view of JAXB,
    LinkedList<T> is same as LinkedList<Object>)
    Any ideas?

    According to sec 4.4 "By default if xml schema component for which java content interface is to be generated is scoped within a complex type then the java content interface should appear nested within the content interface representing the complex type. ".
    So I doubt that worked with beta and you may have to represent this anonymous complex type as a named complex type to avoid the nesting.
    Regards,
    Bhakti

  • Is there a Java API for Tree data structure?

    Hi,
    I am wondering is there any Java API to work on Tree based data structure.
    I could read in some forums / sites that teach me how to create tree based objects using collection.
    But I wanted to know is there any core java API that can be used directly for tree based operations. (like binary tree or other type of trees)
    Please comment on this doubt.

    Headed using google and other stuff not found one.
    Suggestion: Why not start building the one, its a good idea to do that, isn't it.

  • Using OracleXMLSave for nested date

    I am trying to insert an XML document containing the following date structure into Oracle using the OracleXMLSave class. Is there a way to do this without reformatting the date into a single element beforehand? Here is the stucture.
    <expiration-date>
    <expiration-year>2000</expiration-year>
    <expiration-month>12</expiration-month>
    <expiration-day>31</expiration-day>
    </expiration-date>
    Any help appreciated!
    Kurt

    Hi try this
    sql> select to_char(sr.recievedat, 'FMDD Mon yyyy fmHH24:MI') from dual;example
    SQL> select to_char(to_date('01-jan-2009 7:01:06','dd-mon-rrrr HH:MI:SS'), 'FMDD Mon yyyy fmHH24:MI'
    ) from dual;
    TO_CHAR(TO_DATE('01-JAN
    1 Jan 2009 07:01

  • Multiple booleans controlling one boolean input for a case structure

    Hello,
    I have four boolean buttons and a case structure with a boolean input. I would like to write the program so that whenever any one of the four boolean button changes value, the case structure reads true for one loop interation, and then returns to false.
    I have tried all sorts of things and can't seem to figure it out.
    Ultimately, the ideal function of the program is so that whenever you push any one of the four boolean voltage controllers, that voltage case is chosen in the case structure, the time in seconds is written to a file, and the elapsed time timer is reset.
    I have attached my program. Let me know if you have suggestions. Thanks.
    Attachments:
    Volt_Control_And_Time_Counter.vi ‏71 KB

    Zappow wrote:
    However, with this setup, the time counter still doesn't work.
    The event structure for all four buttons has a true boolean constant connected to my file-saving case structure. If I connect this to my elapsed time express VI reset button, the timer doesn't count.
    The timer does not count because you have not wired a timeout to the lower event structure. The default timeout is -1, so the lower loop never spins via timeout
    It is useless to have a wait in a loop that also has a timeout case. Just wire an approriate timeout value to the timeout terminal and remove all waits. It is also not necessary to have a 1ms ttimeout if your timeout values only displays to 100ms resolution. Can you explain why you think you need two loops and all that extra code?
    Attached is a quick rewrite that solves some of the problem. Since I don't have any hardware, I replace the voltage out with a meter.
    You have way too many FP controls and indicators. Use arrays!
    Let me know if yo have any questions. Modify as needed.
    LabVIEW Champion . Do more with less code and in less time .
    Attachments:
    Volt_Control_And_Time_CounterMOD.vi ‏63 KB

  • The message for wrong input for a Date - "25/11/1987

    Hi ,
    When an incorrect input is set to a Date controller - the following message reaceived:
    "please ....   25/11/1987"
    Is there a way to change Can the hard coded date "25/11/1987"?
    e.g.  dd/mm/yyyy
    Thanks a lot.
    Regards,
    Shimon.

    you can have simple type with basic type date and there you can specify the format, if you want it as a client side validation.
    or
    you can use [java.text.SimpleDateFormat|http://java.sun.com/j2se/1.4.2/docs/api/java/text/SimpleDateFormat.html] for displaying it.
    nikhiL

  • BADI to validate data input for custom data model.

    Hi,
    I have a custom data model which has Material as the key field. When the user enters the Material number and clicks on CONTINUE, he is taken to the second screen where he has to enter data and description of the change request (the standard familiar screen). Now when the user fills the data and submits the record I need to do data validation and throw an error accordingly, Can anyone please help me out with the BADI or a solution to achieve this result.
    Any kind of help would be sincerely appreciated.
    Regards,
    Tushar.

    Hello Tushar
    Path is - General Settings - Business Add-Ins- BADI - Define Validation / Enrichment - You can check all the relevant BADI's here. Click on display and then you have filter option. Add your data model in filter. This is useful for Finance. You have check for MM.
    Kiran

  • Create BMM for my data structure

    Hi
    I am newbie on OBIEE.after two weeks work on OBIEE I could create my repository from our data sources.but in our needs,I have to answer to some question that I could not create BMM correctly from our sources.because I need to hierarchy and some conversion on my database.
    I describe our database and our need :
    I have 3 table with primary key
    Table A: (ItemID, NameItem, description,SerialNumber,PriceItem) ItemID is primary key
    Table B: (ProductID,NameProduct,TimeCreated,ListItemsID,ProductType) ProductID is primary key
    Table C: (ListItemsID,ItemID) ListItemID is primary key
    Our Questions:
    1- number of produced product based on year,quarter,month,week,day in hierarchy model
    2- number of all items in one special product
    3- total price of one product
    4- total price of all product
    5- total price of one month production,year production
    6- list of all items of one product
    7- group by product type
    8- total price of one type
    Unfortunately I could not create correct BMM layer and presentation layer in order to create analysis.
    Thanks for any help or guidance

    If you have entity based VOs which you are using to insert/update data, the most suitable place in terms of integrity of business objects is in the doDML() of the entityImpl
    protected void doDML(int operation, TransactionEvent e) {
    super.doDML(operation, e);
    switch(operation){
    case EntityImpl.DML_INSERT:{
    // logic to insert the new log data
    break;
    case EntityImpl.DML_UPDATE:{
    if(this.getEntityState()==EntityImpl.STATUS_MODIFIED)
    //logic to find and update row in the log table
    break;
    default: break;
    If you want to keep your logs in a different table, i would suggest to keep the "Primary_Key" column along with the "Table_Name" so that you can find the appropriate log rows for update operations.

  • Any selection input for posting date in Confirmation Report CN48n

    Hi All,
    Is there any way to select some date based on posting date in CN48n report, because if i have run by Plant / co.code it takes so long.
    Plz advice.
    Cheers,
    Nies

    Hi,
    The only option I found out is "Data on Dates Definition -- Finish Date" in dynamic selections.
    This including the Plant & Company Code selection will not exactly meet your requirement but of course can definitely reduce the search load on the system.
    regards

  • Nested Objects for a Data Provider in a Data Grid, not displaying data

    Hi, I have a datagrid and the dataprovider for this grid is the result of a RPC call. The result set has the following structure:
    Array
    [0]->Object #1
          [one] => 1
          [two] => 1
          [three] => Object #2
              [apple1] = > Object #3
                  [color] =>    red
                  [rate] => 20
              [apple2] => Object #4 ( the    number of apples is dynamic, apple3,apple4 .. and so on)
                  [color] =>    blue
                  [rate] => 100
    and so on ... so the number of apple objects will vary since its
    dynamic. How do I display this data in a datagrid ??? Please help!! I
    saw many articles on creating the "Nested DataGridColumn " classes...
    like this :
    http://active.tutsplus.com/tutorials/flex/working-with-the-flex-datagrid-and-nested-data-structures/
    it helps, but the problem with my data is that some of the indexes (like  apple1,apple2 etc) are dynamic.
    Also, my flex application is a desktop application (in case that matters). Just to see whats going on, I
    dropped all the nested arrays and used a plain simple one-dimensional array. Even in this case the data
    isnt getting displayed.
    I dont know what im doin wrong. the datafields, labels etc e'thing is correct. I even debugged and
    im getting the result on the flex side. whats going on ?

    No luck ... i converted the result set to a List, and even tried with an iList. Same problem -  nothing gets displayed...
    I have no idea whats happening ....
    This is my code :
    [Bindable]private var privilegesArray:ArrayCollection = new ArrayCollection();
    public function init():void{ // called on creation complete
                    RO.getPrivileges.addEventListener(ResultEvent.RESULT,handleGetPrivileges);
                    RO.getPrivileges();
    protected function handleGetPrivileges(event:ResultEvent):void{
                    privilegesArray = event.result as ArrayCollection;
    <mx:DataGrid id="privilegesDG" dataProvider="{privilegesArray}" width="100%">
            <mx:columns>
                <mx:DataGridColumn headerText="Name" dataField="name" />
                <mx:DataGridColumn headerText="Alias" dataField="alias" />
            </mx:columns>
        </mx:DataGrid>
    The data that gets returned is smthing like this : (for the moment I have removed all the nested objects and arrays and returning just a simple plain array)
    Array => [0] => Object #1
                              [name] => some name
                              [alias] => alias

  • Hierarchical data structure

    I am trying to represent the following data structure in hierarchical format ---- but I am not going to use any swing components, so jtree and such are out, and xml is probably out. I was hoping some form of collection would work but I can't seem to get it!
    Example Scenario
    Football League --- Football Team -- Player Name
    West
    ------------------------------Chiefs
    -------------------------------------------------------------xyz
    -------------------------------------------------------------abc
    -------------------------------------------------------------mno
    ------------------------------Broncos
    ------------------------------------------------------------asq
    ------------------------------------------------------------daff
    This hierarchical structure has a couple of layers, so I don't know how I can feasibly do it. I have tried to look at making hashmaps on top of each other so that as I iterate thru the data, I can check for the existence of a key, and if it exists, get the key and add to it.
    Does anyone know a good way to do this? Code samples would be appreciated!!!
    Thank you!

    Hi Jason,
    I guess you wouldn't want to use Swing components or JTree unless your app has some GUI and even then you would want to look for some other structure than say JTree to represent your data.
    You have got plenty options one is that of using nested HashMaps. You could just as well use nested Lists or Arrays or custom objects that represent your data structure.
    I don't know why you should exclude XML. There is the question anyway how you get your data in your application. Is a database the source or a text file? Why not use XML since your data seems to have a tree structure anyway and XML seems to fit the bill.
    An issue to consider in that case is the amount of data. Large XML files have performance problems associated with them.
    In terms of a nice design I would probably do something like this (assuming the structure of your data is fixed):
    public class Leagues {
        private List leagues = new ArrayList();
        public FootballLeague getLeagueByIndex(int index) {
            return (FootballLeague)leagues.get(index);
        public FootballLeague getLeagueByName(String name) {
            // code that runs through the league list picking out the league with the given name
        public void addLeague(FootballLeague l) {
            leagues.add( l );
    }Next you define a class called FootballLeague:
    public class FootballLeague {
        private List teams = new ArrayList();
        private String leagueName;
        public FootballTeam getTeamByIndex(int index) {
            return (FootballTeam)teams.get( index );
        public FootballTeam getTeamByName(String name) {
            // code that runs through the team list picking out the team with the given name
        public void addTeam(FootballTeam t) {
            teams.add( t );
        public void setTeamName(String newName) {
            this.name = newName;
        public String getTeamName() {
            return this.name;
    }Obviously you will continue defining classes for Players next following that pattern. I usually apply that kind of structure for complex hierarchical data. Nested lists would be just as fine, but dealing with nested lists rather than a simple API for you data structures can be a pain (especially if you have many levels in your hierarchy);
    Hope that helps.
    The Dude

  • User exit for additional data B for sale order item .

    Hi., all
    my client requirement is
    (  This business requirement will make the Last Price for a given item be visible during order entry.  )
    u2022Retrieve & display during order entry, the most recent unit price given to a customer for a specific item, from the Billing data.
    . Display the Last Price under Additional Data B Screen
    add new field (last extended price) in additional data b screen.
    after that 1.     Using the Sales Order Material Number (VBAP-MATNR), Sales Order Sales Organization (VBAK-VKORG), Sales Order Distribution Channel (VBAK-VTWEG), Sales Order Division (VBAK-SPART), Sales Order Sold-to Number (VBPA-KUNNR for VBPA-PARVW=u2019AGu2019) to access the Billing Items By Material Index Table (VRPMA) and specify a billing date (VRPMA-FKDAT) of less than 60 days from current Sales Order requested delivery date (if specified at header VBAK-VDATU or at the schedule line level (VBEP-EDATU).  This will result in all the billing documents where the Sold-to bought the item but isnu2019t completely refined as of yet.  Retain the billing document (VRPMA-VBELN), item (VBPMA-POSNR), and billing date (VRPMA-FKDAT) in a temporary table to pass to number 2 as the input.
    2.     Use the billing document (VRPMA-VBELN) and item (VRPMA-POSNR) to read the Sales Document Partners Table (VBPA) where the partner function (VBPA-PARVW = u201CSHu201D) and the Sales Order Ship-To (VBPA-KUNNR for VBPA-PARVW=u2019WEu2019) to select ONLY billing documents that are for that given ship-to location.  This filters out only billing documents relevant for that ship-to location. 
    3.     From the resulting list of billing documents, select the most recent date (VRPMA-FKDAT) which will refine the search for the last Billing Document (VRPMA-VBELN) and item (VRPMA-POSNR).
    4.     Using the most recent Billing Document (VBPA-VBELN), access the Billing Document Item Table (VBRP). To result in the Last Extended Price as VBRP-KZWI1.
    5.     This price will be an extended price which needs to be calculated as a u2018unit priceu2019.  For this billing item, select the sales unit (VBRP-VRKME) to determine if the sales unit is in cases or eaches. 
    a.     If the unit of measure is in cases, then simple math is required to divide the Last Extended Price (VBRP-KZWI1) by the billing quantity (VBRP-FKIMG).  Standard rounding should apply when .005 results in a .01.
    how to achive this ?

    Hi Chakravarthy,
    use the Exits provided in SAPMV45A -includes MV45*ZZ and screen exits as well 8309 8310 8459, 8460. Just be sure to
    use zznnnnnn include in the SAP provided forms instead of coding directly in the forms.
    You can check below user exits:
    MV45ATZZ :For entering metadata for sales document processing. User-specific metadata must start with "ZZ".
    MV45AOZZ:
    For entering additional installation-specific modules for sales document processing which are called up by the screen and run under PBO (Process Before Output) prior to output of the screen. The modules must start with "ZZ".
    MV45AIZZ:
    For entering additional installation-specific modules for sales document processing. These are called up by the screen and run under PAI (Process After Input) after data input (for example, data validation). The modules must start with "ZZ".
    MV45AFZZ and MV45EFZ1:
    For entering installation-specific FORM routines and for using user exits, which may be required and can be used if necessary. These program components are called up by the modules in MV45AOZZ or MV45AIZZ.
    Reddy

  • Data structure similar to database table

    i have the need for a data structure that will essentially be the same as a database table. this "table" can be queried against and sorted.
    currently, i am using an interface to abstract this "table" datastructure, and implementing the interface via jdbc calls.
    may someone point me in the right direction?
    in .NET, they have the DataTable and DataSet data structures, which do exactly as i require. These are objects essentially correspond to a database table and database, respectively. They are used as in-memory database.
    i have already tried using HSQL, but was wondering if there was a "better" way (i.e. more light-weight, intuitive, easier to use).
    thanks.

    Use an array and put your records in it.
    Efficient querying (simple queries) requires you to build indices for each element you wish to query on. The type of index depends on the kind on search you want to perform. Exact matches can use Hashes. Sorting, prefix or postfix matching can be performed using various tree indices.
    Complex queries (i.e. those that query on multiple parameters generally require query optimisers to figure out how to use the indies you have in the most efficient manner possible (well as close as the optimizer can get to it).
    cheers
    matfud

  • The Data access service not running or not yet initialized.

    Hello guys , 
    i am getting the following error wen tryin to open the console The Data access service not running or not yet initialized. on scom 2012 R2 before it was working fine but once i closed the console and open got the error 
    OS : Windows 2012r2 patched and scom 2012 r2
    sql : 2012 r2 enuff database size  
    tried few things as :
    1. change the account to domain admin for system center data acess service  still no luck
    2. created registry keys for servicepipetimeout to 6000 bt still nit working
    3.  Refresh sql account used for sccom data aceess service  still no luck 
    4. the service disappears as running after 30 seconds and the console is unable to open 
    kindly help if some perfect resolution as lot of time has been wasted and need to meet deadlines.
    thanks guys in advance
    Basit Siddiqui
    AIG

    Check that following:
    Verify permission of SCOM Account on sysadmin and OM DB.
    Check firewall that is disable
    Check antivirus that didn't block scom folders or services.
    Check SQL services is running
    Check Space of database at 5 GB as you configured. It is best practice to set the db size at a reasonable size and not to set to autogrowth.
    Also you can check below link
    http://vmajmudar.blogspot.com/2013/07/the-data-access-service-is-either-not.html
    Please remember, if you see a post that helped you please click "Vote As Helpful" and if it answered your question, please click "Mark As Answer"Mai Ali | My blog:
    Technical | Twitter:
    Mai Ali

  • Using a single data structure in a desktop application

    Hello,
    I am programming an application that needs to constantly access a data structure, for instance to add / edit / update / search data. Several graphical user interfaces need to modify this data structure. I was wondering of easy ways to use the data structure throught the whole application. One solution I found was to use the singleton pattern for my data structure, though lots of people have recommended me to avoid using that pattern. What are better ways of accessing that single data structure from all of those GUIs ?
    Thank you,
    Alfredo

    Not that there is anything wrong with a Singleton pattern, but I don't see how it would help you in this case.
    Just create the DataStructure and let every GUI that need to use it have a reference to it.

Maybe you are looking for

  • IMac unexpectedly shutting down

    My iMac has begun to shut down unexpectedly, repeatedly. I've been struggling with this issue for two days now and so can describe the typical pattern of odd behavior. I use my computer in the office of my private English school. For several hours in

  • How to know if a parent has no children in JTree?

    How to know if a parent has no children in JTree?

  • GeoRaptor for SQL Developer 1.1

    The GA release of GeoRaptor does not seem to work for the latest version of SQL Developer 1.1. GeoRaptor is an extension to SQL Developer to view spatial data. GeoRaptor adds a context menu option to tables containing Oracle Spatial data types and a

  • SCOM Management Servers not working after DW upgraded to SQL 2014

    Hey guys, Our setup is that we have 2 Management Servers running SCOM 2012 R2 UR3 on Server 2008. I want to say exactly what our problem is, and what my guesses are at it. Any additional information you need please just ask.  Problem = In the SCOM co

  • Eliminate spaces in csv file

    Hi, db version:10.2.0.4.0 o/s: windows 2003 I have the following script which works fine except for one thing. I spool the output to csv file and after the last field (STUREF) there are so many spaces. STUREF is a number field. I tried using RTRIM bu