Updating Dataviews

You would want to update any values in the "before" update event. The update event is what writes the changes to the database, the after event will have the results of the update.

Also consider doing the math part in the a pre-processing BPM, it is sometimes easier to do.

--- In vantage@yahoogroups.com, "jorgecabrera256" wrote:
>
> Good Morning Jim:
>
> I'm using the binding option, but it is not working, I'm using the Time and Expense entry, and have created a copy of the Expense Detail Tab, I have added a couple of fields, that I want them to be added to the total, so the total expense should be expense amount plus tax amount plus number01 and plus number02.
>
> When I click save, the total gets calculated using only the expense amount and tax amount.
>
> That is why I need to update the field "manually", however, the total it is showing on the screen but is not updated on the table.
>
> I have done the rowmod = "U" and I'm using the beginedit and endedit, but still not working.....
>
> I'm using the after adapter method, in the "update", this is where I'm updating the field, however, if I assign the new values to the view fields, when I try to add a second expense, none of the new values are being populated, ie whenever I choose an expense type, the tax liability gets populated with the one being used by the expense type, but on the second record, this is not being populated... If I remove the update method, then it works, but I'm in risk that the total sometimes is not being calculated right, also if I refresh the view it works, but doing this, is giving me more trouble.... since I can't recall messages, because the refresh is being done before it tries to recall the message, so it only recall the first message..... Maybe I'm doing something wrong, but I can't identify what it is... any help would be much appreciated....
>
> Let me know if I was clear enough with the problem....
>
> Thanks in advance
>
> Jorge C
>
> --- In vantage@yahoogroups.com, "jckinneman" wrote:
> >
> > Are you updating them via a control?
> >
> > For example if you are epibinding the character01 field to an epitextbox you shouldn't need to do anything special if this is an existing dataview.
> >
> > If you are manually updating with an assignment.
> >
> > edvQuoteHed.dataView[edvQuoteHed.Row]["Character01"] = "Something";
> > Then you would set rowmod to "U" in the same manner
> > edvQuoteHed.dataView[edvQuoteHed.Row]["RowMod"] = "U";
> >
> > If it not updating might need some more details on exactly how you are working with these fields and what dataview is involved.
> >
> > Jim Kinneman
> > Encompass Solutions, Inc
> >
> > --- In vantage@yahoogroups.com, "jorgecabrera256" wrote:
> > >
> > > how do I set the rowmod to U?
> > >
> > > --- In vantage@yahoogroups.com, Joe Englert wrote:
> > > >
> > > > I should have answered that if you set the rowMod to U you should be able to do all the field updating you want. Saving the record on the screen should save all of your modified values. You should normally have to call a notify event unless you have dependent fields. Notify doesn't do any saving.
> > > >
> > > > From: vantage@yahoogroups.com [mailto:vantage@yahoogroups.com] On Behalf Of jorgecabrera256
> > > > Sent: Tuesday, February 05, 2013 4:16 PM
> > > > To: vantage@yahoogroups.com
> > > > Subject: [Vantage] Updating Dataviews
> > > >
> > > >
> > > >
> > > > Good Afternoon:
> > > >
> > > > I have a situation... I have a view that I'm working on (EmpExpense). In Service management -> General Operations -> Time and Expense Entry. I need to update several custom fields... Do I need to set a notify after each modified field? Or do I just need to call the notify at the end ?
> > > >
> > > > Right now... some of the fields are not begin saved with the correct information.
> > > >
> > > > Thanks,
> > > >
> > > > Jorge Cabrera
> > > >
> > > >
> > > >
> > > > [Non-text portions of this message have been removed]
> > > >
> > >
> >
>
Good Afternoon:

I have a situation... I have a view that I'm working on (EmpExpense). In Service management -> General Operations -> Time and Expense Entry. I need to update several custom fields... Do I need to set a notify after each modified field? Or do I just need to call the notify at the end ?

Right now... some of the fields are not begin saved with the correct information.

Thanks,

Jorge Cabrera
Instead of manually handling the setting of the RowMod and calling notifies, you can use edvName.dataView[edvName.Row].BeginEdit(); and EndEdit() methods of the dataView row to do that work for you.

From: vantage@yahoogroups.com [mailto:vantage@yahoogroups.com] On Behalf Of jorgecabrera256
Sent: Tuesday, February 05, 2013 4:16 PM
To: vantage@yahoogroups.com
Subject: [Vantage] Updating Dataviews



Good Afternoon:

I have a situation... I have a view that I'm working on (EmpExpense). In Service management -> General Operations -> Time and Expense Entry. I need to update several custom fields... Do I need to set a notify after each modified field? Or do I just need to call the notify at the end ?

Right now... some of the fields are not begin saved with the correct information.

Thanks,

Jorge Cabrera



[Non-text portions of this message have been removed]
I should have answered that if you set the rowMod to U you should be able to do all the field updating you want. Saving the record on the screen should save all of your modified values. You should normally have to call a notify event unless you have dependent fields. Notify doesn't do any saving.

From: vantage@yahoogroups.com [mailto:vantage@yahoogroups.com] On Behalf Of jorgecabrera256
Sent: Tuesday, February 05, 2013 4:16 PM
To: vantage@yahoogroups.com
Subject: [Vantage] Updating Dataviews



Good Afternoon:

I have a situation... I have a view that I'm working on (EmpExpense). In Service management -> General Operations -> Time and Expense Entry. I need to update several custom fields... Do I need to set a notify after each modified field? Or do I just need to call the notify at the end ?

Right now... some of the fields are not begin saved with the correct information.

Thanks,

Jorge Cabrera



[Non-text portions of this message have been removed]
Thanks... I will try to use the beginedit and endedit.... by doing that all the info changed will be automatically saved to the database ? or should I need to do something else ?

Jorge C
--- In vantage@yahoogroups.com, Joe Englert wrote:
>
> I should have answered that if you set the rowMod to U you should be able to do all the field updating you want. Saving the record on the screen should save all of your modified values. You should normally have to call a notify event unless you have dependent fields. Notify doesn't do any saving.
>
> From: vantage@yahoogroups.com [mailto:vantage@yahoogroups.com] On Behalf Of jorgecabrera256
> Sent: Tuesday, February 05, 2013 4:16 PM
> To: vantage@yahoogroups.com
> Subject: [Vantage] Updating Dataviews
>
>
>
> Good Afternoon:
>
> I have a situation... I have a view that I'm working on (EmpExpense). In Service management -> General Operations -> Time and Expense Entry. I need to update several custom fields... Do I need to set a notify after each modified field? Or do I just need to call the notify at the end ?
>
> Right now... some of the fields are not begin saved with the correct information.
>
> Thanks,
>
> Jorge Cabrera
>
>
>
> [Non-text portions of this message have been removed]
>
how do I set the rowmod to U?

--- In vantage@yahoogroups.com, Joe Englert wrote:
>
> I should have answered that if you set the rowMod to U you should be able to do all the field updating you want. Saving the record on the screen should save all of your modified values. You should normally have to call a notify event unless you have dependent fields. Notify doesn't do any saving.
>
> From: vantage@yahoogroups.com [mailto:vantage@yahoogroups.com] On Behalf Of jorgecabrera256
> Sent: Tuesday, February 05, 2013 4:16 PM
> To: vantage@yahoogroups.com
> Subject: [Vantage] Updating Dataviews
>
>
>
> Good Afternoon:
>
> I have a situation... I have a view that I'm working on (EmpExpense). In Service management -> General Operations -> Time and Expense Entry. I need to update several custom fields... Do I need to set a notify after each modified field? Or do I just need to call the notify at the end ?
>
> Right now... some of the fields are not begin saved with the correct information.
>
> Thanks,
>
> Jorge Cabrera
>
>
>
> [Non-text portions of this message have been removed]
>
Are you updating them via a control?

For example if you are epibinding the character01 field to an epitextbox you shouldn't need to do anything special if this is an existing dataview.

If you are manually updating with an assignment.

edvQuoteHed.dataView[edvQuoteHed.Row]["Character01"] = "Something";
Then you would set rowmod to "U" in the same manner
edvQuoteHed.dataView[edvQuoteHed.Row]["RowMod"] = "U";

If it not updating might need some more details on exactly how you are working with these fields and what dataview is involved.

Jim Kinneman
Encompass Solutions, Inc

--- In vantage@yahoogroups.com, "jorgecabrera256" wrote:
>
> how do I set the rowmod to U?
>
> --- In vantage@yahoogroups.com, Joe Englert wrote:
> >
> > I should have answered that if you set the rowMod to U you should be able to do all the field updating you want. Saving the record on the screen should save all of your modified values. You should normally have to call a notify event unless you have dependent fields. Notify doesn't do any saving.
> >
> > From: vantage@yahoogroups.com [mailto:vantage@yahoogroups.com] On Behalf Of jorgecabrera256
> > Sent: Tuesday, February 05, 2013 4:16 PM
> > To: vantage@yahoogroups.com
> > Subject: [Vantage] Updating Dataviews
> >
> >
> >
> > Good Afternoon:
> >
> > I have a situation... I have a view that I'm working on (EmpExpense). In Service management -> General Operations -> Time and Expense Entry. I need to update several custom fields... Do I need to set a notify after each modified field? Or do I just need to call the notify at the end ?
> >
> > Right now... some of the fields are not begin saved with the correct information.
> >
> > Thanks,
> >
> > Jorge Cabrera
> >
> >
> >
> > [Non-text portions of this message have been removed]
> >
>
Good Morning Jim:

I'm using the binding option, but it is not working, I'm using the Time and Expense entry, and have created a copy of the Expense Detail Tab, I have added a couple of fields, that I want them to be added to the total, so the total expense should be expense amount plus tax amount plus number01 and plus number02.

When I click save, the total gets calculated using only the expense amount and tax amount.

That is why I need to update the field "manually", however, the total it is showing on the screen but is not updated on the table.

I have done the rowmod = "U" and I'm using the beginedit and endedit, but still not working.....

I'm using the after adapter method, in the "update", this is where I'm updating the field, however, if I assign the new values to the view fields, when I try to add a second expense, none of the new values are being populated, ie whenever I choose an expense type, the tax liability gets populated with the one being used by the expense type, but on the second record, this is not being populated... If I remove the update method, then it works, but I'm in risk that the total sometimes is not being calculated right, also if I refresh the view it works, but doing this, is giving me more trouble.... since I can't recall messages, because the refresh is being done before it tries to recall the message, so it only recall the first message..... Maybe I'm doing something wrong, but I can't identify what it is... any help would be much appreciated....

Let me know if I was clear enough with the problem....

Thanks in advance

Jorge C

--- In vantage@yahoogroups.com, "jckinneman" wrote:
>
> Are you updating them via a control?
>
> For example if you are epibinding the character01 field to an epitextbox you shouldn't need to do anything special if this is an existing dataview.
>
> If you are manually updating with an assignment.
>
> edvQuoteHed.dataView[edvQuoteHed.Row]["Character01"] = "Something";
> Then you would set rowmod to "U" in the same manner
> edvQuoteHed.dataView[edvQuoteHed.Row]["RowMod"] = "U";
>
> If it not updating might need some more details on exactly how you are working with these fields and what dataview is involved.
>
> Jim Kinneman
> Encompass Solutions, Inc
>
> --- In vantage@yahoogroups.com, "jorgecabrera256" wrote:
> >
> > how do I set the rowmod to U?
> >
> > --- In vantage@yahoogroups.com, Joe Englert wrote:
> > >
> > > I should have answered that if you set the rowMod to U you should be able to do all the field updating you want. Saving the record on the screen should save all of your modified values. You should normally have to call a notify event unless you have dependent fields. Notify doesn't do any saving.
> > >
> > > From: vantage@yahoogroups.com [mailto:vantage@yahoogroups.com] On Behalf Of jorgecabrera256
> > > Sent: Tuesday, February 05, 2013 4:16 PM
> > > To: vantage@yahoogroups.com
> > > Subject: [Vantage] Updating Dataviews
> > >
> > >
> > >
> > > Good Afternoon:
> > >
> > > I have a situation... I have a view that I'm working on (EmpExpense). In Service management -> General Operations -> Time and Expense Entry. I need to update several custom fields... Do I need to set a notify after each modified field? Or do I just need to call the notify at the end ?
> > >
> > > Right now... some of the fields are not begin saved with the correct information.
> > >
> > > Thanks,
> > >
> > > Jorge Cabrera
> > >
> > >
> > >
> > > [Non-text portions of this message have been removed]
> > >
> >
>