Quantcast
Channel: Microsoft Dynamics SL
Viewing all articles
Browse latest Browse all 14486

Forum Post: Solomon Object Model Flex Table Subscreen

$
0
0

I'm trying to automate the project maintenance screen (PAPRJ00) and have run into an issue with generating project numbers. If this were being done by a user, they would click a button to the left of the Project input (the properties of the button indicate that it's a SolVbaButton named "cmdFlexPiece"). Clicking this button launches a screen (PAFEN00) where the user would fill out two inputs then hit an "Increment" button. Doing so closes the screen and populates the Project input with the two inputs plus a sequence number that it generates.

I can't seem to get this to work through the Solomon Object Model. Setting the control for the button to true (imitating a click) results in the screen popping up but stops automation, returning control to the user. I tried to recapture control by creating a SubFormEvent handler as I can do for other buttons on this screen, but for some reason the event isn't triggered. I've also tried launching the screen via "StartApplication("PAFEN00.exe Project")" which successfully launches the screen and gives the automation client the ability to fill out the two required inputs, but any time I set the increment buttons value to true it throws a COMException saying that "The remote procedure call failed". I think this is because the screen is trying to set its parents' Project field to the new project number, but because it wasn't called from the project maintenance screen it doesn't know what it's parent is and thus fails.

I've searched extensively for a solution and haven't found one; any help would be greatly appreciated.


Viewing all articles
Browse latest Browse all 14486

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>