
Button to Create a New Linked Record?
Hello, I have a link from "Notes" table within my default record. So if anyone adds a note, it creates a new record linked to that one. Within my default record where the "Notes" table is linked to, I want to create a button, that when clicked, it automatically creates a new note, and links it to the default record. What would this formula be?
-
No luck still. Can you retype the code in its entirety. The the main table that I want to link the record to is named 'Repair' and the table I want to automatically link to and create a new record is 'Repair Notes' so what I want to do, instead of hitting the small + to create a new note that is automatically linked, I wish to just hit the button with the formula so it would like it automatically, and I can type in my new note.
Thank you.
-
자동 링크 응용사례
A 테이블 이름: '4.수량산출내역서'
B 테이블 이름: '5.실정보고'
Reference form A테이블 to B테이블(1:N)
A 테이블 버튼 공식
A테이블 과 B테이블의 조건(검색어)이 일치하는 레코드를 자동으로 링크할수 있다
let myID := ID;
let my := '검색어';
let x := (select '5.실정보고' where '검색어' like my);
let cx := x.IDD;
for q in cx do
let i := number(substr(q, index(q, "MB") + 2));
let new := record('5.실정보고',number(i));
let qq := new.('4.수량산출내역서' := myID);
if x = null then 0 else qq end
end