serenity_now
Active Member
Hi All,
I am trying to develop a custom BSSV that makes use of a standard BSFN. The BSFN needs to be passed a mathnumeric value.
I have created the internal and published components but am having trouble assigning this value between the internal and published components. I read the JDE BSSV guide and they mentioned overloading the set method of the internal value object using something like this:
---------------MathNumeric to Integer-----------------------
public void setNumberField(MathNumeric numberField){
if(numberField!= null)
this.numberField= new Integer(numberField.intValue());
}
This doesn't work for me. jDeveloper still complains about trying to set a MathNumeric to an Integer. I thought I could get around it by just changing the data type to Integer but the BSSV does not like this when run and complains about trying to cast integers to mathnumerics.
How do people get around this? I am sure I am missing something simple here?
I am trying to develop a custom BSSV that makes use of a standard BSFN. The BSFN needs to be passed a mathnumeric value.
I have created the internal and published components but am having trouble assigning this value between the internal and published components. I read the JDE BSSV guide and they mentioned overloading the set method of the internal value object using something like this:
---------------MathNumeric to Integer-----------------------
public void setNumberField(MathNumeric numberField){
if(numberField!= null)
this.numberField= new Integer(numberField.intValue());
}
This doesn't work for me. jDeveloper still complains about trying to set a MathNumeric to an Integer. I thought I could get around it by just changing the data type to Integer but the BSSV does not like this when run and complains about trying to cast integers to mathnumerics.
How do people get around this? I am sure I am missing something simple here?