Problem adding type VO to ArrayCollection collection item

Hello

I have problem when you try to add a VO to an ArrayCollection collection as follows. My last entry overrides all my previous entries in the table.

model.selectedItem.date = dateInput.text;
model.selectedItem.accountno = accountnoInput.text;
model.selectedItem.debit = Number (debitInput.text);
model.selectedItem.credit = Number (creditInput.text);

model.accountingdata.addItem (model.selectedItem);

where
SelectedItem is of type VO
accountingdata is the ArrayCollection collection



When I make a record of the first entry:
trace (Model.accountingdata);
The result:
(Array) #0
[0] #1 (com.accounting.superann.vo::DataVO)
accountno = "776001."
credit = 233
Date = "01/01/1976.
flow = 222
ID = 0

When I do a trace for the second and third entries:

(Array) #0
[0] #1 (com.accounting.superann.vo::DataVO)
accountno = "776055.
credit = 2323
Date = ' 03/03/2000 '.
flow = 2323
ID = 0
Online = false
[1] (com.accounting.superann.vo::DataVO) #1
[2] (com.accounting.superann.vo::DataVO) #1

Could someone please provide an explanation/solution?

Very much appreciated.

"mtgna" wrote in message
News:glcr0a$KJ8$1@forums. Macromedia.com...
> Hi
>
> I have problem when you try to add a VO to an ArrayCollection collection as follows.
> My
> last entry overrides all my previous entries in the table.
>
> model.selectedItem.date = dateInput.text;
> model.selectedItem.accountno = accountnoInput.text;
> model.selectedItem.debit = Number (debitInput.text).
> model.selectedItem.credit = Number (creditInput.text).
>
> model.accountingdata.addItem (model.selectedItem);
>
> where
> selecteditem is of type VO
> accountingdata is collection ArrayCollection
>
>
>
> When I make a record of the first entry:
> trace (model.accountingdata);
> The result:
> (Array) #0
> [0] (com.accounting.superann.vo::DataVO) #1
> accountno = "776001."
> credit = 233
> date = ' 01/01/1976.
> flow = 222
> id = 0
>
> When I do a trace for the second and third entries:
>
> (Array) #0
> [0] (com.accounting.superann.vo::DataVO) #1
> accountno = "776055.
> credit = 2323
> date = ' 03/03/2000 '.
> flow = 2323
> id = 0
> online = false
> [1] (com.accounting.superann.vo::DataVO) #1
> [2] (com.accounting.superann.vo::DataVO) #1
>
> Could someone please provide an explanation/solution?
>

Looks like you have all the elements in the ArrayCollection pointing to collection
the same object. You call new DataVO() each time you add a new VO
to the Board?

Tags: Flex

Similar Questions

  • Type was not found or was not a compilation constant: ArrayCollection collection

    I've never seen this type of error before. I was running the asdoc tool when I arrived at the Office:

    package adventureGame.util
    {
         import mx.collections.ArrayCollection;
    
         public class ACConvertor
         {
              public function toAC(array:Array):ArrayCollection
              {
                   var arrayObject:Array = new Array();
                   var ac:ArrayCollection = new ArrayCollection();
                   
                   return ac = arrayObject as ArrayCollection;
              }
         }
    }
    

    Why I get:

    ACConvertor.as (31): col: 37 error: Type was not found or is not a constant of compilation: ArrayCollection collection.

    public void toAC(array:Array):ArrayCollection

    Collection ArrayCollection and any class that starts with mx... is that the Flex code. You work in an IDE Flex or Flash?

  • ArrayCollection collection all items in the string

    I'm trying to find all the vehicles that have a string of accessories.

    I have a string of seven comma optioncodes representing selectedItems among a list of options

    optionsString:String = leather, scratches,...

    I have an ArrayCollection collection called vehicleOptions that contains a list of vehicle options one line per option

    Wine1, optioncode

    Wine1, optioncode

    VIN2, optioncode

    VIN2, optioncode

    VIN3, optioncode

    ...

    I need to recover all vehicles (VIN) who, not one, but ALL the optioncodes in the string of optioncodes selected.

    Recommendations on how to do it?

    Once I have a list of wines, it enables me to filter another list of vehicles as vehicles with ALL options selected down the field.

    Thank you!

    Don

    If I understand your data, you would loop in the table to remember the last WINE you saw.  If you get through all the options for the WINE without a miss then it has all the options.

  • Access table in the arraycollection collection and add the item at the end of the table

    for
    
    
    "login_user":"XXX"},i);
    
    //mess2=sess_MessArr[i2];
    //mess1=dispArray[i2].fwchat_message
    
    //searchArray(mess2);}
    
    
    
    
    
    (var i:int = 0; i< dispArray.length; ++i){
    
    dispArray[i]. 
    dispArray.addItemAt({
    


    I have this code to try to access the values in the table in the arraycollection collection, but that's not it actually creates a value at the end of the arraycollection collection. can someone tell me what im doing wrong I basically want retransmits the individual tables in the arraycollection collection and add Login_user

    So, I guess your ArrayCollection collection holds an array of objects, as follows:

    public var myAC:ArrayCollection = new ArrayCollection([{first:"bob",last:"smith"},{first:"jim",last:"jones"},{first:"mary",last:"allen"}]);
    

    And you try to add a new property of login_user to each of them, right?

    for each (var obj:Object in myAC) {
         obj.login_user = obj.first + "83";
    }
    

    Each person would be firstly, properties last and login_user.  In my example above, all the login_user would set their name + number 83, so adjust you accordingly for your application.

    It is the ease (for each rock for this situation).  However, if you want to paste the iterative approach, you have published, you can try this:

    for (var i:int = 0; i < myAC.length; i++) {
         myAC.getItemAt(i).login_user = myAC.getItemAt(i).first + "83";
    }
    

    I think that the for each syntax is clearer, but anyway works the way I think you want.

  • How to add a new column to an existing item to an arraycollection collection?

    Hello

    I have a collection of arraycollection, acLeaseContract, which has this structure:

    Capture.JPG

    These are the columns and their respective data I get from main system. Now, I would like to add 2 more columns, after TenantName.

    I can iterate through this collection arraycollection, creating an object, add all columns again to the new object, and also add new columns that I want to add and then add that object to the arraycollection collection.

    for (i = 0; i < acLeaseContract.length; i ++) {}

    var o: Object = new Object();

    o.ContNo = acLeaseContract [i]. ContNo;

    o.ContType = acLeaseContract [i]. ContType;

    o.EndDt = acLeaseContract [i]. EndDt;

    .

    .

    .

    .

    o.TenantName = acLeaseContract [i]. TenantName;

    o.MyNewColumn1 = "somevalue";

    o.MyNewColumn2 = "somevalue";

    acLeaseContract.addItemAt (o, i);

    }

    But I think it's very painful and long, because we re building the collection whole arraycollection once again, just to add a couple of more columns.

    Is there a clever way to update the collection arraycollection with new entries, if yes can you pls tell me how can this be achieved?

    Thanks for your help...

    -Deepak

    Hello Deepak,

    Try to use the ObjectUtil.copy method. This will create a complete copy of your object as:

    var tempArray:Array = ObjectUtil.copy (acLeaseContract.source) in the table;

    acLeaseContract = new ArrayCollection (tempArray);

    You will avoid your iteration for simply copy your arrayCollection collection deeply.

    Now, when you look at acLeaseContract it will all contain the dataStructure as an object. Now, you are free to add any number of column to any node.

    Hope this helps you.

    See you soon

    -Vikash

  • Object to an ArrayCollection collection

    Hello

    I have an application that supports some info from database and he sinks into a datagrid, or a chart.

    I met this error to have one line and try to use it in a table so that I can use in my application.  Its come to my attention that it is a quite common problem that people face, but I don't seem to be able to get around any one test.

    My actionscript has a function that trots through ASP database and returns the data in the case - as below (obv I deleted stuff - load of calls are made to the mssqlQuery function - the only one I have trauma with is below)

    mssqlQuery ("SELECT (CASE SLARag, COUNT (SLARag) as Volume [CMI_ClientMI]. [Portal]. [BatchUpdate]","BusSegBuildSummary") ;}

    public static void mssqlQuery(sql:String,fid:String):void {}

    var http:HTTPService = new HTTPService;

    var parm:Object = new Object;

    parm.fas_sql = sql;

    parm.fas_db = mssql_db;

    http.url = mssql_url + "? irand =" + Math.random ();

    http.showBusyCursor = true;

    http.request = sql;

    http.addEventListener (ResultEvent.RESULT, mssqlResult);

    http.addEventListener (FaultEvent.FAULT, mssqlFault);

    http.method = "POST";

    sqlToken = http.send (parm);

    sqlToken.param = fid;

    }

    For BusSegBuildSummary collection arraycollection var

    [Bindable]

    public static var _BusSegBuildSummary:ArrayCollection = new ArrayCollection();


      

    Case statement to BusSegBuildSummary

    case 'BusSegBuildSummary':

      


    If (event.result.results.record is ObjectProxy) {}

    trace ("this is a Proxy object");


    }

    else {}

    trace ("it isn't Proxy object");

    _BusSegBuildSummary = event.result.results.record;

    }

    break;

    So - if the result has several records in it - so we are very well - it's the trace ("this is Proxy object"); bit which is annoying.

    I think I have to send the object as an arraycollection collection and I tried a number of different ways without success.

    Any ideas? I struggled for a while now and I am panicing!

    Hi Andrew

    No problem with the warranty so I wanted just report to disseminate good practices

    I do not understand what you write, but it is how I read it:

    When the user runs the function again, you get a more added slice, you can don't wan't, only you don't wan't the new?

    This is because you don't collection.addItem (item), so just add the to it to the collection.

    If you need to do:

    If (event.result.results.record is ObjectProxy)

    {

    collection.removeAll ();

    collection.addItem (event.result.results.record)

    }

    Best regards

    Martin

  • Add the object to the ArrayCollection collection

    Hi all

    I have an ArrayCollection collection which will be filled by a call remotely from java code.

    The Collection is no longer bound to a ComboBox that is shownup in the Panel.

    I tried to add an object to the collection of ArrayCollection iterated to 0th Index, whereas I could see this label of objects as the default label in the drop-down list box.

    But when the drop-down list box is displayed, the first element of the returned list of JavaCode is shown as the default label.

    See all present items in the drop-down list box, the label of objects which is added at Index 0 is seen, but when rendering this is not used as the default when appears on the display.

    < mx:ArrayCollection id = "departments" / >

    private void departmentResultHandler(event:ResultEvent):void
    {
    departments = event.result as ArrayCollection collection;
    Department: Department of var = new Department();
    department.departmentID = 0;
    department.departmentName = "Department";
    departments.addItemAt(department,0);
    }

    < mx:ComboBox id = "add_departmentID" dataProvider = "{services}" labelField = "departmentName" textAlign = "left" selectedIndex = "0" / >

    As I can't download images screeshot here, these are the URL that displays the images and gives a clear picture of what explains

    http://picasaweb.Google.com/narra.Madan/screenshots/photo#5118474206291402818

    http://picasaweb.Google.com/narra.Madan/screenshots/photo#5118474206291402834

    Please suggest where I have gone wrong

    Kind regards
    Madan

    The problem is the timing. When you assign the event.result to departments, the result is bound to the drop-down list, and the first item is selected by default. When new items are added to the drop-down list, flex does not change the selected item to the new item. Yes, it's just saying to your drop-down list box to select the element 0 and it will show Department.

    departments.addItemAt(department,0);
    add_departmentID.SelectedIndex = 0;

    You can also look at the use of the prompt property of the combo box. The prompt when comboBox.selectedIndex = - 1. Unless you need article of the Jet to be selectable, you can quickly define = 'Department' and then do:

    private void departmentResultHandler(event:ResultEvent):void
    {
    departments = event.result as ArrayCollection collection;
    add_departmentID.SelectedIndex = - 1;
    }

    Vygo

  • Add a line of DataGrid using the ArrayCollection collection

    Work of one of these, when I hard code do it programmatically is not:

    Hard-coding approach 1 - *.
    var acData:ArrayCollection = new ArrayCollection();
    ...

    Each DataGridColum has a dataField like "col1", "col2", "col3", etc...
    Therefore, adding items like this works
    acData.addItem({col0:"testa",col1:"testb",col2:"testc",col3:"testd",col4:"teste"});)


    2 - programming approach *.
    But adding items like that does not work
    for (var j = 0; j < dataRows.length (); j ++) {}
    var t:String = [j] of dataRows m:System.NET.SocketAddress.ToString (); dataRows is of type XMLList, data are formatted as the format above
    I did a breakpoint to check and someone else watch the channel and it matches the format that works.
    acData.addItem (t);
    }

    When I try the second approach, I get all the content of the string in each cell of the grid, where, in the first approach, I get "tested" in the first column, "testb" in the second column (without quotes of course), etc...

    Anyone know why there is a difference or what I am doing wrong?

    Thanks in advance.


    I guess that's because in the second approach, you add a string to your ArrayCollection collection instead of an object as in the first approach:

    acData.addItem({col0:"testa",col1:"testb",col2:"testc",col3:"testd",col4:"teste"});) This is an object with the properties that you add to the ArrayCollection collection

    var t:String is dataRows [j] m:System.NET.SocketAddress.ToString ();. It is a string, not an object
    acData.addItem (t); you add a string to the ArrayCollection collection

    You must take your XML string and generate a new object, as in your first approach, using the End Sub

  • Cast of XML for the ArrayCollection collection where there is a single record

    I work with web services and in the result handler doing the following

    protected function WbSc_SSPr_PrinterListResult_resultHandler(event:ResultEvent):void
    {
    printerlistArrayCollection = event.result.Printer as ArrayCollection collection;
    PrinterCount = printerlistArrayCollection.length - 1;
    }

    If there is more than one value it works fine.

    If only one value is returned, then it shows as nothing.

    Huh?

    When I run it as a test, it returns a record

    <? XML version = "1.0" encoding = "UTF-8"? >
    < SOAP - ENV:Envelope
    " SOAP - ENV:encodingStyle = ' http://schemas.xmlsoap.org/SOAP/encoding/ "
    " xmlns:SOAP - ENC =" http://schemas.xmlsoap.org/SOAP/encoding/ "
    " xmlns:SOAP - ENV =" http://schemas.xmlsoap.org/SOAP/envelope/ "
    " container = ' http://www.w3.org/2001/XMLSchema "" xmlns: xsi = " " http://www.w3.org/2001/XMLSchema-instance ">
    < SOAP - ENV:Body >
    " < = xmlns:ns1 ns1:WbSc_SSPr_PrinterListResponse ' http://www.4d.com/namespace/default ">
    < BidList xsi: type = "xsd: anyType" >
    < printer >
    Cognititve < do > < / make >
    ZB345 < template > < / template >
    < problem > This IS a TEST PROBLEM < / problem >
    < / printer >
    < / BidList >
    < / ns1:WbSc_SSPr_PrinterListResponse >
    < / SOAP - ENV:Body >
    < / SOAP - ENV:Envelope >

    Probably something like this will do:

    If (event.result.Printer is collection ArrayCollection) {}

    printerlistArrayCollection = event.result.Printer as ArrayCollection collection;

    } else {}

    printerlistArrayCollection = new ArrayCollection ([event.result.Printer]);

    }

  • Flex 3: syntax to power the ArrayCollection collection in loop

    Hi, I'm a newb. I can't find an example how to do that. Examples would be greatl appreciated.

    I want to draw some technical data by filling the dataprovider for my chart with a collection of table (so far no problem). I want to poulate collection table by looping through a mathematical expression, and I can't understand the syntax for this. For example...

    [Bindable]
    private var myChartData:ArrayCollection = new ArrayCollection([)
    {vertNum:100, horizNum:100}
    ]);

    I want to browse and add more points by program, so if I loop 5 times I find myself with...

    [Bindable]
    private var myChartData:ArrayCollection = new ArrayCollection([)
    {vertNum:100, horizNum:100},

    {vertNum:110, horizNum:110},

    {vertNum:43, horizNum:120},

    {vertNum:88, horizNum:130},

    {vertNum:140, horizNum:140},

    etc...
    ]);

    The number of variables horizontal to draw ould be several hundred, so I don't want to set up a huge collection of static array with expressions in each location. I'd rather solve the expression as a loop iterates and populate the collection of table as he goes. But I don't have any idea how "word" which.

    Thank you!

    Here's an example of adding a simple formula data points using a random number generator and amplify the randomness. The process is just to create a new object for each iteration of the loop and add the object to your ArrayCollection collection. You can assign as many properties to the object you need, which can be useful to use an ArrayCollection collection that appears in several charts.


    http://www.Adobe.com/2006/mxml"layout ="absolute"creationComplete =" build_model () ">"
       
            Import mx.collections.ArrayCollection;
               
    private function build_model (): void {}
    var obj:Object;
    var chartAC:ArrayCollection = new ArrayCollection();
                   
    for (var i: uint = 0; i< 100;="" i++)="">
    obj = new Object();
    obj.horizNum = 100 + 10 * i;
    obj.vertNum = i * Math.Random ();
    chartAC.addItem (obj);
    }
    linechart1. DataProvider = chartAC;
    }

    ]]>
       
       
           
               
           

       

       

    Chris

  • To access the names of the fields in the ArrayCollection collection

    Hello, this can seem like a n00b question, but, I have a collection of table that looks to the below:

    public var topFive:ArrayCollection = new ArrayCollection([)
    {Month: "GAME_Redemptions"},
    {Month: "TALLINK_Redemptions"},
    {Month: "YvesRocher_Redemptions"},
    {Month: "ETAM_Redemptions"}
    ]);

    With a loop, for example, if I want to access the value, I would type, topFive [i] .month. However, if I want to access domain name, what would be the code. IM assuming that it would be something like [i] topFive - but it does not return the desired result.

    Does anyone know how to do this? I wanted to avoid having to put the table in a datagrid control and then extract values from there.

    Help, please!

    Craig

    Your ArrayCollection collection contains five dynamic objects. If the expression 'topFive [i]' will give you the object at index 'i', rather than the Month of this object property. If you do not know the names of the properties of these objects then you need in order to access their properties a second loop:


    <>
    "xmlns:MX ="http://www.adobe.com/2006/mxml"
    Layout = "vertical" >
       
       
            Import mx.collections.ArrayCollection;
               
    private var topFive:ArrayCollection = new ArrayCollection([)
    {Month: "GAME_Redemptions"},
    {Month: "TALLINK_Redemptions"},
    {Month: "YvesRocher_Redemptions"},
    {Month: "ETAM_Redemptions"}
    ]);
               
    private void doLoop(): void
    {

    Loop through the objects in the collection
    for each (var item: object in topFive)
    {

    Loop in the properties of the current object.
    for (var property: String in object)
    {

    Display the name of the current property and the value it contains
    output. Text += property + ":"+ object [property] + '\n'; '.
    }
    }
    }
               
    ]]>
       
       
        <>
    label = 'Do Loop'
    Click = "doLoop ()" / > "
           
        <>
    Width = "200".
    Height = "300".
    ID = "output" / >
       

  • Condition in the ArrayCollection collection

    I have an ASP application that retrieves the files form a MS SQL Server db.

    My flex application the user can select the desired file to download. It search the name of the file as it is written in my flex application which is worng because the actual name in the SQL Server db is different.

    So now I'm trying to solve this problem with an ArrayCollection collection that has the file name time as Flex knows it and the name of the SQL Server.

    var sdeName:ArrayCollection = new ArrayCollection([)
    {label: "labelInFlexApp", data: 'labelInSQL'}
    ]);

    If (sdeName [label] == item.label) {}
    Item.label = sdeName [data];
    var url: String = " " http://Server/getMetaData/metadata.aspx?sdeFeatName= " "+ item.label +"&"+"outFormat = ISO";

    }

    I do not know how to find the value in my ArrayCollection collection and compare it with the real one.

    Thank you

    Manolo

    Hello

    Try:

    if (sdeName.getItemAt(i)["label"] == item.label) {
    

    Instead of:

    if (sdeName.getItemAt(i).[label] == item.label){
    
  • Fill() return empty ArrayCollection collection

    Hello

    I'm new to SDS and do not know why the fill() method returns nothing, even if the assembler returns a list of 3 items. I know the list is back nothing because when I see the length of the ArrayConnection, it is 0.

    I'm Tournai on the debugging logs and see the 3 items returned. Do you have tips on how I can solve this problem?

    Is there somewhere in the configuration where I specify the Java class maps to ActionScript class B? I just deleted my corresponding ActionScript class and always the same newspapers. I suspect that the SDS does not know how to map the Java class in the ActionScript class so that it gives me an empty list and throws the results. Does this sound right? If there is some sort of automatic mapping, I was expecting to see an error in the log after I deleted the ActionScript class.

    Thank you
    Jamie

    [Flex] 18/05/2007 12:19:31.443 [DEBUG] [DataService.Transaction] committed trans
    action
    [Flex] 18/05/2007 12:19:31.443 [DEBUG] [Message.Data.fill] after calling a service:
    data service
    answer: Flex Message (flex.data.messages.SequencedMessage)
    sequenceId = 0
    sequenceSize = 3
    (no proxy sequence)
    clientId = null
    correlationId = null
    destination = company
    messageId = 7A2A0D8F-C32B-80BC-D593-4551B71320F1
    timestamp = 1179515971443
    timeToLive = 0
    body =
    [
    Company (companyId = 100, name = null, address = null, status = null, zip = null undue
    Try = null),
    Company (companyId = 101, name = null, address = null, status = null, zip = null undue
    Try = null),
    Company (companyId = 102, name = null, address = null, status = null, zip = null undue
    Try = null)
    ]

    I found the answer to my own question. It was just a race condition. You can not read the size of the ArrayCollection collection immediately. The list takes some time to complete.

  • In the face of error: expected collection item not found in payload

    Hello

    I use persistence for my MAF Application Accelerator.

    I have generated the DataControl by specifying the details of service rest via the Wizard "business of the CRG of Rest WebService object.

    Using the DataControl I dropped the iterator on my page as an af:listview

    When the page opens the service's get called but I am told error

    "Collection item 'Job' not found in payload expected.

    Please see the attached persistent mapping .xml.

    (I've highlighted the specific classmapping descriptor for which I am faced with the question.)

    I am also attaching the object of service payload remains below.

    I also checked the payloadelementname specified in the classmapping descriptor matches the name of the element in the payload. However, I still get the error.

    Please let me know if I'm missing out on anything.

    Massari

    ===================================================================================================================

    Persistent map file

    <? XML version = "1.0" encoding = "UTF-8"? >

    " < mobileObjectPersistence xmlns =" http://www.Oracle.com/Ateam/mobile/persistenceMapping "> "

    < classMappingDescriptor className = "teamup.mobile.model.ProjectsResponse" persisted = "true" > ""

    < className = "teamup.mobile.model.service.ProjectsResponseService" autoIncrementPrimaryKey = "true" crudServiceClass

    localPersistenceManager = "oracle.ateam.sample.mobile.v2.persistence.manager.DBPersistenceManager"

    remotePersistenceManager = "oracle.ateam.sample.mobile.v2.persistence.manager.RestJSONPersistenceManager"

    remoteReadInBackground = "true" remoteWriteInBackground = "true".

    showWebServiceInvocationErrors = 'false' autoQuery = "true" / >

    < table name = "PROJECTS_RESPONSE" >

    < name primaryKeyColumn = "Project" / >

    < /table >

    < attributeMappings >

    < directMapping attributeName = "projectId" payloadAttributeName = "ProjectId" columnName = "project".

    columnDataType = "NUMERIC" required = "true" persisted = "true" = "java.math.BigDecimal" javaType

    keyAttribute = "true" / >

    < directMapping attributeName = "projectName" payloadAttributeName = "ProjectName" columnName = 'PROJECT_NAME '.

    columnDataType = "VARCHAR" required = "false" persisted = "true" = "java.lang.String" javaType

    keyAttribute = "false" / >

    < directMapping attributeName = "description" payloadAttributeName = "Description" columnName = "DESCRIPTION".

    columnDataType = "VARCHAR" required = "false" persisted = "true" = "java.lang.String" javaType

    keyAttribute = "false" / >

    < directMapping attributeName = "activeFlag' payloadAttributeName = 'ActiveFlag" columnName = "ACTIVE_FLAG."

    columnDataType = "VARCHAR" required = "false" persisted = "true" = "java.lang.String" javaType

    keyAttribute = "false" / >

    < attributeName = "lastUpdatedBy' payloadAttributeName ="LastUpdatedBy"directMapping

    columnName = "LAST_UPDATED_BY" columnDataType = "VARCHAR" required = "false" persisted = 'true '.

    javaType = "java.lang.String" keyAttribute = "false" / > "

    < attributeName = "lastUpdateDate" payloadAttributeName = "LastUpdateDate" directMapping

    columnName = "LAST_UPDATE_DATE" columnDataType = "VARCHAR" required = "false" persisted = 'true '.

    javaType = "java.lang.String" keyAttribute = "false" / > "

    < / attributeMappings >

    <>methods

    < findAllMethod uri connectionName = "/ projects/getprojects/projects / {username}" = "MyTask" requestType = 'GET '.

    warranty = "false" sendDataObjectAsPayload = "false" deleteLocalRows = "true".

    payloadElementName = "ProjectsResponse" >

    < name headerParameter = "Content-Type" value = "application/json" / >

    < name of the parameter = "userId" value = "#{pageFlowScope.userId}" valueProvider = 'ELExpression' "

    dataObjectAttribute = 'projectId' pathParam = "true" / >

    < / findAllMethod >

    < / methods >

    < / classMappingDescriptor >

    < classMappingDescriptor className = "teamup.mobile.model.TeamMember" persisted = "true" > ""

    < className = "teamup.mobile.model.service.TeamMemberService" autoIncrementPrimaryKey = "true" crudServiceClass

    localPersistenceManager = "oracle.ateam.sample.mobile.v2.persistence.manager.DBPersistenceManager"

    remotePersistenceManager = "oracle.ateam.sample.mobile.v2.persistence.manager.RestJSONPersistenceManager"

    remoteReadInBackground = "true" remoteWriteInBackground = "true".

    showWebServiceInvocationErrors = 'false' autoQuery = "true" / >

    < table name = "TEAM_MEMBER" >

    < name primaryKeyColumn = "USER_ID" / >

    < /table >

    < attributeMappings >

    < directMapping attributeName = "userId" payloadAttributeName = "USER_ID" columnName = 'USER_ID '.

    columnDataType = "NUMERIC" required = "true" persisted = "true" = "java.math.BigDecimal" javaType

    keyAttribute = "true" / >

    < directMapping attributeName = "userName" payloadAttributeName = "Username" columnName = 'user_name '.

    columnDataType = "VARCHAR" required = "false" persisted = "true" = "java.lang.String" javaType

    keyAttribute = "false" / >

    < attributeName = "projectTeamMemberId" payloadAttributeName = "PROJECT_TEAM_MEMBER_ID" directMapping

    columnName = "PROJECT_TEAM_MEMBER_ID" columnDataType = "NUMERIC" required = "false".

    has persisted = "true" javaType = "java.math.BigDecimal" keyAttribute = "false" / > "

    < directMapping attributeName = "lastName", payloadAttributeName = "Name" columnName = "name".

    columnDataType = "VARCHAR" required = "false" persisted = "true" = "java.lang.String" javaType

    keyAttribute = "false" / >

    < directMapping attributeName = "firstName" payloadAttributeName = "First name" columnName = "first name".

    columnDataType = "VARCHAR" required = "false" persisted = "true" = "java.lang.String" javaType

    keyAttribute = "false" / >

    < directMapping attributeName = "projectId" payloadAttributeName = "Project" columnName = "project".

    columnDataType = "VARCHAR" required = "false" persisted = "true" = "java.lang.String" javaType

    keyAttribute = "false" / >

    < / attributeMappings >

    <>methods

    < findAllMethod uri connectionName = "/ user/getteammember/members / {projectId}" = "MyTask" requestType = 'GET '.

    warranty = "false" sendDataObjectAsPayload = "false" deleteLocalRows = "true".

    payloadElementName = "TeamMember" >

    < name headerParameter = "Content-Type" value = "application/json" / >

    < name of the parameter = value = "#{pageFlowScope.projectId"projectId"}" valueProvider = 'ELExpression' "

    pathParam = "true" / >

    < / findAllMethod >

    < / methods >

    < / classMappingDescriptor >

    < className = classMappingDescriptor "teamup.mobile.model.Task ' persisted 'true' orderBy = 'START_DATE' = >" "

    < className = "teamup.mobile.model.service.TaskService" autoIncrementPrimaryKey = "true" crudServiceClass

    localPersistenceManager = "oracle.ateam.sample.mobile.v2.persistence.manager.DBPersistenceManager"

    remotePersistenceManager = "oracle.ateam.sample.mobile.v2.persistence.manager.RestJSONPersistenceManager"

    remoteReadInBackground = "true" remoteWriteInBackground = "true".

    showWebServiceInvocationErrors = 'false' autoQuery = "true" / >

    < table name = "TASK" >

    < name primaryKeyColumn = "ACTIVITY_ID" / >

    < /table >

    < attributeMappings >

    < directMapping attributeName = "activityId" payloadAttributeName = "ACTIVITY_ID" columnName = "ACTIVITY_ID.

    columnDataType = "NUMERIC" required = "true" persisted = "true" = "java.math.BigDecimal" javaType

    keyAttribute = "true" / >

    < directMapping attributeName = "projectid" payloadAttributeName = "PROJECTID" columnName = "PROJECTID".

    columnDataType = "NUMERIC" required = "false" persisted = "true" = "java.math.BigDecimal" javaType

    keyAttribute = "false" / >

    < directMapping attributeName = "activityName" payloadAttributeName = "ACTIVITY_NAME" columnName = "ACTIVITY_NAME."

    columnDataType = "VARCHAR" required = "false" persisted = "true" = "java.lang.String" javaType

    keyAttribute = "false" / >

    < directMapping attributeName = "description" payloadAttributeName = "DESCRIPTION" columnName = "DESCRIPTION".

    columnDataType = "VARCHAR" required = "false" persisted = "true" = "java.lang.String" javaType

    keyAttribute = "false" / >

    < attributeName = "parentActivityId" payloadAttributeName = "PARENT_ACTIVITY_ID" directMapping

    columnName = "PARENT_ACTIVITY_ID" columnDataType = "VARCHAR" required = "false" persisted = 'true '.

    javaType = "java.lang.String" keyAttribute = "false" / > "

    < directMapping attributeName = 'status' payloadAttributeName = 'STATUS' columnName = 'STATUS '.

    columnDataType = "VARCHAR" required = "false" persisted = "true" = "java.lang.String" javaType

    keyAttribute = "false" / >

    < directMapping attributeName = "priority" payloadAttributeName = "PRIORITY" columnName = "PRIORITΘ."

    columnDataType = "VARCHAR" required = "false" persisted = "true" = "java.lang.String" javaType

    keyAttribute = "false" / >

    < attributeName = "percentageComplete" payloadAttributeName = "PERCENTAGE_COMPLETE" directMapping

    columnName = "PERCENTAGE_COMPLETE" columnDataType = "NUMERIC" required = "false" persisted = 'true '.

    javaType = "java.math.BigDecimal" keyAttribute = "false" / > "

    < directMapping attributeName = "startDate" payloadAttributeName = "START_DATE" columnName = "START_DATE".

    columnDataType = "VARCHAR" required = "false" persisted = "true" = "java.lang.String" javaType

    keyAttribute = "false" / >

    < directMapping attributeName = "endDate" payloadAttributeName = "End_date" columnName = "end_date".

    columnDataType = "VARCHAR" required = "false" persisted = "true" = "java.lang.String" javaType

    keyAttribute = "false" / >

    < directMapping attributeName = 'eta' payloadAttributeName = 'ETA' columnName = 'ETA' columnDataType = "VARCHAR".

    required = "false" persisted = "true" javaType = "java.lang.String" keyAttribute = "false" / > "

    < attributeName = "estimatedHours" payloadAttributeName directMapping = "ESTIMATED_HOURS".

    columnName = "ESTIMATED_HOURS" columnDataType = "NUMERIC" required = "false" persisted = 'true '.

    javaType = "java.math.BigDecimal" keyAttribute = "false" / > "

    < attributeName = "actualHours" payloadAttributeName = "ACTUAL_HOURS" columnName directMapping = "ACTUAL_HOURS".

    columnDataType = "VARCHAR" required = "false" persisted = "true" = "java.lang.String" javaType

    keyAttribute = "false" / >

    < directMapping attributeName = "ownerUserId" payloadAttributeName = 'OWNER_USER_ID' columnName = 'OWNER_USER_ID '.

    columnDataType = "NUMERIC" required = "false" persisted = "true" = "java.math.BigDecimal" javaType

    keyAttribute = "false" / >

    < directMapping attributeName = "createdBy" payloadAttributeName = 'CREATED_BY' columnName = 'CREATED_BY '.

    columnDataType = "VARCHAR" required = "false" persisted = "true" = "java.lang.String" javaType

    keyAttribute = "false" / >

    < directMapping attributeName = "creationDate" payloadAttributeName = 'CREATION_DATE' columnName = 'CREATION_DATE '.

    columnDataType = "VARCHAR" required = "false" persisted = "true" = "java.lang.String" javaType

    keyAttribute = "false" / >

    < attributeName = "lastUpdatedBy" payloadAttributeName = "LAST_UPDATED_BY" directMapping

    columnName = "LAST_UPDATED_BY" columnDataType = "VARCHAR" required = "false" persisted = 'true '.

    javaType = "java.lang.String" keyAttribute = "false" / > "

    < attributeName = "lastUpdateDate" payloadAttributeName = "LAST_UPDATE_DATE" directMapping

    columnName = "LAST_UPDATE_DATE" columnDataType = "VARCHAR" required = "false" persisted = 'true '.

    javaType = "java.lang.String" keyAttribute = "false" / > "

    < attributeName = 'comments' payloadAttributeName = 'COMMENTS' columnName directMapping = 'COMMENTS '.

    columnDataType = "VARCHAR" required = "false" persisted = "true" = "java.lang.String" javaType

    keyAttribute = "false" / >

    < attributeName = "discussionCount" payloadAttributeName = "DISCUSSION_COUNT" directMapping

    columnName = "DISCUSSION_COUNT" columnDataType = "NUMERIC" required = "false" persisted = 'true '.

    javaType = "java.math.BigDecimal" keyAttribute = "false" / > "

    < directMapping attributeName = "favoriteFlag" payloadAttributeName = "FAVORITE_FLAG" columnName = "FAVORITE_FLAG."

    columnDataType = "VARCHAR" required = "false" persisted = "true" = "java.lang.String" javaType

    keyAttribute = "false" / >

    < attributeName = "taskAssignment" payloadAttributeName = "TaskAssignment" oneToManyMapping

    referenceClassName = "teamup.mobile.model.TaskAssignment" sendAsArrayIfOnlyOneEntry = "true" > "

    < foreignKeyColumnReference sourceTable = sourceColumn "TASK_ASSIGNMENT" = "TASK_ACTIVITY_ID."

    targetTable = "TASK" targetColumn = "ACTIVITY_ID" / >

    < / oneToManyMapping >

    < attributeName = "discussion oneToManyMapping."

    accessorMethod = "/ projects/getdiscussion/activity/discussion / {username} / {projectId} / {TaskId} / {parentDiscId} '"

    referenceClassName = "teamup.mobile.model.Discussion" sendAsArrayIfOnlyOneEntry = "true" > "

    < foreignKeyColumnReference sourceTable = "DISCUSSION" sourceColumn = "ACTIVITY_ID" targetTable = "TASK".

    targetColumn = "ACTIVITY_ID" / >

    < foreignKeyColumnReference sourceTable = "DISCUSSION" sourceColumn = "Project" targetTable = "TASK".

    targetColumn = "PROJECTID" / >

    < / oneToManyMapping >

    < / attributeMappings >

    <>methods

    < findAllMethod uri = "newgettasks/projects / / projects/activities / {username}" connectionName = "MyTask" "

    requestType = 'GET' guaranteed = "false" sendDataObjectAsPayload = "false" deleteLocalRows = "true".

    payloadElementName = "Task" >

    < name headerParameter = "Content-Type" value = "application/json" / >

    < name of the parameter = "userId" value = "#{pageFlowScope.userId}" valueProvider = "ELExpression" pathParam = "true" / > "

    < / findAllMethod >

    < createMethod uri = "/ projects/postTask/activity" connectionName = "MyTask" requestType = 'POST' guaranteed = "false".

    sendDataObjectAsPayload = "true" payloadElementName = "Task" >

    < name headerParameter = "Content-Type" value = "application/json" / >

    < / createMethod >

    < updateMethod uri = "/ projects/putTask/activity" connectionName = "MyTask" requestType = 'PUT' secure = "false".

    sendDataObjectAsPayload = "true" payloadElementName = "Task" >

    < name headerParameter = "Content-Type" value = "application/json" / >

    < / updateMethod >

    < / methods >

    < / classMappingDescriptor >

    < classMappingDescriptor className = "teamup.mobile.model.TaskAssignment" persisted = "true" > ""

    < className = crudServiceClass "teamup.mobile.model.service.TaskService" autoIncrementPrimaryKey = "true" / > "

    < table name = "TASK_ASSIGNMENT" >

    < name primaryKeyColumn = "ASSIGNMENT_ID" / >

    < /table >

    < attributeMappings >

    < directMapping attributeName = "assignmentId" payloadAttributeName = "ASSIGNMENT_ID" columnName = "ASSIGNMENT_ID."

    columnDataType = "INTEGER" required = "true" persisted = "true" = "java.lang.Integer" javaType

    keyAttribute = "true" / >

    < attributeName = "projectTeamMemberId" payloadAttributeName = "PROJECT_TEAM_MEMBER_ID" directMapping

    columnName = "PROJECT_TEAM_MEMBER_ID" columnDataType = "NUMERIC" required = "false".

    has persisted = "true" javaType = "java.math.BigDecimal" keyAttribute = "false" / > "

    < directMapping attributeName = "startDate" payloadAttributeName = "START_DATE" columnName = "START_DATE".

    columnDataType = "VARCHAR" required = "false" persisted = "true" = "java.lang.String" javaType

    keyAttribute = "false" / >

    < directMapping attributeName = "endDate" payloadAttributeName = "End_date" columnName = "end_date".

    columnDataType = "VARCHAR" required = "false" persisted = "true" = "java.lang.String" javaType

    keyAttribute = "false" / >

    < directMapping attributeName = "createdBy" payloadAttributeName = 'CREATED_BY' columnName = 'CREATED_BY '.

    columnDataType = "VARCHAR" required = "false" persisted = "true" = "java.lang.String" javaType

    keyAttribute = "false" / >

    < directMapping attributeName = "creationDate" payloadAttributeName = 'CREATION_DATE' columnName = 'CREATION_DATE '.

    columnDataType = "VARCHAR" required = "false" persisted = "true" = "java.lang.String" javaType

    keyAttribute = "false" / >

    < attributeName = "lastUpdatedBy" payloadAttributeName = "LAST_UPDATED_BY" directMapping

    columnName = "LAST_UPDATED_BY" columnDataType = "VARCHAR" required = "false" persisted = 'true '.

    javaType = "java.lang.String" keyAttribute = "false" / > "

    < attributeName = "lastUpdateDate" payloadAttributeName = "LAST_UPDATE_DATE" directMapping

    columnName = "LAST_UPDATE_DATE" columnDataType = "VARCHAR" required = "false" persisted = 'true '.

    javaType = "java.lang.String" keyAttribute = "false" / > "

    < directMapping attributeName = "favoriteFlag" payloadAttributeName = "FAVORITE_FLAG" columnName = "FAVORITE_FLAG."

    columnDataType = "VARCHAR" required = "false" persisted = "true" = "java.lang.String" javaType

    keyAttribute = "false" / >

    < directMapping attributeName = "taskActivityId" columnName = "TASK_ACTIVITY_ID" columnDataType = "DIGITAL."

    required = "false" persisted = 'true' parentClass = "teamup.mobile.model.Task"

    parentAttributeName = "Activity ID" javaType = "java.math.BigDecimal" keyAttribute = "false" / > "

    < / attributeMappings >

    < methods / >

    < / classMappingDescriptor >

    < classMappingDescriptor className = "teamup.mobile.model.Discussion" persisted = "true" > ""

    < className = "teamup.mobile.model.service.DiscussionService" autoIncrementPrimaryKey = "true" crudServiceClass

    localPersistenceManager = "oracle.ateam.sample.mobile.v2.persistence.manager.DBPersistenceManager"

    remotePersistenceManager = "oracle.ateam.sample.mobile.v2.persistence.manager.RestJSONPersistenceManager"

    remoteReadInBackground = "true" remoteWriteInBackground = "true".

    showWebServiceInvocationErrors = 'false' autoQuery = "true" / >

    < table name 'DISCUSSION' = >

    < name primaryKeyColumn = "DISCUSSION_ID" / >

    < /table >

    < attributeMappings >

    < directMapping attributeName = 'discussionId' payloadAttributeName = "DISCUSSION_ID" columnName = "DISCUSSION_ID."

    columnDataType = "NUMERIC" required = "true" persisted = "true" = "java.math.BigDecimal" javaType

    keyAttribute = "true" / >

    < directMapping attributeName = "activityId" payloadAttributeName = "ACTIVITY_ID" columnName = "ACTIVITY_ID.

    columnDataType = "NUMERIC" required = "false" persisted = "true" = "java.math.BigDecimal" javaType

    keyAttribute = "false" / >

    < attributeName = "discussionDate" payloadAttributeName = "DISCUSSION_DATE" directMapping

    columnName = "DISCUSSION_DATE" columnDataType = "VARCHAR" required = "false" persisted = 'true '.

    javaType = "java.lang.String" keyAttribute = "false" / > "

    < directMapping attributeName = "userId" payloadAttributeName = "USER_ID" columnName = 'USER_ID '.

    columnDataType = "NUMERIC" required = "false" persisted = "true" = "java.math.BigDecimal" javaType

    keyAttribute = "true" / >

    < attributeName = "discussionMessage" payloadAttributeName = "DISCUSSION_MESSAGE" directMapping

    columnName = "DISCUSSION_MESSAGE" columnDataType = "VARCHAR" required = "false" persisted = 'true '.

    javaType = "java.lang.String" keyAttribute = "false" / > "

    < directMapping attributeName = "createdBy" payloadAttributeName = 'CREATED_BY' columnName = 'CREATED_BY '.

    columnDataType = "VARCHAR" required = "false" persisted = "true" = "java.lang.String" javaType

    keyAttribute = "false" / >

    < directMapping attributeName = "creationDate" payloadAttributeName = 'CREATION_DATE' columnName = 'CREATION_DATE '.

    columnDataType = "VARCHAR" required = "false" persisted = "true" = "java.lang.String" javaType

    keyAttribute = "false" / >

    < attributeName = "lastUpdatedBy" payloadAttributeName = "LAST_UPDATED_BY" directMapping

    columnName = "LAST_UPDATED_BY" columnDataType = "VARCHAR" required = "false" persisted = 'true '.

    javaType = "java.lang.String" keyAttribute = "false" / > "

    < attributeName = "lastUpdateDate" payloadAttributeName = "LAST_UPDATE_DATE" directMapping

    columnName = "LAST_UPDATE_DATE" columnDataType = "VARCHAR" required = "false" persisted = 'true '.

    javaType = "java.lang.String" keyAttribute = "false" / > "

    < directMapping attributeName = "projectId" payloadAttributeName = "Project" columnName = "project".

    columnDataType = "VARCHAR" required = "false" persisted = "true" = "java.lang.String" javaType

    keyAttribute = "false" / >

    < attributeName = "parentDiscussionId" payloadAttributeName = "PARENT_DISCUSSION_ID" directMapping

    columnName = "PARENT_DISCUSSION_ID" columnDataType = "NUMERIC" required = "false" persisted = 'true '.

    javaType = "java.math.BigDecimal" keyAttribute = "false" / > "

    < directMapping attributeName = "firstName" payloadAttributeName = "First name" columnName = "first name".

    columnDataType = "VARCHAR" required = "false" persisted = "true" = "java.lang.String" javaType

    keyAttribute = "false" / >

    < directMapping attributeName = "lastName", payloadAttributeName = "Name" columnName = "name".

    columnDataType = "VARCHAR" required = "false" persisted = "true" = "java.lang.String" javaType

    keyAttribute = "false" / >

    < attributeName = "discussionAssignment" payloadAttributeName = "DiscussionAssignment" oneToManyMapping

    referenceClassName = "teamup.mobile.model.DiscussionAssignment"

    sendAsArrayIfOnlyOneEntry = "true" >

    < foreignKeyColumnReference sourceTable = sourceColumn "DISCUSSION_ASSIGNMENT" = "DISCUSSION_ID."

    targetTable = "DISCUSSION" targetColumn = "DISCUSSION_ID" / >

    < foreignKeyColumnReference sourceTable = sourceColumn 'DISCUSSION_ASSIGNMENT' = 'USER_ID '.

    targetTable = "DISCUSSION" targetColumn = 'USER_ID' / >

    < / oneToManyMapping >

    < / attributeMappings >

    <>methods

    < findAllMethod uri = "/ projects/getdiscussion/activity/discussion / {username} / {projectId} / {TaskId} / {parentDiscId} '"

    connectionName = "MyTask" requestType = 'GET' guaranteed = "false" sendDataObjectAsPayload = "false".

    deleteLocalRows = "true" payloadElementName = "Discussion" >

    < name of the parameter = "userId" value = "#{pageFlowScope.userId}" valueProvider = "ELExpression" pathParam = "true" / > "

    < name of the parameter = value = "#{pageFlowScope.projectId"projectId"}" valueProvider = 'ELExpression' "

    pathParam = "true" / >

    < name of the parameter = "TaskId" value = "#{pageFlowScope.activityId}" valueProvider = 'ELExpression' "

    pathParam = "true" / >

    < name of the parameter = value = "#{pageFlowScope.parentDiscId"parentDiscId"}" valueProvider = 'ELExpression' "

    pathParam = "true" / >

    < / findAllMethod >

    < name findAllInParentMethod = 'debate '.

    URI = "projects, getdiscussion, activity, discussion / {username} / {projectId} / {TaskId} / {parentDiscId} '"

    connectionName = "MyTask" requestType = 'GET' guaranteed = "false".

    sendDataObjectAsPayload = "false" payloadElementName = "Discussion" >

    < name of the parameter = "userId" value = "#{pageFlowScope.userId}" valueProvider = "ELExpression" pathParam = "true" / > "

    < name of the parameter = value = "#{pageFlowScope.projectId"projectId"}" valueProvider = 'ELExpression' "

    pathParam = "true" / >

    < name of the parameter = "TaskId" value = "#{pageFlowScope.activityId}" valueProvider = 'ELExpression' "

    pathParam = "true" / >

    < name of the parameter = value = "#{pageFlowScope.parentDiscId"parentDiscId"}" valueProvider = 'ELExpression' "

    pathParam = "true" / >

    < / findAllInParentMethod >

    < createMethod uri = "/ projects/newpostdiscussion/discussion" connectionName = "MyTask" requestType = "POST".

    warranty = "false" sendDataObjectAsPayload = "true" payloadElementName = "Discussion" >

    < name headerParameter = "Content-Type" value = "application/json" / >

    < / createMethod >

    < updateMethod uri = "/ projects/putdiscussion/discussion" connectionName = "MyTask" requestType = "PUT".

    warranty = "false" sendDataObjectAsPayload = "true" payloadElementName = "Discussion" >

    < name headerParameter = "Content-Type" value = "application/json" / >

    < / updateMethod >

    < / methods >

    < / classMappingDescriptor >

    < classMappingDescriptor className = "teamup.mobile.model.DiscussionAssignment" persisted = "true" > ""

    < className = crudServiceClass "teamup.mobile.model.service.DiscussionService" autoIncrementPrimaryKey = "true" / > "

    < table name = "DISCUSSION_ASSIGNMENT" >

    < name primaryKeyColumn = "DISCUSSION_ID" / >

    < name primaryKeyColumn = "USER_ID" / >

    < /table >

    < attributeMappings >

    < directMapping attributeName = 'discussionId' payloadAttributeName = "DISCUSSION_ID" columnName = "DISCUSSION_ID."

    columnDataType = "NUMERIC" required = "true" persisted = "true" = "java.math.BigDecimal" javaType

    keyAttribute = "true" / >

    < directMapping attributeName = "userId" payloadAttributeName = "USER_ID" columnName = 'USER_ID '.

    columnDataType = "NUMERIC" required = "false" persisted = "true" = "java.math.BigDecimal" javaType

    keyAttribute = "true" / >

    < directMapping attributeName = "likedFlag" payloadAttributeName = "LIKED_FLAG" columnName = "LIKED_FLAG."

    columnDataType = "VARCHAR" required = "false" persisted = "true" = "java.lang.String" javaType

    keyAttribute = "false" / >

    < / attributeMappings >

    < methods / >

    < / classMappingDescriptor >

    < classMappingDescriptor className = "teamup.mobile.model.Search" persisted = "true" > ""

    "< crudServiceClass className ="teamup.mobile.model.service.SearchService"autoIncrementPrimaryKey ="true"localPersistenceManager =" oracle.ateam.sample.mobile.v2.persistence.manager.DBPersistenceManager "remotePersistenceManager =" oracle.ateam.sample.mobile.v2.persistence.manager.RestXMLPersistenceManager"remoteReadInBackground ="true"remoteWriteInBackground ="true"showWebServiceInvocationErrors ="true"autoQuery ="true"/ >"

    < table name = "SEARCH" >

    < name primaryKeyColumn = "ACTIVITY_ID" / >

    < /table >

    < attributeMappings >

    < directMapping attributeName = "activityId" payloadAttributeName = "ACTIVITY_ID" columnName = "ACTIVITY_ID" columnDataType = "NUMERIC" required = "true" = "true" javaType = persisted "java.math.BigDecimal" keyAttribute = "true" / > "

    < directMapping attributeName = "projectid" payloadAttributeName = "PROJECTID" columnName = "PROJECTID" columnDataType = "NUMERIC" required = "false" persisted = "true" javaType = "java.math.BigDecimal" keyAttribute = "false" / > "

    < directMapping attributeName = "activityName" payloadAttributeName = "ACTIVITY_NAME" columnName = "ACTIVITY_NAME" columnDataType = "VARCHAR" required = "false" persisted = "true" javaType = "java.lang.String" keyAttribute = "false" / > "

    < directMapping attributeName = "description" payloadAttributeName = "DESCRIPTION" columnName = "DESCRIPTION" columnDataType = "VARCHAR" required = "false" persisted = "true" javaType = "java.lang.String" keyAttribute = "false" / > "

    < directMapping attributeName = "parentActivityId" payloadAttributeName = "PARENT_ACTIVITY_ID" columnName = "PARENT_ACTIVITY_ID" columnDataType = "VARCHAR" required = "false" persisted = "true" javaType = "java.lang.String" keyAttribute = "false" / > "

    < directMapping attributeName = 'status' payloadAttributeName = 'STATUS' columnName = 'STATUS' columnDataType = "VARCHAR" required = "false" persisted = "true" javaType = "java.lang.String" keyAttribute = "false" / > "

    < directMapping attributeName = "priority" payloadAttributeName = "PRIORITY" columnName = "PRIORITY" columnDataType = "VARCHAR" required = "false" persisted = "true" javaType = "java.lang.String" keyAttribute = "false" / > "

    < directMapping attributeName = "percentageComplete" payloadAttributeName = "PERCENTAGE_COMPLETE" columnName = "PERCENTAGE_COMPLETE" columnDataType = "NUMERIC" required = "false" persisted = "true" javaType = "java.math.BigDecimal" keyAttribute = "false" / > "

    < directMapping attributeName = "startDate" payloadAttributeName = "START_DATE" columnName = "START_DATE" columnDataType = "VARCHAR" required = "false" persisted = "true" javaType = "java.lang.String" keyAttribute = "false" / > "

    < directMapping attributeName = "endDate" payloadAttributeName = "End_date" columnName = "End_date" columnDataType = "VARCHAR" required = "false" persisted = "true" javaType = "java.lang.String" keyAttribute = "false" / > "

    < directMapping attributeName = 'eta' payloadAttributeName = 'ETA' columnName = 'ETA' columnDataType = "VARCHAR" required = "false" persisted = "true" javaType = "java.lang.String" keyAttribute = "false" / > "

    < directMapping attributeName = "estimatedHours" payloadAttributeName = "ESTIMATED_HOURS" columnName = "ESTIMATED_HOURS" columnDataType = "VARCHAR" required = "false" persisted = "true" javaType = "java.lang.String" keyAttribute = "false" / > "

    < directMapping attributeName = "actualHours" payloadAttributeName = "ACTUAL_HOURS" columnName = "ACTUAL_HOURS" columnDataType = "VARCHAR" required = "false" persisted = "true" javaType = "java.lang.String" keyAttribute = "false" / > "

    < directMapping attributeName = "ownerUserId" payloadAttributeName = 'OWNER_USER_ID' columnName = 'OWNER_USER_ID' columnDataType = "NUMERIC" required = "false" persisted = "true" javaType = "java.math.BigDecimal" keyAttribute = "false" / > "

    < directMapping attributeName = "createdBy" payloadAttributeName = 'CREATED_BY' columnName = 'CREATED_BY' columnDataType = "VARCHAR" required = "false" persisted = "true" javaType = "java.lang.String" keyAttribute = "false" / > "

    < directMapping attributeName = "creationDate" payloadAttributeName = 'CREATION_DATE' columnName = 'CREATION_DATE' columnDataType = "VARCHAR" required = "false" persisted = "true" javaType = "java.lang.String" keyAttribute = "false" / > "

    < directMapping attributeName = "lastUpdatedBy" payloadAttributeName = "LAST_UPDATED_BY" columnName = "LAST_UPDATED_BY" columnDataType = "VARCHAR" required = "false" persisted = "true" javaType = "java.lang.String" keyAttribute = "false" / > "

    < directMapping attributeName = "lastUpdateDate" payloadAttributeName = "LAST_UPDATE_DATE" columnName = "LAST_UPDATE_DATE" columnDataType = "VARCHAR" required = "false" persisted = "true" javaType = "java.lang.String" keyAttribute = "false" / > "

    < directMapping attributeName = "discussionCount" payloadAttributeName = "DISCUSSION_COUNT" columnName = "DISCUSSION_COUNT" columnDataType = "NUMERIC" required = "false" persisted = "true" javaType = "java.math.BigDecimal" keyAttribute = "false" / > "

    < directMapping attributeName = "comments" payloadAttributeName = "COMMENTS" columnName = "COMMENTS" columnDataType = "VARCHAR" required = "false" persisted = "true" javaType = "java.lang.String" keyAttribute = "false" / > "

    < / attributeMappings >

    <>methods

    < findAllMethod uri = "/ projects/searchtasks/search/spot / {id} / {id1} / {id2} / {id3}" connectionName = "MyTask" requestType = 'GET' guaranteed = "false" sendDataObjectAsPayload = "false" deleteLocalRows = "true" payloadElementName = "Task" > "

    < name headerParameter = "Content-Type" value = "application/json" / >

    < name of the parameter = "id" value = "#{pageFlowScope.searchId1}" valueProvider = "ELExpression" pathParam = "true" / > "

    < name of the parameter = "id1" value = "#{pageFlowScope.searchId2}" valueProvider = "ELExpression" pathParam = "true" / > "

    < name of the parameter = "id2" value = "#{pageFlowScope.searchId3}" valueProvider = "ELExpression" pathParam = "true" / > "

    < name of the parameter = "id3" value = "#{pageFlowScope.searchId4}" valueProvider = "ELExpression" pathParam = "true" / > "

    < / findAllMethod >

    < / methods >

    < / classMappingDescriptor >

    < className = "oracle.ateam.sample.mobile.v2.persistence.service.DataSynchAction" classMappingDescriptor

    dateFormat "dd-MMM-yyyy" = >

    < table name = "DATA_SYNCH_ACTIONS" >

    < name primaryKeyColumn = "SERVICE_CLASS_NAME" / >

    < name primaryKeyColumn = "ID" / >

    < /table >

    < attributeMappings >

    < directMapping attributeName = "id" columnName = "ID" columnDataType = "NUMERIC" required = "true".

    javaType = "java.lang.Integer" keyAttribute = "true" / > "

    < directMapping attributeName = "serviceClass" columnName = "SERVICE_CLASS_NAME" columnDataType = "VARCHAR".

    required = "true" javaType = "java.lang.String" keyAttribute = "true" / > "

    < directMapping attributeName = "entityClassString" columnName = "ENTITY_CLASS_NAME" columnDataType = "VARCHAR".

    javaType="java.lang.String"/ >

    < directMapping attributeName = "entityAsJSONString" columnName = "JSON_PAYLOAD" columnDataType = "VARCHAR".

    javaType="java.lang.String"/ >

    < directMapping attributeName = "action" columnName = "ACTION" columnDataType = "VARCHAR".

    javaType="java.lang.String"/ >

    < directMapping attributeName = "dateCreated" columnName = 'DATE_CREATED' columnDataType = 'DATE '.

    javaType="java.util.Date"/ >

    < directMapping attributeName = "lastSynchAttempt" columnName = "DATE_LAST_SYNCH" columnDataType = "DATE".

    javaType="java.util.Date"/ >

    < directMapping attributeName = "lastSynchError" columnName = "LAST_SYNCH_ERROR" columnDataType = "VARCHAR".

    javaType="java.lang.String"/ >

    < directMapping attributeName = "customMethodName" columnName = "CUSTOM_METHOD_NAME" columnDataType = "VARCHAR".

    javaType="java.lang.String"/ >

    < / attributeMappings >

    < / classMappingDescriptor >

    < / mobileObjectPersistence >

    ===========================================================================================================================

    Rest Service payload

    {

    "Task": [{}

    "ACTIVITY_ID": 426.

    "PROJECTID": 3.

    "ACTIVITY_NAME': 'solve the performance issue."

    "DESCRIPTION': 'solve the performance issue."

    'PARENT_ACTIVITY_ID': null,

    "STATUS': 'IN_PROGRESS."

    'PRIORITY': null,

    'PERCENTAGE_COMPLETE': 50,.

    "START_DATE": null;

    "END_DATE": "2015-04 - 05 T 23: 55:47.000 - 04:00", ".

    'ETA': null,

    'ESTIMATED_HOURS': null,

    'ACTUAL_HOURS': null,

    'OWNER_USER_ID': 8,.

    'CREATED_BY': 'elilani ',.

    'CREATION_DATE': ' 2015-04 - 10 T 19: 13:49.000 - 04:00 ",".

    "LAST_UPDATED_BY": "elilani",

    "LAST_UPDATE_DATE": "2015-04 - 10 T 19: 13:49.000 - 04:00", ".

    'DISCUSSION_COUNT': 1,.

    "OBSERVATIONS": "poor response time during the updating of the homepage and create the task.»

    "TaskAssignment": [{}

    'ASSIGNMENT_ID': 962,.

    "PROJECT_TEAM_MEMBER_ID": 3.

    "START_DATE": null;

    "End_date": null;

    'CREATED_BY': 'elilani ',.

    'CREATION_DATE': ' 2015-04 - 10 T 19: 13:49.000 - 04:00 ",".

    "LAST_UPDATED_BY": "elilani",

    "LAST_UPDATE_DATE": "2015-04 - 10 T 19: 13:49.000 - 04:00", ".

    'FAVORITE_FLAG': null

    }, {

    'ASSIGNMENT_ID': 960,.

    "PROJECT_TEAM_MEMBER_ID": 3.

    "START_DATE": null;

    "End_date": null;

    'CREATED_BY': 'elilani ',.

    'CREATION_DATE': ' 2015-04 - 10 T 19: 13:49.000 - 04:00 ",".

    "LAST_UPDATED_BY": "elilani",

    "LAST_UPDATE_DATE": "2015-04 - 10 T 19: 13:49.000 - 04:00", ".

    'FAVORITE_FLAG': null

    }, {

    'ASSIGNMENT_ID': 961.

    'PROJECT_TEAM_MEMBER_ID': 2.

    "START_DATE": null;

    "End_date": null;

    'CREATED_BY': 'elilani ',.

    'CREATION_DATE': ' 2015-04 - 10 T 19: 13:49.000 - 04:00 ",".

    "LAST_UPDATED_BY": "elilani",

    "LAST_UPDATE_DATE": "2015-04 - 10 T 19: 13:49.000 - 04:00", ".

    'FAVORITE_FLAG': null

    } ]

    } ]

    }

    ----------------------------------------------------------------------------------------------------------------------------

    Massari,

    The data object to "Seek", you have misconfigured persistence distance Manager:

    remotePersistenceManager = "oracle.ateam.sample.mobile.v2.persistence.manager. RestXMLPersistenceManager".

    This should be

    remotePersistenceManager = "oracle.ateam.sample.mobile.v2.persistence.manager. RestJSONPersistenceManager".

    My guess is that when running the wizard, you have forgotten initially set the Content Type application/JSON and when the wizard runs the servce REST to inspect the payload, payload has been returned in XML format. Would this be possible?

    Also note that a new version of AMPA is available, see this blog post.

    Steven Davelaar,

    Oracle Mobile & Cloud A-team.

  • Problem adding video to Captivate slide

    Hello

    I'm having a problem adding a video file FLV to Captivate. Basically, after that I have published on a SWF file, the video does not appear on the slide at all. It's just empty.

    After searching for a bit, I found that the file FLV MUST include * metadata *.

    However, I added medatada with VLC Media Player, and it still shows the same behavior. There's a certain * amount * metadata? Is there a * type * of metadata without which the video not displayed?

    Adobe help thread talking about what we call the ' Kit Flash video '-which is a stand-alone product or one extension of another product? Is it free? Are there any other free alternatives?

    I'm just very confused.

    Thank you!

    I ended up answering my own question. But just in case this helps someone else, I'll post my solution.

    Essentially, I just re-created the video in MP4 format. Then I used MetaZ (for Mac) to write metadata in the video. Finally, I imported the video as an object and when I posted the video, Captivate it transmutes to the FLV format needed.

    The video is now displayed correctly.

Maybe you are looking for