Showing posts with label EP. Show all posts
Showing posts with label EP. Show all posts

Thursday, March 31, 2016

Navigation pane issue in EP

I faced an issue with a new web control (put on Employee Services) which was showing Navigation pane when viewed through Employee Services module but when user goes to some other page and come back the navigation pane was not visible.

The problem looked weird that why would a page do it when the "Module" property on the PageDef was set to Home\EmployeeService!

But in both the cases the URL opening was different. Below are both URLs:
Working:
http://server/sites/DynamicsAx/EmployeeServices/Enterprise%20Portal/Ale_HcmOpenJobs.aspx?WMI=Ale_HcmOpenJobs&WebModuleName=Home%5cEmployeeServices%5cOrganization&WCMP=GCO&WDPK=initial

Non-Working:
http://server/sites/DynamicsAx/EmployeeServices/Enterprise%20Portal/Ale_HcmOpenJobs.aspx?WMI=Ale_HcmOpenJobs&WCMP=GCO&WDPK=initial

So I found a solution which I must say can be a workaround with no other impact.

Just go and set the "ShowParentModule" property to "No" on the node of the WebMenu where the control is added and it will work.

Sunday, March 6, 2016

AxForm insert not working

Strange is the word when it comes to EP. Today I faced an issue where there is a web control with an AxForm with 2 buttons "OK" and "Cancel" but info is not getting inserted into the table on "OK" button click. The biggest confusion was that this web control was working in Dev environment but not in UAT. So I imported the object from Dev to UAT but to no help.

Then started observing the DataSet's properties and found a property called "InsertIfEmpty", by default it was "Yes". So I changed it to "No" and it worked.

Now the question was "why it worked in Dev not in UAT?". Dev already had some records in the table and UAT was newly created DB.

Friday, December 11, 2015

Cross-Company-External record context

I faced a situation where I had to convert a listpage to cross company in EP. So I changed the query and redeployed. Pretty easy stuff. But then on clicking the record it opens a web control for approval and same thing happens with a button in the toolbar above. So in the case of cross company the web control was getting displayed blank as it wasn't getting the record context.

So I was able to handle the toolbar button by changing it's property "External Record Context" but couldn't handle the record link (HyperLinkButton). I tried getting the record context using IAxaptaAdapter but it didn't seem to work. :(