ENTER NEW and COMBO BOX

If you have questions or if you want to share your opinion about Aware IM post your message on this forum
Post Reply
ColinP
Posts: 30
Joined: Thu Jul 09, 2020 7:57 am
Location: London UK

ENTER NEW and COMBO BOX

Post by ColinP »

ENTER NEW OrderLine WITH OrderLine.Active='Yes',
OrderLine.SaleUKDelDate=OrderHeader.DefaultUKDelDate,
USING AddOrderLine1

and I have a Combo Box in the FORM AddOrderLine1 which is OrderLine.OrderColour which is populated by OrderLine.OrderHeader.Colours

The problem is that OrderLine has not yet been INSERTED into OrderHeader so, of course, it is not populated by the Colours held in the OrderHeader BO.

OrderLine.OrderColour references OrderColours with no multiple allowed holds the colour for this Order Line.
OrderHeader.OrderColour references OrderColours with multiples allowed hold a number of colours which can be used for that order


Can anyone help me understand how to populate the Combo?

Maybe it is not possible.


Colin
v 8.7 Windows
Colin
------------------------------------------------------------------------------------------------------------------------
AwareIM 8.7 (Build3012) Windows Virtual Server Derby
PointsWell
Posts: 1457
Joined: Tue Jan 24, 2017 5:51 am
Location: 'Stralya

Re: ENTER NEW and COMBO BOX

Post by PointsWell »

It's unclear what you are trying to achieve.

Where are you creating OrderLine from? If you are using the OrderHeader as the creation point of the OrderLine why do you not

Code: Select all

ENTER NEW OrderLine with OrderLine.OrderHeader=OrderHeader, ...
The problem definition is not very clear.
Post Reply