Jump to content

Printing Partners

Registered Users - Approved
  • Posts

    61
  • Joined

Converted

  • Location
    Indianapolis, IN

Converted

  • FusionPro Products
    Yes

Converted

  • Homepage
    http://www.PrintingPartners.net

Printing Partners's Achievements

Enthusiast

Enthusiast (6/14)

  • First Post Rare
  • Collaborator Rare
  • Week One Done
  • One Month Later
  • One Year In

Recent Badges

10

Reputation

  1. Thanks Dan!!! I used the OnRecordStart approach and it is working fine. Thanks again.
  2. Dan, I have a template where the User can upload vector art. Some of the uploads have been PDFs, which default to the crop box. But their art is smaller (logos and such), so we get a lot of extra space around the logos when they "Fill" the graphic frame. I am hoping that the PDFBoundingBox will allow me to change that default to ArtBox so the logos will come in and size to fill the graphic frame without all of the extra space. What I keep getting wrong is the format of the code. I am not a programming expert. I have the code from FusionPro: <FusionProGraphicFrame>.PDFBoundingBox So where do I put the "ArtBox" instruction? I am guessing that "FusionProGraphicFrame" needs to be changed to the name of my graphic frame in FusionPro. Should this also be in a "OnRecordStart" rule? I am guessing it should be. I was hoping to find an example that gave me a basic understanding of how to format the code so I could learn how to set it up and format mine.
  3. Other than the UserGuide.pdf, TagsRefGuide.pdf, and RulesSystemGuide.pdf that are links in FusionPro, are there other references I can use to learn more about the scripting environment (other than this portal)? I am trying to create an OnRecordStart script and I am looking for more information than the above guides provide on the PDFBoundingBox. Thanks
  4. Ste, That worked perfectly! It was the "CreateResource" that I was not aware of. Saw it, but didn't understand how it worked. Also, thanks for introducing me to the short hand conditional statement. I had not used that before. Learned two things today! Now to go study up on both of them more. Thanks for the help! ________________________ The complete rule that I used, in case anyone else is in the same boat I was. var logo = Field("SecondaryLogo") ? Field("SecondaryLogo") : Field("PrimaryLogo"); return CreateResource(logo, 'graphic', true); if (Field("SecondaryLogo") != "") return logo; else return Field("SecondaryLogo");
  5. This should be fairly easy, I would think, but I can't seem to figure it out. I have a template where a User can upload 2 images into a template. If they only upload 1 image, I want to use that in both picture boxes in the template. Below is an over simplified script that fails, but it is essentially what I need: if (Field("SecondaryLogo") != "") return Field("SecondaryLogo"); else return Field("PrimaryLogo");My problem is how do I approach this as a rule in my template so Marcom knows what to do with it. Because it is a graphic rule, it wants me to return a graphic value. But how do you access User images uploaded in templates in a rule?
  6. Dan, Sorry, this was a script question that was part of a bigger problem I was trying to solve. It sort of evolved in my explanation, but it is still a scripting question. Marcom has iForms which is aware of what is in the FusionPro Fields (or form) when the job is submitted for preview. So they can be aware of each other, sort of. What I wanted to do was populate, via script, a field that iForms would then recognize. I can put a value in that field to render in the final output, but can't get it to pre-populate the value in the form, which is the only place iForms will detect it. What I was ultimately after was a script to "Pre-populate" a field. If I can do that, then iForms will do it's part and they can talk to each other. But I don't think that is possible. It was a long shot, but worth it to me to solve a problem.
  7. Ste, Thanks for the help. I finally realized I had the wrong function in "SetFieldValue". I will try what you have shown me, but I don't think I can accomplish what I am trying to do. I was finally able to get it to populate the field, but I am still not getting the result I want. I was hoping to "Pre-populate" a field so Marcom would pick it up for iForms pricing. I can change the value of the field, but it won't "pre-populate", meaning it won't show up in the field in the form, it will show up in the rendered PDF. As such iForms won't acknowledge the value I set. I am not sure if the OnJobStart rule will give me a different result.
  8. I am trying to set the value of an existing field in the OnRecordStart rule. I am having no success. I am currently using this expression: var size = "1440"; FindTextFrame("SquareInches").SetFieldValue = "size";Right now I am hard coding the "1440" to eliminate variables. This will eventually be: var size = (Field("pageHeight") * Field("pageWidth")); FindTextFrame("SquareInches").SetFieldValue = "size";I get no errors when I validate in FusionPro. But I can't get the value to appear in the Form Field in MarcomCentral. This has to be possible, I must be missing something simple. Ideas?
  9. Matt, The JQuery script is a good solution. But if that won't work for you a good resource for simple scripts with instructions is JavaScript Kit. Not the most advanced scripts, but they do work, link below. Just remember they Marcom is running the NoConflict script on their site. Good Luck! http://www.javascriptkit.com/script/cut118.shtml
  10. Matt, Will your script run locally on your computer? Does it fail only once uploaded to Marcom? Depending on what you are trying to run, Marcom does shutdown some scripting, they run a "no conflict" script. They do this so there isn't any conflicts between your script and theirs. If you are using JQuery you need to add a "j" after the "$". Try changing "$('#randombanner').attr('src',image[x]);" to "$j('#randombanner').attr('src',image[x]);"
  11. David, I have iForms. These are not pre-determined sizes. The User gets to type in whatever dimensions they want. From what I have read, iForms will not handle that. I do not see where iForms can calculate the size and produce a price. Is there something I have missed?
  12. Has anyone encountered a way to calculate the price of an item based on the size? I am attempting a product where the User can specify the height and width. But now I need to calculate the cost based on the size they have entered. So it needs to figure it on square inches or feet. Any ideas or experience doing this? I can calculate this in a rule, but how do you pass that to the Shopping Cart? thanks.
  13. I have a template that allows the User to Upload an image. I need to limit the file types they can upload to either AI or EPS. Is there a way to do that? Could it be done with a script? Any ideas would be appreciated.
  14. I found the discussion on Ad Resizing. So that answers the question: "Can I change the page size".
  15. This may be impossible, but I thought I would ask. I have a banner template. The User will upload a vector logo. If the logo is horizontal in shape, I want the logo to scale up to fill the picture box height. But then the box also needs to get wider as does the page. So I would need script(s) that would scale the logo, determine its width after scaling, adjust the size of the picture box, and then add the appropriate additional space to the template size. Would something like this even be possible? I half remember a thread about being able to re-size pages, but I couldn't find it in the forum. And this might need to be in the Javascript forum as well.
×
×
  • Create New...