how to display records on form but not save in table

Hi,
How can i display a record on a form and it should not be stored in the table the form writes to?
Thanks

Create variables, get the data from the record and table, populate the variables and display them.

Any sample code? because i did this

used are variable and it is displaying the customer name, but when i go to the next line to display another customer name, it is displayed but the previous one disappear. I don’t want them to disappear, i want them to stay.
here is the code i used




Form - OnAfterGetRecord()
Customer.GET(CustomerNo);
CustomerName := (Customer.Name);

Thanks

I haven’t got NAV installed on this computer but… did you try with changing form properties?.. for example “ModifyAllowed” :wink:

I just tested this using the sales header form as follows:
(Create a Dimension “TEMP”)
CommandButton “Add Record”

T349.SETRANGE(“Dimension Code”,‘TEMP’);
T349.SETFILTER(Code, ‘%1’, “Sell-to Customer No.”);
IF NOT T349.FIND(’-’) THEN BEGIN
T349.INIT;
T349.“Dimension Code” := ‘TEMP’;
T349.Code := “Sell-to Customer No.”;
T349.Name := “Sell-to Customer Name”;
T349.INSERT;
END;

Create a new form based on the Dimension Value table, SORTING(Dimension Code,Code) WHERE(Dimension Code=CONST(TEMP)) and create a CommandButton “Clear Records”

T349.SETRANGE(“Dimension Code”,‘TEMP’);
IF T349.FIND(’-’) THEN BEGIN
WITH T349 DO
REPEAT
T349.DELETE;
UNTIL T349.NEXT = 0;
END;

Display the new form and you can select each record as you need.
Not automatic but unless I know more of what you are trying to do this may help.