0

Need help to complete this script.

let me := this;
let myA := first(select Artists where 'Artist Name' like me.'New Artist');
if myA = null then
    if dialog("Waiting answer ", "Artist not found.  ¿ Include now ??", ["Yes", "CANCEL"]) = "Yes" then
        let newA := (create Artists);
        newA.('Artist Name' := me.'New Artist');
        alert(" ✅ The Artist has been included.")
    else
        alert(" ⛔️ The Artist was not found, it is DUPLICATE ")
    end
else
    alert(" ⛔️ The Artist already exists, can't be INCLUDED.")
end

Hi

This is a script is for Add New Artist work 👍 but need once included go to the table Album to the included record.

1 reply

null
    • Rafael Sanchis
    • Rafael_Sanchis
    • 8 mths ago
    • Reported - view
    let me := this;
    let myA := first(select Artists where 'Artist Name' like me.'New Artist');
    if myA = null then
        if dialog("Waiting answer ", "Artist not found.  ¿ Include now ??", ["Yes", "CANCEL"]) = "Yes" then
            let newA := (create Artists);
            newA.('Artist Name' := me.'New Artist');
            alert("  The Artist has been included.");
            openTable("Artist");
            openRecord(newA)
        else
            alert(" ️ The Artist was not found, it is DUPLICATE ")
        end
    else
        alert(" ️ The Artist already exists, can't be INCLUDED.")
    end

    Works😶

Content aside

  • Status Answered
  • 8 mths agoLast active
  • 1Replies
  • 57Views
  • 1 Following