Customize ADOR via API

93 views
Skip to first unread message

Quinton Smith

unread,
Nov 16, 2009, 8:51:07 AM11/16/09
to xmpie...@googlegroups.com

Hi

 

Running latest uProduce version.

 

I have a campaign that consists of a TEXT ADOR (Name) and a GRAPHIC ADOR (BuildingSign).

 

The TEXT ADOR is bound to a database and in the GRAPHIC ADOR has the following readExpression that calls a UImage Function.

 

Call uImage.CreateImage2(

"X:\\Web2PrintTemplates\\Building Sign - LowRes.psd",

"X:\\Web2PrintDynamicImages",

"OPT:Building_Sign_" & |->[Name],

"JPG",

"NO",

"ACN=[XMPie] Building Sign\\Building Sign - LowRes",

"OF",

"HS",

"UFull",

TCase(|->[Name]))

 

I am able to successfully override the TEXT ADOR expression during production, by using the JobTicket.SetCustomization Method as follows:

 

 

Dim custList As JobTicket_SPP.Customization() = New JobTicket_SPP.Customization(2) {}

        custList(0) = New JobTicket_SPP.Customization()

        custList(0).m_Name = "Name"

        custList(0).m_IOType = "RW"

        custList(0).m_Type = "ADOR"

        custList(0).m_Expression = "HELLO"

 

jobTicketWS.SetCustomizations(uName, password, jobTicketID, custList, True)

 

 

The problem I still have is that - the overridden expression in the TEXT ADOR (Name) is not applied in the “uImage.CreateImage2” function.

In other words, the function appears to ignore the customized value and continues to read the database value.

 

The application is – multiple concurrent users accessing a website to view the personalization of an image on the fly. 

 

I can write the value to a table then execute the production – but this is extra code and I don’t want to go that route if there is a better way.

 

Any suggestions would be much appreciated.

 

Thank you.

Quinton

 

REMATA iNATHI Communications and Printers (Pty) Ltd
t: (011) 848-0034
f:  086 535 4692
e:
qu...@remata.co.za

 

Erik Zaadi

unread,
Nov 16, 2009, 9:05:16 AM11/16/09
to xmpie...@googlegroups.com
Override a variable, and use that in the uImage call..

Cheers,

Erik

2009/11/16 Quinton Smith <qu...@remata.co.za>



--
Erik Zaadi

Quinton Smith

unread,
Nov 16, 2009, 9:32:57 AM11/16/09
to xmpie...@googlegroups.com

Thanks Erik!

 

Sorted!

 


Erik Zaadi

unread,
Nov 16, 2009, 9:34:44 AM11/16/09
to xmpie...@googlegroups.com
Glad it works :)

2009/11/16 Quinton Smith <qu...@remata.co.za>



--
Erik Zaadi

Igor Vorobeychik

unread,
Nov 16, 2009, 5:57:36 PM11/16/09
to XMPie Interest Group
You can also use expressionAsValue parameter with false in the
SetCustomization/s like:
jobTicketWS.SetCustomizations(uName, password, jobTicketID, custList,
False)

In tis case you can need to pass pure QLingo it's more powerfull but
maybe an overkill in this case.

Igor.

On Nov 16, 9:34 am, Erik Zaadi <erik.za...@gmail.com> wrote:
> Glad it works :)
>
> 2009/11/16 Quinton Smith <q...@remata.co.za>
>
>
>
>
>
> >  Thanks Erik!
>
> > Sorted!
>
> >  ------------------------------
>
> > *From:* xmpie...@googlegroups.com [mailto:xmpie...@googlegroups.com]
> > *On Behalf Of *Erik Zaadi
> > *Sent:* 16 November 2009 04:05 PM
> > *To:* xmpie...@googlegroups.com
> > *Subject:* [xmpie-users] Re: Customize ADOR via API
>
> > Override a variable, and use that in the uImage call..
>
> > Cheers,
>
> > Erik
>
> > 2009/11/16 Quinton Smith <q...@remata.co.za>
> > *REMATA iNATHI Communications and Printers (Pty) Ltd*
> > t: (011) 848-0034
> > f:  086 535 4692
> > e: q...@remata.co.za
>
> > --
> > Erik Zaadi
>
> --
> Erik Zaadi- Hide quoted text -
>
> - Show quoted text -

Quinton Smith

unread,
Nov 17, 2009, 12:33:09 AM11/17/09
to xmpie...@googlegroups.com
Hi Igor

Thank you for this tip!
> > The application is - multiple concurrent users accessing a website to view
> > the personalization of an image on the fly.
>
> > I can write the value to a table then execute the production - but this is
Reply all
Reply to author
Forward
0 new messages