Go Back   MarcomCentral (PTI) and FusionPro User Communities > Software-Related Talk > The JavaScript Library > Getting Started, Learning, Etc.

Notices

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old October 16th, 2014, 09:03 AM
thundar117 thundar117 is offline
Junior Community Member
 
Join Date: Oct 2011
Location: WAshington DC
Posts: 10
Question Simple Skip record script

I just trying to skip and the records with "Gold Awards".

//Skip Gold Awards
if (Field("item_awardType") == "GOLD ")
{
FusionPro.Composition.composeThisRecord = false;
}
else
{
FusionPro.Composition.composeThisRecord = true;
}

But I keep getting "Function Doesn't return a value
Reply With Quote
  #2  
Old October 16th, 2014, 09:08 AM
step's Avatar
step step is offline
Senior Contributor
 
Join Date: Jan 2010
Location: Charlotte, NC
Posts: 955
Default Re: Simple Skip record script

That code needs to go in an OnRecordStart callback rule. Is that where you have it?
__________________
Ste Pennell
FusionPro VDP Creator 9.3.15
Adobe Acrobat X 10.1.1
Mac OS X 10.12

LinkedIn
Reply With Quote
  #3  
Old October 16th, 2014, 09:18 AM
thundar117 thundar117 is offline
Junior Community Member
 
Join Date: Oct 2011
Location: WAshington DC
Posts: 10
Default Re: Simple Skip record script

No

What you see is the whole script

New to this type of coding any help is welcomed
Reply With Quote
  #4  
Old October 16th, 2014, 09:32 AM
thundar117 thundar117 is offline
Junior Community Member
 
Join Date: Oct 2011
Location: WAshington DC
Posts: 10
Default Re: Simple Skip record script

I just move it for a Text rule to a Callback rule and it is working when I send output is it possible to have it filter in Preview as well
Reply With Quote
  #5  
Old October 16th, 2014, 09:35 AM
thundar117 thundar117 is offline
Junior Community Member
 
Join Date: Oct 2011
Location: WAshington DC
Posts: 10
Default Re: Simple Skip record script

I just move it from a Text rule to a Callback rule and it is working when I send output is it possible to have it filter in Preview as well
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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

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

Forum Jump


All times are GMT -7. The time now is 11:57 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
(c) 2011, PTI Marketing Technologies™, Inc.