Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Krishna Vemulavada
/
vera_2.1_app
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
b92e6752
authored
Jan 04, 2017
by
Kunj
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
UOFLMA-133:Fixed - Make Name,User ID and Email fields read only in dynamic forms.
parent
da001a90
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
app/src/main/java/com/vsoft/uoflservicenow/ui/CatalogueVariableScreen.java
app/src/main/java/com/vsoft/uoflservicenow/ui/CatalogueVariableScreen.java
View file @
b92e6752
...
...
@@ -406,12 +406,15 @@ public class CatalogueVariableScreen extends AppCompatActivity {
if
(
catalogueVariable
.
getName
().
equals
(
getString
(
R
.
string
.
catalogue_user_full_name
)))
{
String
userFullName
=
PrefManager
.
getSharedPref
(
CatalogueVariableScreen
.
this
,
PrefManager
.
PREFERENCE_USER_FULL_NAME
);
((
EditText
)
controlView
).
setText
(
userFullName
);
((
EditText
)
controlView
).
setEnabled
(
false
);
}
else
if
(
catalogueVariable
.
getName
().
equals
(
getString
(
R
.
string
.
catalogue_user_id
)))
{
String
userId
=
PrefManager
.
getSharedPref
(
CatalogueVariableScreen
.
this
,
PrefManager
.
PREFERENCE_USER_ID
);
((
EditText
)
controlView
).
setText
(
userId
);
((
EditText
)
controlView
).
setEnabled
(
false
);
}
else
if
(
catalogueVariable
.
getName
().
equals
(
getString
(
R
.
string
.
catalogue_user_email_id
)))
{
String
emailId
=
PrefManager
.
getSharedPref
(
CatalogueVariableScreen
.
this
,
PrefManager
.
PREFERENCE_USER_EMAIL_ID
);
((
EditText
)
controlView
).
setText
(
emailId
);
((
EditText
)
controlView
).
setEnabled
(
false
);
}
if
(
viewType
==
ViewType
.
DATE
)
{
controlView
.
setOnClickListener
(
dateListener
);
...
...
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