Main Region

edit "pencil" does not work consistently
2 answers | 249 views

CH
Oct 11, 2013 17:10 +00:00

I have a two grid regions, each has an "edit" link that shows a window/form region that exists on the same page. The top "pencil" works consistently and the action is keyed to 'EDIT'. The bottom "pencil" works inconsistently and the action is keyed to 'EDIT2'. I named them differently to try to make sure they don't conflict. Not sure it matters though.

The bottom pencil works fine until the "Apply changes" in the window/form is shows. Then only the bottom pencil quits working. I can use the top pencil and use its window/form without issue.

Any ideas? I can import the application into your demo site if needed.

alt text

alt text

16 comments

CH
Chris Oct 11, 2013 18:32 +00:00 

The only error occurring is "NetworkError: 404 Not Found - http://dev.vireomentalhealth.com/i/foex/images/gears.gif".

Importing the app into your demo environment now.

CH
Chris Oct 11, 2013 20:19 +00:00 

Application 293, page 205. Having trouble getting all my packages running in your development environment, so at this point it won't run.....

CH
Chris Oct 16, 2013 16:35 +00:00 

Ping.... Any ideas?

MN
Matt Nolan Oct 17, 2013 07:30 +00:00 

without a test case I can't see what setup you have in place. We would need to have a webmeeting to work this out which will use some of you support credits.

CH
Chris Oct 17, 2013 13:34 +00:00 

You do have a test case. Application 293, page 205. Its just that I can't run all my packages on demo.tryfoexnow.com to get the application to actually work properly. Take a peek at my setup and let me know.

MN
Matt Nolan Oct 18, 2013 07:55 +00:00 

Can you please add all the missing TYPES to the schema (this is why packages aren't compiling). I need to be able to run the page to investigate further

CH
Chris Oct 21, 2013 21:41 +00:00 

Take a peek at App# 293, page 218. If you click the pencil on Shane Walkers CCD1.xml, then press "Apply Changes", and chose the window. The pencil no longer works. You can click the pencil and close the window all you want. The "Apply Changes" is what seems to be causing the issue.

Thank you very much for your help in this matter.

Chris

CH
Chris Oct 22, 2013 14:12 +00:00 

Thanks Matt, that indeed did the trick within a single grid when the form has a "browse file" item. My original issue (application 293, page 205 still behaves the same way, it is a 2 grid page where the grids are parent/child with a form in a window for each). I have a little bit of work to do to get page 200 to work so I can have a working example for you. I'm working on that now. So we aren't "out of the woods" yet.

CH
Chris Oct 22, 2013 19:39 +00:00 

Matt, on application 293, page 200 (choose Shane Walker) medications tab then imaging tab, click edit action on bottom 1/2, press "Apply Changes", close the window, and attempt to click edit again. You will have to reload the page to get the edit to work.

Thank you very much for your help with this matter.

Chris

MN
Matt Nolan Oct 23, 2013 08:17 +00:00 

The problem is exactly same as what I previously described for page 218. It is caused by the file browse item. Have a look at "imaging d row action listener" dynamic action on page 205 and apply the workaround which I documented. i.e. uncheck "wait for result" on the form load and add a new TRUE action which resets allowBlank to true.

CH
Chris Oct 23, 2013 14:06 +00:00 

Oops... Sorry about wasting your time there. I didn't reproduce the code on your demo site.... It is now, and still doesn't seem to work. I created the javascript bit seq# 5, and unchecked the "wait for result" within the form load. Still doesn't work.

MN
Matt Nolan Oct 23, 2013 14:47 +00:00 

I can confirm that this is now fixed in development

CH
Chris Nov 3, 2013 03:02 +00:00 

The issue is indeed corrected within V1.2.1. Thank you.

CH
Chris Nov 20, 2013 18:16 +00:00 

Just you mention, there is a Grid Combo (which is required) that is going invalid during FORM LOAD, thus causing the issue. Making sure you SHOW before you LOAD FORM exposes this issue.

CH
Chris Nov 20, 2013 18:20 +00:00 

Adding the Ext.getCmp('P205_IMAGING_TEST_ID').allowBlank=true to the Grid Combo corrected the issue.

CH
Chris Nov 20, 2013 18:21 +00:00 

My original question, what is the "Right" way to do this is still a question.

MN
Oct 22, 2013 09:39 +00:00

Ok the issue is primarily caused by the file browse item and the combination of several settings.

After applying the changes the "allowBlank" config is set to null for the file browse item (I don't know why and is a bug) with this null value or a false value means that the file browse item requires a value. This then causes the form to be invalid when the form load is fired i.e. a "value required" validation failure is shown for the file browse item. However a form load should not trigger a validation so I need to investigate further.

Since you checked the "wait for result" on the form load dynamic action the form load is not actually fired since the form is invalid therefore subsequent dynamic actions do not fire (this is expected behaviour). So this is the reason your window does not show.

To workaround this

1) uncheck the "wait for result" on the form load dynamic action OR change the display sequence and have the window show come before the form load.

2) Create a new TRUE action that has a lower display sequence (i.e. runs before) than your form load and add the following javascript which sets your file browse item's allowBlank setting to true:

Ext.getCmp('P218_XML_FILE_UPLOAD').allowBlank=true

Note: I have already applied this to your example oon page 218.

I have logged a bug for the file browse item validation issue.

0 comments

MN
Oct 11, 2013 18:07 +00:00

Please import it into our demo environment. In the interim please check the console for any javascript errors

0 comments

You must log in or sign up to post questions and answers.