Friday, May 22, 2009

Employee Daily Time Entry

I got a call from one of our CNCs, he was helping a client troubleshoot an applications issue on P051127 - Employee Daily Time Entry. The client is currently running applications 8.12 and have upgraded to TR 8.98.1 from 8.97.x. The fix to the issue was documented in SAR 8809488. The summary -- the
tags were showing up in the column headings. This is caused by a rewrite of the rendering engine that does not pass down HTML tags anymore, mostly because the the tag could be referencing an image that is a virus, it poses a security risk. The HTML code used in Text Block controls is still passed through, but the HTML must follow the XHTML Strict guidelines.

If you are still running 8.12 and can't upgrade to 9.0 you won't be getting the fix anytime soon. To correct the issue will take a manual patching of the code, a developer will be needed. The fix is simple and wouldn't take a developer more than just a few minutes, but it will require it.

The simplest description of of how to fix the problem is to replace the
tags in the Post-Dialog-Is-Initialized event with three blank spaces. That is the simple fix. The fixes start at line 263 to line 368.

The fact is that 8.12 was built for the older rendering engine which is part of the 8.98.x release. 9.0 was retrofitted, mostly, to handle the changes. 8.12 is not getting retrofitted, infact many of the support personnel don't know it is a problem because the 9.0 is fixed. It is a combination of 8.1x apps and 8.98.x TRs

Just change the code as seen here and you will be on your way. Note: There are about 14 lines that need to be updated.

Tuesday, May 19, 2009

Forms Development - How to use the OK button

So the events in the OK button were a mystery for some time, why both click a post click? A senior developer clued me in on the whole thing. The click button is where all the standard, automatic validation happens, you should do the same. Put all your validation code there. The post button clicked event is the place to do all your table IO and other events because you know that every thing is ready to go.
tatements it will.
Another thing I just remembered, if you have to use sqlplus and want rerun the buffer type / and enter. It will not rerun certain types of commands but s

The new object restore process

While working on building a system within JDE we discover the OMW zip feature. Starting with TR 8.98 it was standard. We have learned some things about that really cool feature.

1. It works great..most of the time.

2. When working with sub-forms, after a restore you may have to dirty the form in someway for the target system to see that something needs to be generated. Strange but true.

3. NER business functions cache stuff, have seen it mostly in table structures and data structures. You have to open the business function and open the table IO to refresh, save and then close out. Remember to check-out first!

4. Make sure if you are restoring to PY (or the equivalent, and I know about promotion and all that jazz) that your project is at the correct status to allow a check-in to that environment. You may think it is not working since it is getting saved to DV for example.

5. When saving the objects or projects to a PAR file, make sure to have the latest code from central objects on the local machine, that is where it saves from. Do a get on all the objects to be safe. I know that the tool can be used for saving your work, and that is awesome, but more awesomer is the ability to save off commonly used code instead of rewriting it every time.

That is all for right now, I have more insights but will save them for another time.