How to pass parameters in href?

Well just call me hack-o-matic…
I think something’s changed, anyway this works:

//href link in another page
href(
    name	: "yada"
    ,title	: "putz" 
    ,page	: "seriously"
    ,install	: "[key:value]"  //any string value, maps, gstrings whatever
)
//page method
def seriously(vars) {
    log.debug "vars:${vars}" //mostly worthless info and what you passed in...
    log.debug "install:${vars.install}" //whatever you passed in in the href call
    dynamicPage(name: "seriously", title: "yea") {
    	section("blabla"){}
    }
}

UPDATE, the above doesn’t work in the APP, so this is still unresolved.

1 Like