Home » Developer & Programmer » Forms » Concatenate or copy value on enter or WVI (Forms 6i)
Concatenate or copy value on enter or WVI [message #585553] Mon, 27 May 2013 07:51 Go to next message
m.abdulhaq
Messages: 254
Registered: April 2013
Location: Ajman
Senior Member
I have three database fields on my form , field_1 , field_2 and field_3 , user will enter the data in field_1 , and sometime he may not enter in field_2 , i want to bring the value of field_1 as it is into field_3 if he does not enter anything in field_2, if he enters the data in field_2 , then field_1 will get concatenated with field_2 and gets copied into field_3.Is there a way to do this automatically at form level using a trigger when-validate-item.In short this should be done after user presses the enter key on field_2.


create table ot_Sale_code_head ( sale_code varchar2(12),code1 varchar2(6),code2 varchar(6),code3 varchar2(12));


insert into ot_Sale_code_head ('A','01.01',NULL,NULL);

--inserted record in form will be 'A','01.01',NULL,'01.01'


insert into ot_Sale_code_head ('B','01.01','PS-P',NULL);


--inserted record in form will be 'B','01.01','PS-P','01.01.PS-P'









[Updated on: Mon, 27 May 2013 07:53]

Report message to a moderator

Re: Concatenate or copy value on enter or WVI [message #585564 is a reply to message #585553] Mon, 27 May 2013 12:57 Go to previous messageGo to next message
cookiemonster
Messages: 13920
Registered: September 2008
Location: Rainy Manchester
Senior Member
So just set field_3 to field_1||field_2 in the when-validate-item of field2.
You've described everything you need in your question, so what's the problem?
Re: Concatenate or copy value on enter or WVI [message #585673 is a reply to message #585564] Wed, 29 May 2013 00:26 Go to previous message
m.abdulhaq
Messages: 254
Registered: April 2013
Location: Ajman
Senior Member
thanks cookiemonster.
Previous Topic: Send an email from my Application forms
Next Topic: Direct Print
Goto Forum:
  


Current Time: Thu Apr 18 19:15:49 CDT 2024