Sign in

E-mail *, (xx@domain.com)
Password *

Register | Forgot password

Getting the pageversionid from a pagemetadata

The "WCB: Java development" forum contains threads on issues that are related to Java while programming a WCB (WebManager Component Bundle). If you have questions that have impact on Java code, post them in this forum. Some example topics: authorization, the different component types, setting up component dependencies, data access, and so forth.

Answered
Not marked as answered yet

Forums  >  WCB: Java development  >  Getting the pageversionid from a pagemetadata


Author Getting the pageversionid from a pagemetadata
maxzilla


Posts: 48

Posted: 25-03-2010 12:05

Hey Guys,

I'm in a pagemetadata wcb. And i am trying to access the pageversion id of the page the metadata is on, so i can save it in a database.
Is there an easy way of getting this id?

thanks in advance,

Max

David.Kessler


Posts: 4

Posted: 17-06-2010 14:38


Hey Max,

You've probably already given up on this thread, but for future reference here's my two cents.

In your "..PageMetaDataController.java" you can use:

super.getPresentationContext().getPageVersion().getId();



I'm still learning! so forgive me if i'm wrong!

David

Back to top

New message: "Getting the pageversionid from a pagemetadata"
Message:
bold boitalicd underline url quote code smile cool eek grin mad razz sad wink
 
© 2012 GX Software B.V.

Disclaimer

This website (Connect.gxsoftware.com) may discuss or contain opinions, (sample) coding, software or other information that does not include GX official interfaces, instructions or guidelines and therefore is not supported by GX. Changes made based on this information are not supported.  GX will not be held liable for any damages caused by using or misusing the information, software, instructions, code or methods suggested on this website, and anyone using these methods does so at his/her own risk. GX offers no guarantees and assumes no responsibility or liability of any type with respect to the content of this website, including any liability resulting from incompatibility between the content of this website and the materials and services offered by GX. By using this website you will not hold, or seek to hold, GX responsible or liable with respect to the content of this website.