form button calls another form with passing data to BO


Author
Message
Ivan George Borges
Ivan George Borges
Strategic Support Team Member (4.9K reputation)Strategic Support Team Member (4.9K reputation)Strategic Support Team Member (4.9K reputation)Strategic Support Team Member (4.9K reputation)Strategic Support Team Member (4.9K reputation)Strategic Support Team Member (4.9K reputation)Strategic Support Team Member (4.9K reputation)Strategic Support Team Member (4.9K reputation)Strategic Support Team Member (4.9K reputation)
Group: StrataFrame MVPs
Posts: 1.9K, Visits: 21K
You're welcome, Andrew. Cool
rsb1
rsb1
StrataFrame Beginner (6 reputation)StrataFrame Beginner (6 reputation)StrataFrame Beginner (6 reputation)StrataFrame Beginner (6 reputation)StrataFrame Beginner (6 reputation)StrataFrame Beginner (6 reputation)StrataFrame Beginner (6 reputation)StrataFrame Beginner (6 reputation)StrataFrame Beginner (6 reputation)
Group: Forum Members
Posts: 6, Visits: 345
Dear All,

thansk for the kindly response and extra knowledge given. appreciate very much

Regards

Andrew
Greg McGuffey
Greg McGuffey
Strategic Support Team Member (4.8K reputation)
Group: Forum Members
Posts: 2K, Visits: 6.6K
As Ivan said, check out the samples. SF provides several tools to help manage some common ways to manage data. The BrowseDialog provides a way to allow users to select a set of specific records, so only those records are loaded from the database.  The ChildFormDialog provides a way to manage child records, via a separate form. It manages the FK to the parent on the child forms and also manages saving the parent and children all at once. There are many other ways to manage records, most of which pretty easy to manage and all of which can be wired in to an application via the use of base forms, user controls, base BOs etc.  So take a look at the samples and help files, get an idea of what the BrowseDialog and ChildFormDialogs can do. At that point you'll likely have a better idea of what specific questions you might have and we'll be better able to help you at that point.
Ivan George Borges
Ivan George Borges
Strategic Support Team Member (4.9K reputation)Strategic Support Team Member (4.9K reputation)Strategic Support Team Member (4.9K reputation)Strategic Support Team Member (4.9K reputation)Strategic Support Team Member (4.9K reputation)Strategic Support Team Member (4.9K reputation)Strategic Support Team Member (4.9K reputation)Strategic Support Team Member (4.9K reputation)Strategic Support Team Member (4.9K reputation)
Group: StrataFrame MVPs
Posts: 1.9K, Visits: 21K
Hi Andrew.

Have you had a look at the ChildDialogFormSample solution that comes with StrataFrame? Under your Program Files folder, navigate to MicroFour and then StrataFrame. There you will find VB.BET/CSharp Samples folder, which will have the ChildFormDialog folder with the solution file. Once you get it open, have a look at the ParentForm "View Customer Notes" click event. That will give you a good idea of how this should be handled.

Cheers! Wink
rsb1
rsb1
StrataFrame Beginner (6 reputation)StrataFrame Beginner (6 reputation)StrataFrame Beginner (6 reputation)StrataFrame Beginner (6 reputation)StrataFrame Beginner (6 reputation)StrataFrame Beginner (6 reputation)StrataFrame Beginner (6 reputation)StrataFrame Beginner (6 reputation)StrataFrame Beginner (6 reputation)
Group: Forum Members
Posts: 6, Visits: 345
Dear Greg

Thanks for ur support. currently i tried to locate a "Tax" button on employee form. so when user on a employee form to click "Tax" button, the button will call "Tax" form of the particulat employee.

For every single form to load, i have BO.filldatatable with all record for user to choose. But when a button like i mentioned above, i have to filter the BO with only the particular employee. so, what i do is

1. on the employee form, when user on "Tax" button click, i will do TaxBO.Clear, then TaxBO.filldatatable again with specific employee code.

I will really appreciate if your have better solution on this

Regards

Andrew
Greg McGuffey
Greg McGuffey
Strategic Support Team Member (4.8K reputation)
Group: Forum Members
Posts: 2K, Visits: 6.6K
Andrew,



When you refill a BO using FillDataTable, it will replace the data in the BO. This means that you'll need to check if there are any dirty records in the existing data and if needed, allow the user to save them or undo them. Also, the current row index will be reset to 0, so if you want to get back to the record that was being viewed when you call the refill, you will need to save the current index away, then restore it.



There are other options you can use to refresh data (but this isn't built in, but fairly easy to implement). The concept of refreshing data is used more when you have a connected application and you need to refresh the data because it is always connected. In the .NET world, it is designed to be disconnected. Thus, it is typically better to figure out ways to provide just the data the user needs, when they need it and if needed simply retrieve that data again.



With that in mind, if you provide some more details about exactly what you are trying to do, we'll do what we can to help out. BigGrin



rsb1
rsb1
StrataFrame Beginner (6 reputation)StrataFrame Beginner (6 reputation)StrataFrame Beginner (6 reputation)StrataFrame Beginner (6 reputation)StrataFrame Beginner (6 reputation)StrataFrame Beginner (6 reputation)StrataFrame Beginner (6 reputation)StrataFrame Beginner (6 reputation)StrataFrame Beginner (6 reputation)
Group: Forum Members
Posts: 6, Visits: 345
Dear Ivan,

I am glad that ur fast, ur point ring my idea.

currently, i refill my BO by passing value using filldatatable command and it works

1 more question is, if the said "BO1" has been filled at the first time, can i refill the "BO1" again by filldatatable? How about the data filled by first time, will it be refresh or i have to refresh by command first b/4 refill.

Thanks in advance

Andrew

Ivan George Borges
Ivan George Borges
Strategic Support Team Member (4.9K reputation)Strategic Support Team Member (4.9K reputation)Strategic Support Team Member (4.9K reputation)Strategic Support Team Member (4.9K reputation)Strategic Support Team Member (4.9K reputation)Strategic Support Team Member (4.9K reputation)Strategic Support Team Member (4.9K reputation)Strategic Support Team Member (4.9K reputation)Strategic Support Team Member (4.9K reputation)
Group: StrataFrame MVPs
Posts: 1.9K, Visits: 21K
Hi Andrew.

Have you had a look at the Child Form Dialog control? On the help, you will find it under "Application Framework" / "UI Layer" / "Controls" / "Child Form Dialog".

rsb1
rsb1
StrataFrame Beginner (6 reputation)StrataFrame Beginner (6 reputation)StrataFrame Beginner (6 reputation)StrataFrame Beginner (6 reputation)StrataFrame Beginner (6 reputation)StrataFrame Beginner (6 reputation)StrataFrame Beginner (6 reputation)StrataFrame Beginner (6 reputation)StrataFrame Beginner (6 reputation)
Group: Forum Members
Posts: 6, Visits: 345
Dear Sir,

i have an employee form with several buttons, which provided function calls to several different forms. The problem is when i click on said "jobHistory" button to call "JobHistory" form, i would like this form to show me the selected employee record only according to employee form, instead of i have to search with the browse dialog for this employee.

kindly advice

Andrew

GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search