Header address printing
In one one of my smartforms for quotations we have a left header where we peint the customer address through the address window with interface is_addres. This pulls in the correct addrnumber and converts it into address and prints it on the lfet header . I ahve a problem when we print this quote with the selection of partner fucntion when its a custom one called 'ZZ' which is for our companys sales rep. On other occassions when the partner function is any other its prints the correct address but when it s set to this ZZ it brings up the name of the person and some address which is stored in the adrc table . I would like my form to convert the addrnumber to the one with partner function say 'SP' and then pull out the address so that its the correct address and the address should be printed always , it cant be left blank.
Is there a way we can chnage this is-address-addrnumber while running the form internally in the code itself so that it changes the address number and prints correctly.
Right now if I try adding the code to chnage is_addres-addrnumber from the interface to some other number it gives an erro on form saying is_addres cannot be chnaged.