Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
senchatouch-notes
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
project-open
senchatouch-notes
Commits
eb726c2c
Commit
eb726c2c
authored
Apr 15, 2013
by
Frank Bergmann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- added user store
parent
a00f8ee0
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
31 additions
and
0 deletions
+31
-0
User.js
www/app/model/User.js
+31
-0
No files found.
www/app/model/User.js
0 → 100644
View file @
eb726c2c
Ext
.
define
(
'PO.model.User'
,
{
extend
:
'Ext.data.Model'
,
config
:
{
fields
:
[
'id'
,
'first_names'
,
'last_name'
],
proxy
:
{
type
:
'rest'
,
url
:
'/intranet-rest/user'
,
appendId
:
true
,
// Append the object_id: ../im_ticket/<object_id>
timeout
:
300000
,
extraParams
:
{
format
:
'json'
,
// Tell the ]po[ REST to return JSON data.
deref_p
:
'0'
,
columns
:
'first_names,last_name'
},
reader
:
{
type
:
'json'
,
// Tell the Proxy Reader to parse JSON
root
:
'data'
,
// Where do the data start in the JSON file?
totalProperty
:
'total'
// Total number of tickets for pagination
},
writer
:
{
type
:
'json'
// Allow Sencha to write ticket changes
}
}
}
});
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment