Q
Problem solve Get help with specific problems with your technologies, process and projects.

RunOnServer data not displaying on backend

I previously created a Notes client form that used the client ODBC connection to return several pieces of SKU information from the AS/400 when the user clicks a validate button. Basically it works like this: When the form is opened, a user can enter 1 or more SKU numbers. They then press a validate button and it returns an SKU description, which includes hand quantity, locaton, etc. (Everything was working well.) I then converted the form by moving the code that was originally in the button to an agent. The agent is called from the same button via the RunOnServer method. This too seems to work fine on the back end and when I debug the agent, I can see the data I need is there. However, I can not get the newly returned data to display back in my form. I've been looking for days for a solution with no luck. Please help!
Was/Is your agent using any front-end classes? That would be the first culprit to look for if it fails (i.e. returns a status = non-zero). If you're well beyond that, what does the agent being invoked by RunOnServer do and where does it put the data? Since RunOnServer only returns a status message the data is consumed and disposed by that agent, there's no way to directly communicate it back to the calling agent. That's why it is typically used with web applications, where they can create one or more documents in the back-end that the web app can redirect the browser to. When using a Notes client-based app you can pass the current documents NoteID to the agent, have the agent update that doc, and then if successful you can use NotesUIDoc.Refresh to see the updated results. Good Luck!
This was last published in December 2002

Dig Deeper on Domino Resources - Part 5

Have a question for an expert?

Please add a title for your question

Get answers from a TechTarget expert on whatever's puzzling you.

You will be able to add details on the next page.

Start the conversation

Send me notifications when other members comment.

By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Please create a username to comment.

-ADS BY GOOGLE

SearchWindowsServer

Search400

  • iSeries tutorials

    Search400.com's tutorials provide in-depth information on the iSeries. Our iSeries tutorials address areas you need to know about...

  • V6R1 upgrade planning checklist

    When upgrading to V6R1, make sure your software will be supported, your programs will function and the correct PTFs have been ...

  • Connecting multiple iSeries systems through DDM

    Working with databases over multiple iSeries systems can be simple when remotely connecting logical partitions with distributed ...

SearchDataCenter

SearchExchange

SearchContentManagement

Close