Get a "parent" form to open a "child" form & pass data to the chil

M

Mauryaguru

Objective:
How do I get a "parent" form to open a "child" form, and directly pass data
to the child form? In other words, how can the child form open with some
fields having some default values, obtained from the parent form?

Scenario:
I have a form called "Issue". Any one Issue can have many child
Action Items. This is done by pressing an "Add Action Item" button on the
Issue form, which opens up a form called "Action Item".

I want that when a new Action Item form is opened up, it automatically and
directly gets the name of its parent Issue from which it was opened up. (I
know how to open a new form, and automatically perform a query as soon as a
form opens up, my question is how to pass data from the parent Issue form, to
the Action Item form).

One non-robust way to do this is to indirectly pass the parent Issue name to
the Action Item form: submit the parent Issue name to a last-in-first-out
SharePoint list, and when the Action Item form is opened, the Action Item
form just queries the most recent item ("the top of the stack") in the
SharePoint list. But if multiple issues from several clients are
simultaneously producing Action Items, then you can imagine the havoc that is
caused-Action Items can end up getting the wrong parent Issue name.

So, can anyone please tell me how, when I create a new Action Item (by
popping up the Action Item form), to directly pass data, such as parent Issue
name, to the Action Item form?

Your help will really be appreciated. Thanks,

Mauryaguru
 
M

Mauryaguru

Hi Greg

Thanks for the response. How do I:
-access an XDocuments collection?
-update the DOM of a new XDocument?

Thanks,
Mauryaguru
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top