Page 1 of 1

Templated Wizard Possible?

PostPosted: 24 Oct 2017 15:46
by mrcarver
CG Gurus,

I am struggling to get templates working with the CGWizard. Do templates work with the CGWizard? If so any pointers would be very much welcome.

For example when I assign a template to "Step 1", all the other tabs disappear.

Regards,
Monte Carver

Re: Templated Wizard Possible?

PostPosted: 26 Oct 2017 16:01
by mrcarver
Alexander,
Can you confirm the templates being an issue?

Monte

Re: Templated Wizard Possible?

PostPosted: 26 Oct 2017 16:03
by Alexander Bulei
Hi mrcarver,

Can't confirm it yet...
Please send me the simple testcase project.
TIA

Best Regards.

Re: Templated Wizard Possible?

PostPosted: 26 Oct 2017 20:52
by mrcarver
Alexander,

My applogy for the hassle. When I could not duplicate the issue, I found that the template was missing a "</dIv>", which raised all kinds of issues. So best I can tell the templates work fine with the wizard control.

I look forward to using the "vertical" orientation. Best I can tell it should work great for directing the user to fill out over 40 question regarding an insurance application. Hopefully you have added the ability to adjust the tab with in vertical mode.

Regards,
Monte Carver

Re: Templated Wizard Possible?

PostPosted: 27 Oct 2017 11:11
by Alexander Bulei
Hi mrcarver,

My applogy for the hassle. When I could not duplicate the issue, I found that the template was missing a "</dIv>", which raised all kinds of issues. So best I can tell the templates work fine with the wizard control.


no problem ;)

I look forward to using the "vertical" orientation. Best I can tell it should work great for directing the user to fill out over 40 question regarding an insurance application. Hopefully you have added the ability to adjust the tab with in vertical mode.


Beta setup available in download section.

Best Regards.

Re: Templated Wizard Possible?

PostPosted: 07 Nov 2017 17:44
by mrcarver
Alexander,

My struggle with wizard templates continues...

Notice in the attachment Temp01 that the current index step is: aria-hidden'"false" and the others are "true". Which appears correct.

However, note the "display" property to any non current step that is bound to a template has "display:block". Is this correct? If I change in the html the property to "display: none", then the other template(s) disappear, which is at it should be.

See attachment Temp01 and Temp02. Note in Temp02 the unwanted rendering of "Step 2: Group Insure" appearing at the bottom of Step 1.

To be thorough, I have attached the HTML of the corresponding page (TemplateHTML.7z)

Please advise on a path forward to resolve this problem

Regards,
Monte Carver

Note 1 : I submitted a ticket via sales@cgdevtools.com to obtain the latest source

Re: Templated Wizard Possible?

PostPosted: 17 Nov 2017 17:06
by mrcarver
CG Gurus,

Can I please get some help on this issue? I believe the issue lies in IWCGJQWizard at
TIWCGJQWizardStep.RenderComponents
and /or
TIWCGJQWizardStep.RenderScripts

Is my REDLINE correct in the previous post that "display:block" should be "display:none"?

I find that I can resolve the problem if i change in TIWCGJQWizardStep.RenderScripts:
Code: Select all
AddToIWCLInitProc(format('%s.parent().css("display","block");',[CGGetJQuery(HTMLName)]));

to
Code: Select all
AddToIWCLInitProc(format('%s.parent().css("display","none");',[CGGetJQuery(HTMLName)]));


Thoughts / suggestions ?

Please advise,

Regards,
Monte Carver

Re: Templated Wizard Possible?

PostPosted: 20 Nov 2017 11:43
by Alexander Bulei
Hi mrcarver,

Please send me the simple testcase project.
TIA

Best Regards.

Re: Templated Wizard Possible?

PostPosted: 21 Nov 2017 18:02
by mrcarver
Alexander,

I realize a demo of this behavior is desirable, But my simple demo is not duplicating the problem. Can you please examine the attachment and confirm that the resulting HTML is correct? Furthermore, can you please run a test on your side to determine if my proposed change works from a CG perspective?

Thank you.

Monte Carver

Re: Templated Wizard Possible?

PostPosted: 22 Nov 2017 10:13
by Alexander Bulei
Hi mrcarver,

Sorry, but I need the testcase from your side...
One setted/unsetted property can make the break.

Best Regards.