Unable to put new data using persistence mobile A-team

Hello

We have a requirement to create and publish documents in the same page as cat whatsapp. The works of post data beautiful that there existing data. If no data is present, and I'm trying to display the data for the first time, I get an error like "cannot force class oracle.adfmf.util.GenericVirtualType for teamup.mobile.model.Discussion" and of the class he debugging point no method service events increased saveDiscussion. "»

Button create I have following steps:

1. action listener - #{bindings. Create.Execute}

2. set the headset to property - params all service

3. action listener - #{bindings.saveDiscussion.execute}

saveDiscussion accepts input param - #{bindings.discussionIterator.currentRow.dataProvider}

My guess is currently stored is zero first. But I do not know how to set the current row in the iterator on click of a button. Can you please help?

More details are the following:

REST service: / projects/getdiscussion/activity/discussion / {username} / {projectId} / {TaskId}

Parameters defined before you enter the page:

username: 1

projectId: #{pageFlowScope.projectId}

tasktId: #{pageFlowScope.activityId}

Page 1 we are displaying Master records, click which I'm setting variable values of the child feature of pageFlowscope and displaying records list of the child in Page2. . Details of reference are the following:

Persistence - mapping.xml:

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

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

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

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

< table name = "PROJECTS_RESPONSE" >

< name primaryKeyColumn = "Project" / >

< /table >

< attributeMappings >

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

< directMapping attributeName = "projectName" payloadAttributeName = "ProjectName" columnName = "PROJECT_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 = "activeFlag' payloadAttributeName = 'ActiveFlag" columnName = "ACTIVE_FLAG" columnDataType = "VARCHAR" required = "false" persisted = "true" javaType = "java.lang.String" keyAttribute = "false" / > "

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

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

< / attributeMappings >

<>methods

< findAllMethod uri connectionName = "/ project/getprojects/projects/1" = "MyTask" requestType = 'GET' guaranteed = "false" sendDataObjectAsPayload = "false" deleteLocalRows = "true" payloadElementName = "ProjectsResponse" >

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

< / findAllMethod >

< / methods >

< / classMappingDescriptor >

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

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

< table name = "TEAM_MEMBER" >

< name primaryKeyColumn = "USER_ID" / >

< /table >

< attributeMappings >

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

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

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

< directMapping attributeName = "lastName", payloadAttributeName = "Name" columnName = "LAST_NAME" = "VARCHAR" required = "false" columnDataType persisted = "true" javaType = "java.lang.String" keyAttribute = "false" / > "

< directMapping attributeName = "firstName" payloadAttributeName = "First name" columnName = "Name" columnDataType = "VARCHAR" required = "false" persisted = "true" javaType = "java.lang.String" keyAttribute = "false" / > "

< / attributeMappings >

<>methods

< findAllMethod uri connectionName = "/ user/getteammember/members/1" = "MyTask" requestType = 'GET' guaranteed = "false" sendDataObjectAsPayload = "false" deleteLocalRows = "true" payloadElementName = "TeamMember" >

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

< / findAllMethod >

< / methods >

< / classMappingDescriptor >

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

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

< table name = "TASK" >

< name primaryKeyColumn = "ACTIVITY_ID" / >

< name primaryKeyColumn = "PROJECTID" / >

< /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 = "true" persisted = "true" javaType = "java.math.BigDecimal" keyAttribute = "true" / > "

< 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 = "NUMERIC" required = "false" persisted = "true" javaType = "java.math.BigDecimal" 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 = "comments" payloadAttributeName = "COMMENTS" columnName = "COMMENTS" 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 = "favoriteFlag" payloadAttributeName = "FAVORITE_FLAG" columnName = "FAVORITE_FLAG" columnDataType = "VARCHAR" required = "false" persisted = "true" javaType = "java.lang.String" keyAttribute = "false" / > "

< oneToManyMapping attributeName = "taskAssignment" payloadAttributeName = "TaskAssignment" referenceClassName = "teamup.mobile.model.TaskAssignment" sendAsArrayIfOnlyOneEntry = "true" > "

< foreignKeyColumnReference sourceTable = sourceColumn "TASK_ASSIGNMENT" = "TASK_ACTIVITY_ID" targetTable = "TASK" targetColumn = "ACTIVITY_ID" / >

< / oneToManyMapping >

' < attributeName = "discussion" accessorMethod = oneToManyMapping "/ projects/getdiscussion/activity/discussion / {username} / {projectId} / {TaskId}" referenceClassName = "teamup.mobile.model.Discussion" sendAsArrayIfOnlyOneEntry = "true" >

< foreignKeyColumnReference sourceTable = "DISCUSSION" sourceColumn = "ACTIVITY_ID" targetTable = "TASK" targetColumn = "ACTIVITY_ID" / >

< foreignKeyColumnReference sourceTable = "DISCUSSION" sourceColumn = "Project" = "TASK" = 'PROJECTID' targetColumn targetTable / >

< / 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" / >

< parameter name = value 'userId' = '1' valueProvider = 'LiteralValue"pathParam ="true"/ >

< / findAllMethod >

< createMethod uri connectionName = "/ projects/newposttask/activity" = "MyTask" requestType = 'POST' guaranteed = "false" sendDataObjectAsPayload = "true" payloadElementName = "Task" >

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

< / createMethod >

< updateMethod uri connectionName = "/ projects/newputtask/activity" = "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 = "NUMERIC" required = "true" = "true" javaType = persisted "java.math.BigDecimal" keyAttribute = "true" / > "

< directMapping attributeName = "projectTeamMemberId" payloadAttributeName = "PROJECT_TEAM_MEMBER_ID" columnName = "PROJECT_TEAM_MEMBER_ID" 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 = "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 = "favoriteFlag" payloadAttributeName = "FAVORITE_FLAG" columnName = "FAVORITE_FLAG" columnDataType = "VARCHAR" required = "false" persisted = "true" javaType = "java.lang.String" keyAttribute = "false" / > "

"< directMapping attributeName ="taskActivityId"columnName ="TASK_ACTIVITY_ID"columnDataType ="NUMERIC"required ="false"persisted = 'true' parentClass ="teamup.mobile.model.Task"parentAttributeName ="activityId"javaType =" java.math.BigDecimal "keyAttribute ="false"/ >

< / attributeMappings >

< methods / >

< / classMappingDescriptor >

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

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

< table name 'DISCUSSION' = >

< name primaryKeyColumn = "DISCUSSION_ID" / >

< /table >

< attributeMappings >

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

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

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

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

< directMapping attributeName = "discussionMessage" payloadAttributeName = "DISCUSSION_MESSAGE" 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" 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 = "projectId" payloadAttributeName = "Project" columnName = "Project" columnDataType = "NUMERIC" required = "false" persisted = "true" javaType = "java.math.BigDecimal" keyAttribute = "false" / > "

< / attributeMappings >

<>methods

< findAllMethod uri = "/ projects/getdiscussion/activity/discussion / {username} / {projectId} / {TaskId}" connectionName = "MyTask" requestType = 'GET' guaranteed = "false" sendDataObjectAsPayload = "false" deleteLocalRows = "true" payloadElementName = "Discussion" > "

< parameter name = value 'userId' = '1' valueProvider = 'LiteralValue"pathParam ="true"/ >

< name of the parameter = value = "#{pageFlowScope.projectId"projectId"}" valueProvider = "ELExpression" dataObjectAttribute = 'discussionId' pathParam = "true" / > "

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

< / findAllMethod >

< name findAllInParentMethod = "discussion" uri = "/ projects/getdiscussion/activity/discussion / {username} / {projectId} / {TaskId}" connectionName = "MyTask" requestType = 'GET' guaranteed = "false" sendDataObjectAsPayload = "false" payloadElementName = "Discussion" > "

< parameter name = value 'userId' = '1' valueProvider = 'LiteralValue"pathParam ="true"/ >

< parameter name = value 'projectId' = '1' valueProvider = 'LiteralValue"pathParam ="true"/ >

< parameter name = value "TaskId" = "176" valueProvider = "LiteralValue" pathParam = "true" / >

< / findAllInParentMethod >

< createMethod uri = "/ projects/newpostdiscussion/discussion" connectionName = "MyTask" requestType = 'POST' guaranteed = "false" sendDataObjectAsPayload = "true" payloadElementName = "Discussion" >

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

< / createMethod >

< / methods >

< / classMappingDescriptor >

< classMappingDescriptor className = "oracle.ateam.sample.mobile.v2.persistence.service.DataSynchAction" 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"/ >

< attributeName = "action" columnName = 'ACTION' columnDataType directMapping = 'VARCHAR' javaType="java.lang.String"/ >

< attributeName = "dateCreated" columnName directMapping = 'DATE_CREATED' columnDataType = 'DATE' javaType="java.util.Date"/ >

< attributeName = "lastSynchAttempt" columnName directMapping = "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 >

Page1:

< amx:commandLink id = "cl4" action = "toDiscussion".

Disabled = "false" >

"< amx:setPropertyListener from =" #{row.rowKey} "to =" #{pageFlowScope.rowKey} ".

ID = "spl8" / >

< amx:actionListener binding = "#{bindings.setCurrentRowWithKey.execute} '"

ID = "al3" / >

< amx:outputHtml id = "oh3" styleClass = "comment-fa fa fa - lg.

inlineStyle = "' color: #87CEFA;" / > "

< messageCount:badge id = "badge" class = "notification icon".

unread = "#{row." Bindings.discussionCount} "/ >"

< amx:setPropertyListener id = from = "#{row.activityId"spl5"} '"

to = "#{pageFlowScope.ActivityId}" type = "action" / > "

< amx:setPropertyListener id = from = "#{row.projectid"spl2"} '"

to = "#{pageFlowScope.ProjectId}" type = "action" / > "

< amx:actionListener binding = "#{bindings.findAllDiscussionRemote.execute} '"

ID = 'al5' / >

< / amx:commandLink >

Page 2 - ERROR is PRODUCT HERE:

< amx:commandLink id = "cl4" inlineStyle = "margin-left: 10px;" Width: auto; »

action = "Refresh" >

"< amx:image id = 'i1' source="/images/msg_sent.png ' inlineStyle = ' height: 32px; Width: 32px; "/ >

< amx:actionListener id = "al1" binding = "#{bindings." Create.Execute} "/ >"

< amx:actionListener id = binding="#{pageFlowScope.DiscussionsBean.setCurrentDate}"/ "al3" >

< amx:setPropertyListener id = "spl1" from = "1".

to="#{bindings.ProjectId.inputValue}"/ >

< amx:setPropertyListener id = from = "#{pageFlowScope.discussionMessage"spl5"} '"

to="#{bindings.discussionMessage.inputValue}"/ >

< amx:setPropertyListener id = to = "#{bindings.userId.inputValue"spl2"}" from = "1" / > "

< amx:actionListener id = binding="#{bindings.saveDiscussion.execute}"/ "al2" >

"" < amx:setPropertyListener id = "spl3" from = ""

to = "#{pageFlowScope.discussionMessage}" / >

< / amx:commandLink >

Please let me know if you need further information.

Thank you

Vignesh

Vignesh,

In this scenario, it is easier to add a custom "saveNewDiscussion" method to the service class that takes the text of discussion as a string argument.

Then you can drag and drop this method as a form on the page that will give you an input field text for the text of the discussion. The button you will get will call the method and the PSA on the text of the discussion.

The code for this method looks like this (I assume that your entity is named "Discussion"):

public void saveNewDiscussion (String text)

{

Discussion discussion = EntityUtils.getNewEntityInstance (Discussion.class);

discussion.setText (text);

saveDiscussion (discussion);

refreshEntityList (executeLocalFindAll ());

}

This method registers the new discussion and then refreshes the list of discussion by the first poll of the local SQLite database.

This avoids that your problems with the operation of creation and of the current line.

Steven Davelaar,

Oracle Mobile A-team.

Tags: Oracle Mobile

Similar Questions

  • Unable to display data from database using persistence mobile A-team

    Hello

    We use the accelerator of persistence for Mobile A-team with application of the MAF. We built the REST services based for CRUD operations on a table. We are unable to use the POST CREATE service by application of the MAF. We tried using saveTask and addTask data control methods it generates automatically. Although it is saved locally to the iterator of data control, it doesn't push the data from database. We tried to test the service REMAINS independent and works well.

    Can anyone help regarding if lack us measures in the same?

    Thank you

    Vignesh

    Vignesh,

    Indeed, there are two issues here:

    -the attributes of the payload are different

    -the structure of the payload is different, the GET request has an attribute "Task" that returns an array, the POST request submitting a single object through the attribute "taskDetails.

    By default, the accelerator of persistence assumes that the POST request has the same payload structure and attributes as the GET request that you used to 'discover' the data objects.

    However, you can easily change this as follows:

    -To add additional attributes required in the POST, you should restart the wizard REST-JSON directly access the data object attributes screen and click on the button 'add an attribute '. Add each attribute you need in the POST request and the attribute name to the value required in the POST request payload. No matter that this attribute of the payload does not exist in the payload GET, it will be ignored during extraction of the tasks.

    -To fix the second issue, you must change the persistence - mapping.xml:

    -go to the createMethod task

    -Remove the payloadElementName attribute

    -Add the payloadRowElementName attribute and set the value to "TaskDetails.

    It's a little strange that you post in order to get other attributes, it is there another resource GET that returns all attributes for a task?

    In addition, you cannot derive columns audit as created_by on the server-side? It's a bit unusual set these values at the level of the customer.

    Steven.

  • Unable to retrieve the data using self join

    I'm trying to find the time required to close a ticket. The ticket goes through different stages: NEW, INPROCESS, CLOSED, REOPENED. If the ticket is reopened so the next step would be INPROCESS and then CLOSED.

    The CC_TICKET_INFO table contains information on the last step of the ticket. Table CC_TICKET_HISTORY contains information on every step of the ticket.

    The challenge here is that if the ticket is reopened so it should be considered as 2 instances instead of 1.

    Trial of stages: NEW-INPROCESS-> CLOSE >

    Second instance of stages: REOPEND -> INPROCESS-> CLOSE.

    Following SQL is to generate the data:

    CREATE TABLE CC_TICKET_INFO

    (

    TICKET_ID VARCHAR2 (20 BYTE) NOT NULL

    TICKET_STATUS VARCHAR2 (60 BYTE)

    , created_date timestamp (6)

    , LAST_CHANGED timestamp (6)

    , ASSIGNED_TO VARCHAR2 (20)

    CONSTRAINT PK_CC_TICKET_INFO PRIMARY KEY

    (

    ticket_id

    )

    )

    CREATE TABLE CC_TICKET_HISTORY

    (

    TICKET_ID VARCHAR2 (20 BYTE) NOT NULL

    TICKET_STATUS VARCHAR2 (60 BYTE)

    , CREATED_DATE TIMESTAMP (6) NOT NULL

    ASSIGNED_TO VARCHAR2 (255 BYTE)

    CREATED_BY VARCHAR2 (60 BYTE)

    CONSTRAINT PK_CC_TICKET_HISTORY PRIMARY KEY

    (

    TICKET_ID

    CREATED_DATE

    )

    )

    insert into cc_ticket_history values ('D21207155', 'NEW', 6/28/2013-17:28:59 ', null, 'jsg - st');

    insert into cc_ticket_history values ('D21207155', 'INPROCESS', 6/28/2013-17:48:19 ', 'ah-eg","ah-eg");

    insert into cc_ticket_history values ('D21207155', 'CLOSED', 6/28/2013 18:54:23 ', 'ah-eg","ah-eg");

    insert into cc_ticket_history values ('D21207155', 'REOPENED', 7/2/2013 19:55:04 ', 'ah-eg","jsg - st");

    insert into cc_ticket_history values ('D21207155', 'INPROCESS', 7/2/2013 20:11:17 ', "sr - eg", "sr - eg");

    insert into cc_ticket_history values ('D21207155', 'CLOSED', 7/2/2013 23:06:16 ', "sr - eg", "sr - eg");

    insert into CC_TICKET_INFO values ('D21207155', 'CLOSED', 6/28/2013-17:28:59 ', ' 02/07/2013-23:06:16 ', "sr - eg");

    ______________________________________________________________________

    I want to find the time difference between 6/28/2013 18:54:23 'and 6/28/2013-17:28:59 ' (first instance)

    and between 23:06:16 7/2/2013 ' and 7/2/2013 19:55:04 "(second instance)

    Is the closest, I make the through this query:

    Select L.ticket_id, L.CREATED_DATE, R.CREATED_DATE as close_date, L.TICKET_STATUS, R.TICKET_STATUS cc_ticket_history cc_ticket_history join RIGHT L R on (L.rowid < R.rowid) where (L.TICKET_STATUS = 'NEW' R.TICKET_STATUS AND 'CLOSED' =) OR (L.TICKET_STATUS = 'REOPENED' AND R.TICKET_STATUS = 'CLOSED');

    Can it be done through SQL?

    Hello

    ORA - aff wrote:

    Etbin thanks for the reply. I think you're closer!

    The first 3 orders insert above form the first instance. The second 3 inserts statements form the second instance.

    Ideally, I'd like the output to something like this (values taken by top of insert statements):

    Ticket_ID STATUS CREATED_DATE CLOSED_DATE TIME_DIFFERENCE

    D21207155 CLOSED ON 28/06/2013 17:28:59 6/28/2013 18:54:23

    D21207155 CLOSED ON 07/02/2013 19:55:04 07/02/2013 23:06:16

    You can do this by using the analytical LAST_VALUE function:

    WITH got_opened_date AS

    (

    SELECT ticket_id, ticket_status, created_date

    LAST_VALUE (CASE

    WHEN ticket_status IN ('NEW', 'REOPENED')

    THEN created_date

    END

    IGNORES NULL VALUES

    ) OVER (PARTITION BY ticket_id

    ORDER BY created_date

    ) AS opened_date

    OF cc_ticket_history

    )

    SELECT ticket_id

    ticket_status AS status

    opened_date AS created_date

    created_date AS closed_date

    NULL AS time_difference

    OF got_opened_date

    WHERE ticket_status = 'CLOSED '.

    ORDER BY ticket_id

    closed_date

    ;

  • Suddenly unable to create new folders using the Windows 7 Explorer.

    I've been running Windows 7 32 - bit (upgrade from Vista) for over a year without any problems.  All of a sudden, I can't create a folder on one of my readers directories structures using the Explorer methods. Context menu only displays "Briefcase". Menu of files shows only "shortcut". Create a folder button does nothing.  Yet, I can always create directory via mkdir on cmd.exe (thank God for command lines ).  I did 2 system restore goes further every time (the second time in 10 days), but can not get the Explorer's ability to create a new subdirectory.  I scanned the heck out of the machine with half a dozen scanners for virus/malware/rootkit (Microsoft Security Essentials is my antivirus and I use Microsoft Firewall).  I went on a comprehensive register and can not find any key that would block the creation of records.  Any advice?

    How to remove and restore the default context Menu items 'New' in Windows 7 and Windows 8
    http://www.SevenForums.com/tutorials/28677-new-context-menu-remove-restore-default-menu-items.html
     
     

     
  • Accuracy of mobile data use

    Hello

    I recently made a switch of carrier and the new carrier data usage reports average higher than I used to.

    I usually never checked the mobile use of the data in the settings, so I have no experience on how accurate it is usually. I've always had 3GB included and reaches about 1 to 2 GB maximum.

    So, I recently reset the statistics to compare the unusual high numbers reported by the carrier and it turns out that:

    My phone displays 40 MB of data transfer while my carrier charge me 300 MB transfer!

    I asked the carrier and they said that their figures are correct and their charges are what matters. They also told me I should quit by comparing it to the use of mobile data expressed by my phone, it is not accurate at all.

    I am aware that there are certain circumstances why the carrier numbers are higher, for example their billing rounds up to the next full 64 k, transmission, errors that cause returns etc. I expect 10% of the higher numbers, or perhaps 20% higher, but in my case, it's almost ten times!

    Anyone experienced something like this before, or knows how to solve this problem? How are the statistics for you?

    Best regards

    I have not had the problem.  Two iPhone-6 units, both on Verizon 1 G plan.

  • Move a vmdk file finely put in service a new data store - now it's thick?

    Hi all

    To elaborate a little bit on the title, I installed a second hard drive in my ESXi 4 server.  All my VMs use discs finely put into service, however, after that I moved the files of the virtual machine to the new data store (using mv) and readded the virtual machine to inventory, the disks are provided are thinner but are thick.  This behavior is expected?

    This is behavior expected - don't use mv to VMDK!

    Use rather
    vmkfstools-i thin d

    who should be faster, more reliable and give you a choice for the type of provision

  • I bought a new iPhone SE. My iCloud account still shows my old iPhone data use. How can I erase it from my ICloud account?

    I bought a new iPhone SE. My iCloud account still shows my old iPhone data use. How can I erase it from my ICloud account?

    Do you mean that you see your old data use on the new iPhone?

    Go to settings > cellular > [scroll down to] Reset Statistics

    Otherwise, where exactly do you see this use?

  • When Firefox restarts the pages that they do not charge just display story, I then have to refresh to get new data as Explorer always charging and Firefox used to

    This should be an easy solution, because all the other browsers and Firefox used to do this. Firefox is restarted the pages do not charge they just historical display. I have to hit the button reload current page to get new data. This has been driving me crazy for a few weeks. I thought I had fixed a couple of times but only a few pages loaded and now it's the whole story again.

    Joe

    Oh, you use the Session Manager. What happens if you check the box in the Session Manager options, to the title of the backup & restore, "Reload All restored Windows"?

  • Using a mobile data can affect my memory storage

    Hello.. Using a mobile data can eat my memory of the iphone?

    You mean the storage capacity?

    NO.

    Is there an error message or a problem you are having?

  • Using 'New data value reference' in a loop

    Hi all

    I just read on the data value references (DVR?) and I'm trying to use them with overall functional (see table).

    I don't think that I'm just doing.  The final goal is a producer/consumer nickname.  My concern is that I don't feel the implementation of the new primitive data value reference and re-stuffing the result in the FGV, should occur in each loop.

    Of course I could "spread" data with a single gueue element (where the queue of new data would take place each loop).  I just thought that I would play with them.

    Beavercreek wrote:

    I think that we defend the same point, but I can't seem to understand why this does not work the way I expected.  I discovered the DVR (and queues) as a pointer, simply a way that the other vi can know where the data is located.  The data that we are after is here.  So, why Ch1 does not work in the data_reader.vi?

    If we can get Ch1 to work data_reader without re-creating and re-writing of the reference in the FGV each pole (what does Ch2), we find no more what is wrong with my vI or I'm going to learn something that is still beyond me.  I hope to hit me in the head this afternoon still

    You are missing a fundamental idea: the function you call creates a reference that points to a specific value. To actually interact with this value (read/write), you need to use the structure of the International preliminary examination. At this time what you are creating a single reference for ch1 (which do you nothing with) and creation of multiple references to ch2 (where at each iteration that you replace the reference in the FGV, so you basically lose the old reference), so instead of having two DVRs, you really N + 1 DVR (where N is the number of iterations of the loop runs).

    For your code works the way you want, you only need to create two digital video recorders (probably before the loop), then bring them inside the loop and use the structure of the International preliminary examination with nodes in R/W DVR to set the value in the DVR.

    For example:

    Other problems with the code, but this deal the DVR issue.

  • How to put windows 7 pro on the new computer using the same key on the side of the other computer

    I have a computer comes with windows 7 pro. I am now building a new computer. How to put windows 7 pro on the new computer using the same key on the side of the computer. I don't have a Windows 7 disc.

    Original title: Windows 7 pro

    Tuesday, October 14, 2014 20:31:20 + 0000, 4hammond wrote:

    I have a computer comes with windows 7 pro. I am now building a new computer. How to put windows 7 pro on the new computer using the same key on the side of the computer. I don't have a Windows 7 disc.

    You can not, for at least one (and two possible) reasons.

    1. it isn't clean if you want to have two computers, or you
    you want to remove from the old computer and put it on the new. If
    you want once, you can't do that - the rule is very clear: there
    a copy (or a license) for each computer.

    There is nothing new here. This is exactly the same rule that has been in
    effect on all versions of Windows from at least with Windows 3.1.

    2. but even if you want it on a single and from uninstall
    the old computer, you can't do it. It is because if it came with the
    computer, it is an OEM version and the biggest drawback to he a
    OEM version, is that its license it permanently binds to the first
    It is installed on the computer. He can never legally be moved to another
    computer, sold or assigned (except with the original computer).

  • We are unable to process these data. Try again later or use a different browser

    I tried to buy creativ-cloud for 2 days now and this is the error I get when I try to buy it' we are unable to process these data. "Try again later or use a different browser.

    I found the problem, I chose the wrong month for obtaining the diploma for my subscription thank anyway for the help

  • Mobile side.  Using the drop down of your video.  I once put some text on the Mobile page the Menu drops down, but behind the image.  When I remove the text box the menu works correctly.  This also happens with a HTML code placed to Paypal.

    Mobile side.  Using the drop down of your video.  I once put some text on the Mobile page the Menu drops down, but behind the image.  When I remove the text box the menu works correctly.  This also happens with a HTML code placed to Paypal.

    Please check layers panel and put in place the menu item in the list, you can use the layers panel and move up or attempt to move the content.

    If there is still the same, then download a few screenshots of the design view.

    Thank you

    Sanjit

  • Unable to export of form data using FormDEfUtil.cmd

    Hi all

    I am not able to make the export of form data using FormDEfUtil.cmd.

    D:\hyperion\planning\bin\FormDEfUtil.cmd export < formname > localhost < appname > admin password

    I get this message when tried the script above in cmd invite below.

    use: HspFormDefUtil < import/export > < filename/formname /-all > < Server > < username > < password > < application >.

    Any help is appreciated.

    Thank you!!

    Rev

    It is certainly the correct admin account details, you can log in with the details of account planning

    See you soon

    John
    http://John-Goodwin.blogspot.com/

  • [Explanation necessary] Clears the listview data and fill it again with new data

    Hello

    I correctly filled a listview in c ++, data analysed and does interesting things with it. However, I am drunk stumbling, unable to find a way delete and repopulate my display of the list...

    Question 1:

     

    1. How can after I insert data in the list view, I clear the list data and run again the same method (init) who populated the list view with the data in the first place?

    Here are the docs that I referenced and I don't understand how to implement the methods in my code.

    QList - clear() method

    https://developer.BlackBerry.com/Cascades/reference/QList.html#clear

    Using the data access Code, example
                              
    data_access/using_data_source

    GroupDataModel - Clear()

    https://developer.BlackBerry.com/Cascades/reference/bb__cascades__groupdatamodel.html#clear

    CODE

    Here is my code - filling of the display of the list of C++ and display of data in a ListView.

    MyApp.cpp

    MyApp::MyApp(bb::cascades::Application *app)
    : QObject(app){
        // create scene document from main.qml asset
            // set parent to created document to ensure it exists for the whole application lifetime
            QmlDocument *qml = QmlDocument::create("asset:///main.qml").parent(this);
    
                AbstractPane *root = qml->createRootObject();
                qml->setContextProperty("yoyo",this);
                //grab references
                list_view = root->findChild("listView");
    
                // set created root object as a scene
                app->setScene(root);
    
                mNetworkAccessManager = new QNetworkAccessManager(this);
                bool result = connect(mNetworkAccessManager, SIGNAL(finished(QNetworkReply*)), this, SLOT(requestFinished(QNetworkReply*)));
    
                 Q_ASSERT(result);
                 Q_UNUSED(result);                 json = new QFile("data/file.json");
    }
    
    void MyApp::init(){
        QNetworkRequest request = QNetworkRequest();
         // i call some service here
         mNetworkAccessManager->get(request);
    }
    
    void MyApp::requestFinished(QNetworkReply *reply){
        qDebug() << reply->error();
        qDebug() << reply->errorString();
        if (reply->error() == QNetworkReply::NoError) {
            qDebug() << "No error";
    
                    QByteArray data = reply->readAll();
    
                    if (!json->open(QIODevice::ReadWrite)) {
                        qDebug() << "Failed to open file";
                        return;
                    }
                    json->write(data);
    
            bb::data::JsonDataAccess jda;
            QVariantMap results = jda.loadFromBuffer(data).toMap();
                    QVariantList lst = jda.loadFromBuffer(data).toList();
                GroupDataModel *m = new GroupDataModel();
                       m->insertList(lst);
                       m->setGrouping(ItemGrouping::None);
                       if(list_view) list_view->setDataModel(m);
    
        }else{
            showDialog("Boo",reply->errorString());
        }
    }
    

    MyApp.hpp

    // Tabbed pane project template
    #ifndef MyApp_HPP_
    #define MyApp_HPP_
    
    #include 
    #include 
    #include 
    #include 
    #include 
    #include 
    
    namespace bb {
    namespace cascades {
    class Application;
    }
    }
    namespace bb {
    namespace data {
    class Application;
    }
    }
    
    /*!
     * @brief Application pane object
     *
     *Use this object to create and init app UI, to create context objects, to register the new meta types etc.
     */
    class MyApp: public QObject {
    Q_OBJECT
    public:
        MyApp(bb::cascades::Application *app);
        virtual ~MyApp() {
        }
        Q_INVOKABLE
        void init();
    private slots:
        void requestFinished(QNetworkReply *reply);
    private:
        QNetworkAccessManager *mNetworkAccessManager;
        QNetworkRequest *request;
        QFile *json;
        bb::cascades::ListView *list_view;
    };
    
    #endif /* MyApp_HPP_ */
    

    hand. QML

    import bb.cascades 1.0
    
    Page{
    Container {
                            background: Color.White
                            ListView {
                                id: listView
                                preferredHeight: maxHeight
                                objectName: "listView"
                                listItemComponents: [
                                    ListItemComponent {
                                        type: "item"
                                        Container {
                                            Container {
                                                Label {
                                                    text: ListItemData.id
                                                }
                                            }
    
                                        }
                                    }
                                ]
                                onTriggered: {
                                    console.log("selected_index: " + indexPath)
                                }
                                horizontalAlignment: HorizontalAlignment.Center
                                verticalAlignment: VerticalAlignment.Center
                            }
    
    }
    }
    

    Question 2:

    How reference to the ListView object with the name "listView" in different parts of the MyApp.cpp file? Is there anything else I should add to the header file to make the accessible listView?

    Question 3:

    What happens when you call the clear() method? How the data model is affected? How the user interface is affected? What happens in memory?

    Question 4:

    How do you verify that the data in the list has been deleted so that you can go ahead and fills again with new data? What is the cheque that I perform?

    I would also like to know how you manage multiple views of lists and data sources in your applications. Best practices or ideas?

    Thank you

    I was able to clear the listview with the following code, if anyone is interested.

    listView.dataModel = null
    

    The dataModel must be set to "null".

Maybe you are looking for