AppliesTo question

Is there a flag for appliesto that restricts the Action to only apply to inline elements? I didn’t see one in the Wiki page. http://actionsforge.com/wikis/view/121-action-elements

Is this a case where you’d have to do a fwInterface loop and show an error?

Walter


actionsdev mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Hi Walter,
I don’t think there is anyway to check for this using the appliesto attribute although you can throw an error using fwApplyError.
Here’s a very basic example;
http://www.freewayactions.com/code/?f=Inflow-div-check.fwaction
Regards,
Tim.

On 13 Apr 2012, at 14:26, Walter Lee Davis wrote:

Is there a flag for appliesto that restricts the Action to only apply to inline elements? I didn’t see one in the Wiki page. http://actionsforge.com/wikis/view/121-action-elements

Is this a case where you’d have to do a fwInterface loop and show an error?


FreewayActions.com - Freeware and commercial Actions for Freeway Express & Pro - http://www.freewayactions.com
FreewayStyle.com - Free Freeway templates and parts to download, use and explore - http://www.freewaystyle.com


actionsdev mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Thanks. This whole area of the API needs some more thought, I think. A rationalization of language would go a long way, as would the inclusion of more nouns and verbs.

Walter

On Apr 13, 2012, at 10:24 AM, Tim Plumb wrote:

Hi Walter,
I don’t think there is anyway to check for this using the appliesto attribute although you can throw an error using fwApplyError.
Here’s a very basic example;
http://www.freewayactions.com/code/?f=Inflow-div-check.fwaction
Regards,
Tim.

On 13 Apr 2012, at 14:26, Walter Lee Davis wrote:

Is there a flag for appliesto that restricts the Action to only apply to inline elements? I didn’t see one in the Wiki page. http://actionsforge.com/wikis/view/121-action-elements

Is this a case where you’d have to do a fwInterface loop and show an error?


FreewayActions.com - Freeware and commercial Actions for Freeway Express & Pro - http://www.freewayactions.com
FreewayStyle.com - Free Freeway templates and parts to download, use and explore - http://www.freewaystyle.com


actionsdev mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options


actionsdev mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Hi walter as a shot in the dark can’t you just use

   if (fwItem.fwIsInlined) {

I used the above in one of the webyep action to check to see if something was an inline item or not.
not sure this helps
all the best max


actionsdev mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Thanks, that’s more or less what Tim was suggesting. I haven’t integrated it yet.

Walter

On Apr 14, 2012, at 6:36 AM, max wrote:

Hi walter as a shot in the dark can’t you just use

  if (fwItem.fwIsInlined) {

I used the above in one of the webyep action to check to see if something was an inline item or not.
not sure this helps
all the best max


actionsdev mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options


actionsdev mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options