Skip to content
GitLab
Explore
Projects
Groups
Topics
Snippets
Projects
Groups
Topics
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
MKCLOS
Core Development Platform
corepkgv2
Commits
059a6612
Commit
059a6612
authored
6 years ago
by
Roshan Patil
Browse files
Options
Downloads
Patches
Plain Diff
Dynamic Form evalution end page added
parent
0373f0ad
Branches
Branches containing commit
Tags
Tags containing commit
1 merge request
!68
Core dev bto c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
routebuildermdl/dynamicFormResponseEval.go
+11
-0
routebuildermdl/dynamicFormResponseEval.go
with
11 additions
and
0 deletions
routebuildermdl/dynamicFormResponseEval.go
+
11
−
0
View file @
059a6612
...
...
@@ -38,10 +38,13 @@ func dynamicFormEvalution(ab *servicebuildermdl.AbstractBusinessLogicHolder, rs
}
nextNoConditionPage
:=
gjson
.
Result
{}
currentPageIsNoCondition
:=
false
isEndPage
:=
false
endPageObj
:=
gjson
.
Result
{}
for
_
,
obj
:=
range
configs
{
condition
:=
obj
.
Get
(
"condition"
)
.
String
()
pageID
:=
obj
.
Get
(
"pageID"
)
.
String
()
noCondition
:=
obj
.
Get
(
"noCondition"
)
.
Bool
()
if
noCondition
{
if
currentPageIsNoCondition
{
nextNoConditionPage
=
obj
...
...
@@ -49,6 +52,10 @@ func dynamicFormEvalution(ab *servicebuildermdl.AbstractBusinessLogicHolder, rs
}
if
pageID
==
currentPage
{
currentPageIsNoCondition
=
true
isEndPage
=
obj
.
Get
(
"isEndPage"
)
.
Bool
()
if
isEndPage
{
endPageObj
=
obj
}
}
continue
}
...
...
@@ -84,6 +91,10 @@ func dynamicFormEvalution(ab *servicebuildermdl.AbstractBusinessLogicHolder, rs
return
obj
.
Value
(),
nil
}
}
if
isEndPage
{
return
endPageObj
.
Value
(),
nil
}
if
nextNoConditionPage
.
String
()
!=
""
{
return
nextNoConditionPage
.
Value
(),
nil
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment
Menu
Explore
Projects
Groups
Topics
Snippets