Expandir minha barra de realizações na Comunidade.

Submissions are now open for the 2026 Adobe Experience Maker Awards.

Mark Solution

Esta conversa foi bloqueada devido à inatividade. Crie uma nova publicação.

SOLUCIONADO

page number generation Dynamically Using SOM Expression in live cycle designer ?

Avatar

Level 2

Is there any way to get page number Using SOM Expression in live cycle designer ?

i have tried this on layout:ready*

this.rawValue=xfa.layout.page(xfa.resolveNode("Title[0]").somExpression);

1 Solução aceita

Avatar

Resposta correta de
Community Advisor

Add the below code to layout ready event:

xfa.layout.page(this);

 

eg: I used below in my form for testing:

form1.Page2.TextField2::ready:layout - (JavaScript, client)

app.alert(xfa.layout.page(this));

 

even working with putting the script on root form node:

form1::ready:layout - (JavaScript, client)

app.alert(xfa.layout.page(Page2.TextField2));

Ver solução na publicação original

4 Respostas

Avatar

Employee Advisor

@bhanu2 total page no. of pdf or the page no. in which the component is?

Avatar

Level 2

Thank you @Mayank_Gandhi for you responce.

i am expecting the page no. in which the component is.

Avatar

Resposta correta de
Community Advisor

Add the below code to layout ready event:

xfa.layout.page(this);

 

eg: I used below in my form for testing:

form1.Page2.TextField2::ready:layout - (JavaScript, client)

app.alert(xfa.layout.page(this));

 

even working with putting the script on root form node:

form1::ready:layout - (JavaScript, client)

app.alert(xfa.layout.page(Page2.TextField2));

Avatar

Level 10

Don't do that, you might get trapped in an endless loop of alert windows and crash the PDF viewer or Designer then, since the layout ready event can execute very very often depending on the forms build quality. Use the JavaScript console instead.

 

form1::ready:layout - (JavaScript, client)
console.println(xfa.layout.page(Page2.TextField2));