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.

Tags: Oracle Mobile

Similar Questions

  • 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.

  • Extract data from database using php script and entry for datagrid.

    Hi all

    I intend to use the php script below to extract data from a database.

    I want to then display it in a datagrid control, the datagrid control has Ref columns job, the company and the position.

    The php script I have is

    <? PHP
    $hostname_conn = "localhost";
    $username_conn = "";
    $password_conn = "";

    $conn = mysql_connect ($hostname_conn, $username_conn, $password_conn);

    @mysql_select_db ("videochat");

    $query = "SELECT * FROM work."

    $result = mysql_query ($query);

    $row = mysql_fetch_array ($result);

    $ref = $row ["jobref"];
    $company = $row ['company'];
    $position = $row ["position"];

    echo "< Ref > $ref < / Ref >";
    echo "< company > $company < / company > ';
    echo "< location > $position < / location >."

    ? >

    Could someone show me how I chuck this data in a grid?

    Thank you

    Hello

    You should start using the authority, either zendamf which is used by the data wizards in flashbuilder 4 or with amfphp which is probably better than zend but has not all nicities such as the creation of objects of value.

    http://flashhub.NET/filter/

    This project uses amfphp, basically, it uses remoteobjects so returned php is in a ready to put directly into a grid or a datagroup arraycollection collection.

    If you need help with this sort of thing PM me and I can do a login session...

    the PHP services for calls used in the application

    <>

    class pets

    {

    var $db_host = "localhost";

    var $db_name = "flashhub_pets";

    var $db_user = "flashhub_david";

    var $db_pwd = "david";

    function pets()

    {

    Define the methodTable for this class in the constructor

    $this-> methodTable = array)

    "getPets"-online (table)

    'description' => 'Pets, database',

    'access' => 'remote '.

    )

    );

    }

    function getAllPets()

    {

    $mysql = mysql_connect ($this-> $this-> db_user, db_host), $this-> db_pwd;

    @mysql_select_db ($this-> db_name);

    $Query = "SELECT * from pet;

    $Result = mysql_query ($Query);

    return ($Result);

    }

    function getTypeOfPets ($category)

    {

    $mysql = mysql_connect ($this-> $this-> db_user, db_host), $this-> db_pwd;

    @mysql_select_db ($this-> db_name);

    $Query = "SELECT * from pet where CATEGORY = $category;

    $Result = mysql_query ($Query);

    return ($Result);

    }

    function getCategories()

    {

    $mysql = mysql_connect ($this-> $this-> db_user, db_host), $this-> db_pwd;

    @mysql_select_db ($this-> db_name);

    $Query = "SELECT * from category";

    $Result = mysql_query ($Query);

    return ($Result);

    }

    }

    ?>

    David

  • Cannot display objects from database using Visual Studio Tools

    Recently, I downloaded and installed the Oracle tools for Visual Studio (Oracle 11 g ODAC 11.1.0.7.20 with Oracle Developer Tools for Visual Studio). I was able to create a connection to the target database using the ODP.net; However, none of the database objects are visible in Explorer Server VS. For example, tables in Server Explorer folder was empty, as all the other files in the schema. Change display of object view to view schema did not make a difference.

    I tried the same connection using the Microsoft Oracle data provider and I have experienced the same problem. I could connect, but no data object was visible. When I checked the menu to change views, options were different. Instead of the object view and Schema view, I could choose my objects, all objects and user objects. My objects has been selected, then I changed it to all objects. After this change, I could see the data tables, stored procedures, and all other data objects that should be visible in the schema.

    What should I change to visible data objects in Server Explorer using the connection of the ODP?

    Thank you

    You have all the objects (tables, views, etc.) in your schema to which you are connected as?

    In the view "All items", if you develop "Tables", you will see all the visible objects for the logged on user. (objects other patterns of user and the schema of the user connected).
    Using odp.net provider, you must do the following:
    -Select "Filters" menu on the connection
    -In the dialog box that gets poster with the "Filters" tab
    -Select a collection must be set to 'connection '.
    -Select filter criteria, select 'Schemas poster' property, condition 'Is', for 'values', click on the button «...» "and in the dialog box that appears, click on the" > "button and the Ok" "button.
    -Click on the OK"" button.
    -Now extend your knot "Tables" and you should see all the tables visible to the logged in user.

  • Unable to display data from a csv file data store

    Hi all

    I'm using ODI 11 g. I'm trying to import metadata from a csv file. To do this, I have created physical and logical diagrams corresponding. Context is global.

    Then, I created a model and a data store. Now, after reverse engineering data store, I got the file headers and I changed the data type of columns to my requirement and then tried to view the data in the data store. I am not getting any error, but can't see all the data. I am able to see only the headers.

    Even when I run the interface that loads data into a table, its operation without error, but no data entered...

    But the data is present in the source file...

    Can you please help me how to solve this problem...

    Hi Phanikanth,

    Thanks for your reply...

    I did the same thing that you suggested...

    In fact, I'm working on the ODI in UNIX environment. So I went for the record separator on UNIX option in the files of the data store tab and now its works well...

    in any case, once again thank you for your response...

    Thank you best regards &,.

    Vanina

  • DISPLAY DATA from a REMOTE database

    I use Cold Fusion 5 and Oracle 8i (DB).

    You want to DISPLAY DATA from a REMOTE database.

    I'm familiar with synonyms and links to the database. I've set up a link of database
    access to the machine as the correct user (owner of the procedure). I can run

    "Select * from table1@machine1" and works well in SQLPLUS.

    But when in CF call for select statement the error above is Occur-> ORA-02041: customer database did not begin a transaction


    no idea...? Please

    Using ODBC or native drivers? If ODBC, what version? According to Metalink, Oracle ODBC has a bug that has been fixed in 8.1.5.5.0 the description of the attached problem resembles yours.

    Phil

  • Display data from the database in a table

    Hello

    How to display data from my database in an ADF table using a backing bean? I created an arraylist in the bean, but only the last row of my query is displayed in the table...

    Thank you...

    Hello

    Create a simple Java class that implements Serializable. Create attributes that represent each column in your table. This class represents on the row of your table. A list of these objects, and you can fill your af:table.

    Visit this link below for an example.
    Re: Is it possible to create a static array of ADF and the tree?

    Kind regards
    Amélie Chan

  • Y510 unable to get data from the camera.

    Hello

    I have a Y510 with Windows Vista 32 bit, 3 GB RAM, only 5 weeks. I get this message when I try to use Veriface, "unable to get data from the camera. The camera may have been disconnected or busy. I reinstalled Vista of the State in which the laptop came, but it does not work. I also updated the bios and install other updates were available. I would appreciate any advice.

    Thank you

    Peter

    I wish it was as easy as press Fn + Esc, I looked through an another Y510 our office and managed to find a process that must be set to Auto, the process is KtmRm. This process cannot be disabled, handicapped, or on a time delay, it must be AUTOMATIC.

  • Display data from another web application

    Hello

    I hope than to display data from my application 'team' on my 'articles' approx. basically display image of the author, email etc., which comes from the app TEAM. I know that this is possible.  I use the data of the src field extract the name of the authors, but of course this provides only a link. Are there tutorials - what can anyone tell me? Thank you.

    So does that mean as a concrete response by using the system of normal with BC, is tag that you insert this code for your team web app {module_webapps, 123456, i, {tag_author_id}} on your layout displayed products app page.  ID tag of the author is a field set up in the articles web app and a field of the data source to connect to your team application.

  • import data from database 8i to 11 g R2

    Hi all

    I try to import the exported data from database 8i to Oracle 11 g server. I find in the import log.

    Export file created by EXPORT: V08.01.07 by conventional means
    import in WE8MSWIN1252 and AL16UTF16 NCHAR character set
    import server uses WE8ISO8859P1 (possible character set conversion) character set
    Customer export uses WE8ISO8859P1 (possible character set conversion) character set
    export server uses WE8ISO8859P1 NCHAR (possible ncharset conversion) character set

    is this normal?

    I have several version of the client installed on the client computer.

    I find in HKEY_LOCAL_MACHINE > SOFTWARE > ORACLE > NLS_LANG = AMERICAN_AMERICA. WE8ISO8859P1
    in HKEY_LOCAL_MACHINE > SOFTWARE > ORACLE > KEY_OraClient11g_home1 > NLS_LANG = AMERICAN_AMERICA. WE8MSWIN1252

    Is it normal that the the NLS_LANG on the same client have different values?

    Thank you

    YES, you can check the compatibility of * compatibility matrix for export and import between different Versions, Oracle [Video] [132904.1 ID] *.

  • Unable to transfer data from the laptop hard drive external/pendrive.

    Dear Experts,

    Unable to transfer data from the laptop hard drive external/pendrive.

    Each time that tried to transfer meesage seems to the authorization of the administration.

    Kindly help me to solve the problem.

    Concerning

    Hello

    Follow these steps and check:

    To take ownership of a folder

    a. click on the USB key you want to learnand then click on Properties.

    b. click on the Security tab, click Advanced and then click on the tab owner.

    c. click on change. If you are prompted for an administrator password or a confirmation, type the password or provide confirmation.

    d. click on the name of the person you want to give to the property.

    e. If you want that person to be the owner of the files and subfolders in this folder, select the owner of subcontainers and objects replace check.

    f. click on OK.

  • RCU error: unable to connect to the database using the contact information provided

    Hello

    I am not able to connect to the database using the remote control 11.1.1.10.1 to create patterns. I ran the UCR even a week ago and I managed to connect. My database and listener are up and running and the host and the credentials are correct. I don't know where is the problem. Any help will be appreciated. Attaching the screenshot for reference.

    rcu.PNG

    Concerning

    Oumaima

    Hi Handal

    Thanks for the reply. Looks like someone had blocked the firewall settings, so I was unable to connect to the database using the port.

    Thank you

    Oumaima

  • An FTP error occurred - cannot establish a connection to the host. Internal data error. Unable to send data from network.

    Recently, I started out of the blue to get this message when I try to connect to an FTP of Dreamweaver. I have CC was last updated. I have like 50 sites, more on different servers and none of them will connect. So I don't know, it can't be a server problem. Yesterday, everything was fine. I made no change what so ever. I uninstalled Dreamweaver and reinstalled him and I get the same thing. It is not the site for 30 seconds and then exhale. As soon as I hit the button to connect as 1 second later, I get this error. I have reset all modems and routers, etc. I can't find anything online about this specific problem. I'm at my wits end. I have projects due, but cannot connect. It's Thanksgiving and trying to solve this problem instead of spending time with the family. Any help would be much appreciated.

    "An FTP error occurred - cannot establish a connection to the host." Internal data error. Unable to send data from network. »

    Nope, that is not the case, I have disabled this service and now it works fine!
    He was not the firewall, but the update 25-nov2014 of Norton Protection against vulnerabilities.  ! Norton is the note and fix it for the next update in the coming days...

    I have

  • How to ETL extract data from database Oracle 11.1 using Cognos Data Manager 10.1

    Hello

    I need to run the IBM Cognos Data Manager 10.1 version ETL tool for extracting data from the Oracle11.1 database.

    My understanding is that, from the point of view of database, the best way would to have a stored procedure that will provide a reference cursor in the ETL client tool.

    However, a database procedure the ETL tool running seems not to be possible in this version of the data manager.

    If someone has done this before? What is the best way for this snippet to do?

    Thank you

    Emilija

    Annabelle says:

    My reading of original question: "What is the best way for this snippet to do?"

    Sorry - is NOT helping.

    The BEST way to extract data from a table is to use a SELECT statement.

    You said you want to do.

    So just repeat your original question instead of those that ask you to answer will not move forward us.

  • Collect and display data from several workstations

    Currently, the data in the CSV format locally on several workstations running Labview and the format of the recorded data is the same for each workstation. Data are recorded roughly every 2 minutes at each station and at different times.

    Computers of these stations are connected network but no saves a copy of their files CSV to the server that I know is not ideal, but a part of memory original.  What is now there that a computer on the network brings together these data by workstations and then the poster showing trends in workstations etc. in graphic format and possibly Excel.

    What I'm looking for is some advice on the best way forward.

    I looked at shared variables as a possible solution, but it is work stations send their respective data to the 'central' PC or this PC "questions" workstations that seems inefficient.

    Another thought was using Active X workstations to write in an Excel file running on the "central" PC

    Finally thought that workstations have record their findings to a server and then 'central' PC to access that data, it brings together and then displays the results combined.

    There are several things that remains to be clarified.

    • All LabVIEW programs, individual data record data in the same format and the same number of data points?
    • Record all programs of LabVIEW at exactly the samerate?
    • Are all data on a be saved in a single file of the Machine, or each reading (at intervals of 2 minutes) in a separate file?
    • You are trying to combine data from different machines such that it is collected or after the entire collection was done, and all files have been written?
    • Another that the timestamp of the data file, is there a "time stamp" in (all) the individual data files?
    • If you assume that the data of different machines are more synchronized, you have in mind a way to combine the different readings of the time?  What happens if they are sufficiently different that, say, the Machine has 20 readings more (because it started much earlier) than other PCs?
    • If the machines are not saving at the same rate, how will handle you that?

    A single method, you might consider is to write a program that works on any network connected PC, including a no participate in the recording of data.  For simplicity, assume that each machine "participatant" starts at around the same time, saves exactly at the same rate, written a single data file and has already closed.  If the program "Combining" knows where all data files (because he knows the name of each machine and the location of the file on each machine), it can open all the files, collect all the data and treat it but want to (including a 'combined Excel workbook"writing with a spreadsheet separate for each PC, or combining them all on one sheet).  Just decide what you want to do in the context of the issues raised above.

    Bob Schor

Maybe you are looking for