Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Web and WebWorks Development

Reply
Contributor
Posts: 35
Registered: ‎09-15-2012
My Device: AT&T Torch 9810

Invocation target pattern in web works

[ Edited ]

There is a post for it on the docs however at the bottom it says to add to 'bar-descriptor.xml' which is weird since web works uses config.xml. See docs here, https://developer.blackberry.com/html5/documentation/active_text.html

 

I haven't actually tried to experiment to see if it supported just hoping for a quick clarification if it's supported by web works.

BlackBerry Development Advisor
Posts: 624
Registered: ‎10-01-2009
My Device: Z10

Re: Invocation target pattern in web works

Hello,

 

I'm reaching out to our resident invoke guru. Will update you to clarify asap :smileywink:

Chad Tetreault | App Development Consultant | BlackBerry Developer Relations | developer.blackberry.com | @chadtatro
Retired
Posts: 1,561
Registered: ‎04-12-2010
My Device: BlackBerry Z10

Re: Invocation target pattern in web works

Looks to me like a copy/paste error from the native documentation (they're referring to Momentics IDE as well.) The config.xml should be the place for this.

Erik Oros | @WaterlooErik | eoros@blackberry.com | Developer Issue Tracker

If a reply has answered your question, please click Accept as Solution to help other visitors in the future.
Contributor
Posts: 35
Registered: ‎09-15-2012
My Device: AT&T Torch 9810

Re: Invocation target pattern in web works

Thx, I'll test it out.

Contributor
Posts: 35
Registered: ‎09-15-2012
My Device: AT&T Torch 9810

Re: Invocation target pattern in web works

[ Edited ]

This doesn't seem to be working on a 10.2 simulator. My invoke target snippet:

 <filter>
            <action>bb.action.VIEW</action>
            <action>bb.action.EDIT</action>
            <action>bb.action.OPEN</action>
            <mime-type>*</mime-type>
            <property var="uris" value="trackmymeds:"/>
        </filter>
        <invoke-target-pattern>
            <pattern-value type="uri">trackmymeds:</pattern-value>
        </invoke-target-pattern>
        <invoke-target-pattern>
            <pattern-value type="regex">(?i)trackmymeds:</pattern-value>
        </invoke-target-pattern>

 If I use this uri in the browser address bar, it prompts me to open the uri using my app as it should.

If I however, place this uri into a calendar event and open the calendar event, it's not highlighted in constrast to how a http:// would be highlighted if placed in the same calendar event.