0

Créer un enregistrement dans un sous formulaire

Bonjour,

Je souhaiterai pouvoir créer un enregistrement dans un sous formulaire en cliquant sur un bouton. J'ai donc affecté à mon boutton le code ci-dessous :

let e := (create 'Echéancier');
e.'Contrat de location' = ID

Mon boutton réalise bien la création de ma ligne 'Echéancier' mais il n'affecte pas à cette ligne que celle-ci provient bien du contrat de location à partir duquel j'ai cliqué sur le boutton.

Pourriez-vous me donner un petit coup de main ?

Merci

 

--

Hello, I wish I could create a record in a subform by clicking a button.

So I assigned to my button the code below:

let e: = (create 'Schedule'); e.'Lease agreement '= ID

My button does well the creation of my line' Schedule 'but it does not does not affect this line that it comes from the rental contract from which I clicked on the button.

Can you help me ?

Thank you

2 replies

null
    • Nick
    • 5 yrs ago
    • Reported - view

    Hi, try this (creates a Invoice Line Item) after you change the names:

     

    let myID := Id;
    let NN := (create LineItems);
    NN.(Invoice := myID);
    let myRN := number(NN.Id);
    popupRecord(record(LineItems,myRN))

    • mathieucrebassa
    • 5 yrs ago
    • Reported - view

    Thanks very much it work's well 

Content aside

  • 5 yrs agoLast active
  • 2Replies
  • 1073Views