[DataSource]
class JmgProfileTable
{
public int active()
{
int ret;
ret = super();
displayColor.backgroundColor(jmgProfileTable.Color);
return ret;
}
[Control("Integer")]
class displayColor
{
public void lookup()
{
jmgProfileTable.Color = ColorSelection::selectColor(this, jmgProfileTable.Color);
displayColor.backgroundColor(jmgProfileTable.Color);
}
}
}
[ExtensionOf(formControlStr(ReqParameters, ProductionQuantitiesColorCtrl))]
final class FormDF_ReqParameters_ProductionQuantitiesColorCtrl_Extension
{
public void lookup()
{
next lookup();
this.lookup_post();
}
public void lookup_post()
{
FormDataSource formDatasource = this.formRun().dataSource(tableStr(ReqParameters));
ReqParameters reqParameters = formDatasource.cursor();
reqParameters.ProductionQuantitiesColor = ColorSelection::selectColor(this, reqParameters.ProductionQuantitiesColor);
this.backgroundColor(reqParameters.ProductionInstructionsColor);
reqParameters.write();
}
}
[ExtensionOf(FormDataSourceStr(ReqParameters, ReqParameters))]
internal final class FormDS_ReqParameters_ReqParameters_Extension
{
public int active()
{
int ret = next active();
this. active_post(ret);
return ret;
}
public int active_post(int ret)
{
ReqParameters reqParameters = this.cursor() as ReqParameters;
if(reqParameters)
{
int color = reqParameters.ProductionQuantitiesColor;
FormIntControl formControl = this.formRun().control(this.formRun().controlId(formControlStr(ReqParameters, ProductionQuantitiesColorCtrl)));
formControl.backgroundColor(reqParameters.ProductionQuantitiesColor);
}
return ret;
}
}
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 290,818 Super User 2024 Season 2
Martin Dráb 229,147 Most Valuable Professional
nmaenpaa 101,156