I had tried that MessageBox thing, but I put it in the wrong place before. This time, I have it before I set the double variable. It did help!
But, it still failed to run. So I changed the variable declaration to a float, and then it worked fine.
Thanks for the guidance!
But, it still failed to run. So I changed the variable declaration to a float, and then it worked fine.
Thanks for the guidance!
--- In vantage@yahoogroups.com, Jose Gomez <jose@...> wrote:
>
> You could try the old fashioned messagebox for this
>
> MessageBox.Show(args1.ToSTring()... etc)
>
>
>
>
> *Jose C Gomez*
> *Software Engineer*
> *
> *
> *
> *T: 904.469.1524 mobile
> E: jose@...
> http://www.josecgomez.com
> <http://www.linkedin.com/in/josecgomez> <http://www.facebook.com/josegomez>
> <http://www.google.com/profiles/jose.gomez> <http://www.twitter.com/joc85>
> <http://www.josecgomez.com/professional-resume/>
> <http://www.josecgomez.com/feed/>
> <http://www.usdoingstuff.com>
>
> *Quis custodiet ipsos custodes?*
>
>
>
> On Wed, Dec 19, 2012 at 10:48 AM, mattcald_73 <matt@...> wrote:
>
> > **
> >
> >
> > Thanks for the tip, Jose!
> >
> > Do you have a trick to see what is being passed to the custom code? What
> > data is in those RowRuleDelegateArgs(args.ARG1, args.ARG2, etc...)?
> >
> > Trying a simple c# customization where the PO number gets highlighted if a
> > parts' pricing is <= 0.
> >
> > CODE:
> > private bool
> > OrderDtlDocUnitPrice000_CustomRuleCondition(Epicor.Mfg.UI.ExtendedProps.RowRuleDelegateArgs
> > args)
> > {
> > bool result = false;
> > // ** RowRuleDelegateArgs Properties: args.Arg1, args.Arg2, args.Context,
> > args.Row
> > // ** put Row Rule condition evaluation logic here
> > double docPrice = System.Double.Parse(args.Arg1.ToString());
> >
> > if (docPrice <= 0)
> > {
> > return true;
> > }
> >
> > return result;
> > }
> >
> > The test compiles fine, with no error. When I run it in Order entry, I get
> > "Input string was not in a correct format." message.
> >
> > Can you give me a hint? :)
> >
> >
> > --- In vantage@yahoogroups.com, Jose Gomez <jose@> wrote:
> > >
> > > The Obejct Explorer is always in VB silly old thing that is. Simply
> > convert
> > > it Using one of the many online converters or see below (in this case)
> > > VB
> > > Dim OrderDtl2 As EpiDataView = this.oTrans.EpiDataViews("OrderDtl");
> > > C#
> > > EpiDataView OrderDtl2 = oTrans.EpiDataView["OrderDtl"];
> > >
> > >
> > >
> > > VB
> > > Dim docPrice As Decimal =
> > OrderDtl2.dataView(OrderDtl2.Row)("DocUnitPrice");
> > >
> > > C#
> > > Decimal docPrice = OrderDtl2.dataView[OrderDtl2.Row]["DocUnitPrice"];
> > >
> > >
> > > *Jose C Gomez*
> > > *Software Engineer*
> > > *
> > > *
> > > *
> > > *T: 904.469.1524 mobile
> > > E: jose@
> > > http://www.josecgomez.com
> > > <http://www.linkedin.com/in/josecgomez> <
> > http://www.facebook.com/josegomez>
> > > <http://www.google.com/profiles/jose.gomez> <
> > http://www.twitter.com/joc85>
> > > <http://www.josecgomez.com/professional-resume/>
> > > <http://www.josecgomez.com/feed/>
> > > <http://www.usdoingstuff.com>
> > >
> > > *Quis custodiet ipsos custodes?*
> > >
> > >
> > >
> > > On Fri, Dec 14, 2012 at 11:50 AM, mattcald_73 <matt@> wrote:
> > >
> > > > **
> >
> > > >
> > > >
> > > > I am kind of new to the c# thing, but the code in the Object Explorer
> > > > looks like VB code. I haven't seen "DIM" in c# before.
> > > >
> > > > I opened my customization with C# as my "Default Customization
> > Programming
> > > > Language", and the Script Editor has the C# radio button checked. This
> > is
> > > > what the Object Explorer tells me to use for DocUnitPrice in the
> > OrderDtl
> > > > table(variables named).
> > > >
> > > > Dim OrderDtl2 As EpiDataView = this.oTrans.EpiDataViews("OrderDtl");
> > > > Dim docPrice As Decimal =
> > > > OrderDtl2.dataView(OrderDtl2.Row)("DocUnitPrice");
> > > >
> > > > Can't seem to get the code above to do anything but give me errors:
> > > >
> > > > --------compile errors------------
> > > > Error: CS1002 - line 72 (373) - ; expected
> > > > Error: CS1002 - line 73 (374) - ; expected
> > > >
> > > > ** Compile Failed. **
> > > >
> > > > Can one of you sharp c# guys give me a kick in the right direction?
> > > >
> > > > --Matt
> > > >
> > > >
> > > >
> > >
> > >
> > > [Non-text portions of this message have been removed]
> > >
> >
> >
> >
>
>
> [Non-text portions of this message have been removed]
>