Home » Developer & Programmer » Forms » Details on mouse click using like operator (Forms 6i)
Details on mouse click using like operator [message #586676] Sun, 09 June 2013 07:41 Go to next message
m.abdulhaq
Messages: 254
Registered: April 2013
Location: Ajman
Senior Member
I want to link to blocks using description as there is no relation , for example i have two tables with one field in common called description, and i want to link this field in two tables using like operator.


create table item ( item_code varchar2(12),item_name varchar2(30));
     
     insert into item VALUES('A','HEA160');
     
     insert into item VALUES('B','HEA180');

create table stk (sl_item varchar2(12),sl_desc varchar2(30),sl_qty number);
     
     insert into stk VALUES ('X','HEA160X1000',12);
     
     insert into stk VALUES ('X','HEA160X2000',4);
     
     insert into stk VALUES ('Y','HEA180X3000',10);




Suppose i click on item block item_desc with value on HEA160 all the items similar to that should appear in stk block like 'HEA160X1000' ,'HEA160X2000' , if i click on 'HEA180' on item then 'HEA180X3000' it should come.Help please.

  • Attachment: LIKE_FORM.fmb
    (Size: 80.00KB, Downloaded 1118 times)

[Updated on: Sun, 09 June 2013 09:54]

Report message to a moderator

Re: Details on mouse click using like operator [message #586689 is a reply to message #586676] Sun, 09 June 2013 12:27 Go to previous message
arif_md2009
Messages: 732
Registered: May 2009
Location: United Arab Emirates
Senior Member

in the where clause of detail block add the following.you will your purpose solved.


SL_DESC LIKE UPPER(:ITEM.ITEM_NAME)||'%'


Previous Topic: update record
Next Topic: Calling from other data block into current master/detail form
Goto Forum:
  


Current Time: Thu May 09 02:59:20 CDT 2024