Re: user function in PERFORM?
Posted in 1994
sacs250!randy@veritas.com wrote: > =========================================================== > } From Robert Lawrence 30 Aug 1994 00:55:43 GMT > } Path: veritas!rmy.emory.edu!ilist > } Subject: user function in PERFORM? > } Date: 30 Aug 1994 00:55:43 GMT > } Reply-To: bobl@ncd.com > } Organization: NCD > } Sender: informix-list-owner@rmy.emory.edu > } To: informix-list@rmy.emory.edu > } X-Informix-List-To: sacs250!randy@veritas.com > } X-Informix-List-Id: <news.8420> > } > } I'm a novice at INFORMIX and have two hopefully easy questions: > } > } 1. Any way to use the user function to stuff in the logged in user into > } a field. I have tried in attributes table.cuser = value (user) but > } nothing seems to work. > The only way that I have been successful in placing the user name on > the form is by attaching a C function to the perform screen. You have > to have ESQL to do this. I thought you just needed userfuncs.c and make a "new" perform. I only use ESQL/C when accessing the database. Here use getenv("LOGNAME") or getlogin() and pf_putval. Once you get this set up, you can really jazz up your performs. You can use on beginning make some very interesting screens. If you're stuck with perform (not 4GL) I highly recommend using userfuncs.c and a new perform. Good luck! :) > } > } 2. Is it possible to call a form after selecting a record with view > } scroll? > } > } Sorry if these are trival or stupid questions. > } > } Thanks in advance, > } > } > } Bob Lawrence > } Software Engineer > } Internet: bobl@pcx.ncd.com > ===========================================================