Thank you Mr. Rob: I was able to get it working with the same syntax - except I used yourcontrol.value instead of text (since this was a number it seemed logical).
Anyways, it is working like a charm - with only one caveat. When I change job numbers or clear the form - all my calculations stay on the form until someone presses the "retrieve costs" button I added.
it's a little quirky but it seems to be working.
Is my use of yourcontrol.value incorrect? Should I be using yourcontrol.text?
Thank you so much for the help. I know my way around VB and ASP but I am a pure novice at DotNet.
I don't know how you guys do this?
Dave Olender
Anyways, it is working like a charm - with only one caveat. When I change job numbers or clear the form - all my calculations stay on the form until someone presses the "retrieve costs" button I added.
it's a little quirky but it seems to be working.
Is my use of yourcontrol.value incorrect? Should I be using yourcontrol.text?
Thank you so much for the help. I know my way around VB and ASP but I am a pure novice at DotNet.
I don't know how you guys do this?
Dave Olender
--- In vantage@yahoogroups.com, Rob Bucek <rbucek@...> wrote:
>
> This should work...
>
>
> Dim yourcontrol As Epinumericeditor = ctype(csm.GetNativeControlReference("b1893290-b23a-446f-9e41-5a559a91ba4d"),Epinumericeditor)
> yourcontrol.text = yourvalue
>
> if your value is not a string you may need to recast it, but try it either way, this does work in my environment (9.05.700c)
>
> From: vantage@yahoogroups.com [mailto:vantage@yahoogroups.com] On Behalf Of DaveO
> Sent: Wednesday, June 05, 2013 7:22 AM
> To: vantage@yahoogroups.com
> Subject: [Vantage] Re: Help setting a value on a control NOT bound to a table field
>
>
>
> Well I think I'm gettng closer, but it still is not working.
>
> In your example I ended up using nedPercent.Value = 9999 to get the code to compile successfully. However the control on the form does not display the number 9999.
>
> Is there a form or screen refresh that I am missing.
>
> I added the GUID from the control and put it inside the quotes.
>
> Thanks,
>
> DaveO
>
> --- In vantage@yahoogroups.com<mailto:vantage%40yahoogroups.com>, Karen Schoenung <kschoenung@<mailto:kschoenung@>> wrote:
> >
> > Dim nedPercent As EpiNumericEditor = ctype(csm.GetNativeControlReference("GUID HERE"),EpiNumericEditor)
> > nedPercent = YourCalculation
> >
> > I think this should work, but I have not tried it...It is based on similar code I have for a text box...
> >
> > From: vantage@yahoogroups.com<mailto:vantage%40yahoogroups.com> [mailto:vantage@yahoogroups.com<mailto:vantage%40yahoogroups.com>] On Behalf Of DaveO
> > Sent: Tuesday, June 04, 2013 7:35 AM
> > To: vantage@yahoogroups.com<mailto:vantage%40yahoogroups.com>
> > Subject: [Vantage] Help setting a value on a control NOT bound to a table field
> >
> >
> >
> > I am trying to do customization for the Job Tracker where I would like to add up the job costs and then display a number of stats about that total. i.e. Budget vs Actual percent
> >
> > I already did a BPM/4GL to add up the job totals and write them to UD fields like JobHead.Number01 etc.
> >
> > However I really only need 4 UD fields but I need 12 other fields to show the results like percent or difference. I really do not want to burn up all my UD field to hold data that is only for show and is easily calculated from the first four UD fields.
> >
> > I apologize if this is getting winded, I am a novice at DotNet.
> >
> > Does anyone have and example they would be willing to share that shows how to add an unbound control to a form and then set the value of the control as a result of an equation?
> >
> > I would be most grateful,
> >
> > Thank you in advance,
> >
> > Dave Olender
> > Ph: 651-246-3281
> > Dave.Olender@<mailto:Dave.Olender%40Watergrem.com<mailto:Dave.Olender@%3cmailto:Dave.Olender%40Watergrem.com>>
> >
> >
> >
> > [Non-text portions of this message have been removed]
> >
>
>
>
> [Non-text portions of this message have been removed]
>