dbTalk Databases Forums  

Scripted Button for creation of record multiple records with set variables

comp.databases.filemaker comp.databases.filemaker


Discuss Scripted Button for creation of record multiple records with set variables in the comp.databases.filemaker forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Carpeflora
 
Posts: n/a

Default Scripted Button for creation of record multiple records with set variables - 02-19-2007 , 03:03 PM






I have a script that is opening a new window and creating only the
first of 9 possible records based on a yes/no variable.

What script should I add to repeat the script with changed
parameters? This is what I have so far...


(Explaination of tabes: Product Parts is a table of multiple parts
each could require one or more of 9 different types of approvals. The
nine types of approvals are indicated by yes/no selections in a portal
with button on portal row that generates the $ppart variable)

If [ Product Parts::LicensorAppReqD = "yes" ]
Set Field [ ProductPartApprovalList::ProductPartforapprovalIDk ey;
$ppart ]
Set Field [ ProductPartApprovalList::Approval Level; "Final Design" ]
Set Field [ ProductPartApprovalList::Approver; "Licensor" ]
End If
If [ Product Parts::ClientAppReqD = "yes" ]
Set Field [ ProductPartApprovalList::ProductPartforapprovalIDk ey;
$ppart ]
Set Field [ ProductPartApprovalList::Approval Level; "Final Design" ]
Set Field [ ProductPartApprovalList::Approver; "Customer" ]
End If

I haven't written the rest of the if/thens thinking I'd better test
what I have a a couple first...

??

Carpeflora :-)


Reply With Quote
  #2  
Old   
Carpeflora
 
Posts: n/a

Default Re: Scripted Button for creation of record multiple records with set variables - 02-20-2007 , 01:12 PM






On Feb 19, 4:03 pm, "Carpeflora" <l... (AT) liquidpointdesign (DOT) com> wrote:
Quote:
I have a script that is opening a new window and creating only the
first of 9 possible records based on a yes/no variable.

What script should I add to repeat the script with changed
parameters? This is what I have so far...

(Explaination of tabes: Product Parts is a table of multiple parts
each could require one or more of 9 different types of approvals. The
nine types of approvals are indicated by yes/no selections in a portal
with button on portal row that generates the $ppart variable)

If [ Product Parts::LicensorAppReqD = "yes" ]
Set Field [ ProductPartApprovalList::ProductPartforapprovalIDk ey;
$ppart ]
Set Field [ ProductPartApprovalList::Approval Level; "Final Design" ]
Set Field [ ProductPartApprovalList::Approver; "Licensor" ]
End If
If [ Product Parts::ClientAppReqD = "yes" ]
Set Field [ ProductPartApprovalList::ProductPartforapprovalIDk ey;
$ppart ]
Set Field [ ProductPartApprovalList::Approval Level; "Final Design" ]
Set Field [ ProductPartApprovalList::Approver; "Customer" ]
End If

I haven't written the rest of the if/thens thinking I'd better test
what I have a a couple first...

??

Carpeflora :-)
The variable script fixed this one too....



Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.