gget79
10th May 2014, 00:01
Hi Experts,

I am working with Infor LN FP3.

I have the following problem:
1. I added a field on the tdsls4100m000 session, this field corresponding to a different table of session main table .
2. I need that when I enter a value in this new field, dependencies of one field of the session main table triggering, I tested with dal.check.field (), but I can not get the result that I want.

Someone who can help me please....

Thanks.

gget79
13th May 2014, 19:28
Hi Experts,

I am working with Infor LN FP3.

I have the following problem:
1. I added a field on the tdsls4100m000 session, this field corresponding to a different table of session main table .
2. I need that when I enter a value in this new field, dependencies of one field of the session main table triggering, I tested with dal.check.field (), but I can not get the result that I want.

Someone who can help me please....

Thanks.

Hi,

I found the solution. I am sharing you my source code so they can solve their potential problems.


extern domain tcmcs.str1 edu.f |(form field)
domain tcbool edu.h |(flag)

field.edu.f:
when.field.changes:
edu.h = true
to.field("tdsls400.ofbp") |movefocus to field tdsls400.ofbp (depends on)

field.tdsls400.ofbp:
before.field:
if edu.h = true then
tdsls400.ofbp = "AEPC00304" |to assign value partner
auto.tab() |execute function
edu.h = false
endif

function extern domain tcbool auto.tab()
{
long process,event(EVTMAXSIZE)
evt.type(event) = EVTCHANGEFOCUS
evt.client.sender(event) = pid
evt.client.command(event)=1
evt.focus.key(event)=KEY_TAB
if not send.event(get.pgrp(pid),event) then
message("Proceso not found")
return(false)
endif
return(true)
}