Update fields on form from fields on another (Lotus Notes) -


i have list of printers stored in printer keyword section have fields serial of ink use each of colours , such. want make when create new user form , have "x" printer, grab keyword form , pull ink types uses , save on user form.

@getdocfield method know have use not know how acquire correct form saved list of forms based on selection make on printer user has.

use @dblookup data printer documents.

field ink1 := @dblookup(""; ""; "viewprinters"; "xprinter"; "ink1"; [failsilent]); 

the line above reads item "ink1" in printer's "xprinter" document in view "viewprinters" in current database , writes item "ink1" in current document. copy every field way. view "viewprinters" has to have first sorted column printer names.

it might more efficient define fields want grab in column separated special character , them @ once

field allfields:= @dblookup(""; ""; "viewprinters"; "xprinter"; 2; [failsilent]); 

you can stay @getdocfield if read document id of printer document:

_docid := @text(@dblookup(""; ""; "viewprinters"; "xprinter"; "";                                               [returndocumentuniqueid])); @if(@iserror(_docid); @return(""); ""); field ink1 := @getdocfield(_docid: "ink1"); 

it might more efficient use lotusscript instead. assumed question prefer formula solution.


Comments

Popular posts from this blog

javascript - Jquery show_hide, what to add in order to make the page scroll to the bottom of the hidden field once button is clicked -

javascript - Highcharts multi-color line -

javascript - Enter key does not work in search box -