Hello,
I am having trouble making the Attribute Actions work in 1.0.2 Kore and 1.3.0 Mimas in Windows XP. Can anyone tell me what is wrong? Steps Followed 1. Added a Shape file containing buildings 2. Right Click building layer and open properties and clicked Action tab 3. Action Property Name = Google Search Action = firefox http://google.com/search?q= 4. Selected the field BUILD and clicked Insert field. Now Actions String is firefox http://google.com/search?q=%BUILD <http://google.com/search?q=%25BUILD> 5. Checked Capture Output 6. Clicked Insert Action.Clicked Apply and Ok 7. Using the Identify tool clicked on a feature 8. In the Identify feature results window right clicked and selected the action Google Search 9. Unable to run command firefox http://google.com/search?q=marina 10. I ran the firefox http://google.com/search?q=INDIA command from my run prompt and I was able to open the browser. Can any one let me know what I am missing to invoke firefox from QGIS environment? Thanks. Regards Kumaran From: qgis-user-boun...@lists.osgeo.org [mailto:qgis-user-boun...@lists.osgeo.org] On Behalf Of JD Comtois Sent: Monday, November 23, 2009 6:14 AM To: Richard Duivenvoorde Cc: qgis-user@lists.osgeo.org Subject: Re: [Qgis-user] attribute actions oddities in 1.3.0? Hi Richard. thanks for your interest. I have only the filename (not the full path) as the attribute value. In the action definition, I used %% and not %view1. using this approach in 1.0.1KORE i was able to simply right click on any of the attribute values and run the action and that attribute value would be sent to the destination application (in this case VLC media player). In 1.0.1 the action had to have the full path to the application in one set of quotes, and then a space and then in a separate set of quotes, I would put the path to the file to be viewed but in place of the actual filename, I put %%. this is supposed to allow the value of the selected attribute to be sent to the application. thus, i had the action defined as: "c:\program files\vlc\vlc.exe" "c:\pics_n_vids\%%" So that when I right clicked on the value of a given attribute, that value would replace the %% and the video or picture would play. could you try that and see what happens? thanks! jd On Sun, Nov 22, 2009 at 4:44 PM, Richard Duivenvoorde <rdmaili...@duif.net> wrote: Richard Duivenvoorde wrote: <attributeactions> <actionsetting action="C:/programs/IrfanView/i_view32.exe c:\temp\issues\actionAttribute\%%" capture="0" name="task4" /> <actionsetting action="C:/programs/IrfanView/i_view32.exe <actionsetting action=""C:/programs/IrfanView/i_view32.exe" "c:\temp\issues\actionAttribute\%view1"" capture="0" name="task6" /> </attributeactions> task4 was not working (but seemed to be an example from you email? So I tried that also ... ). mmm, wrong copy pasta ... <attributeactions> <actionsetting action="C:/programs/IrfanView/i_view32.exe c:\temp\issues\actionAttribute\%%" capture="0" name="task4" /> <actionsetting action="C:/programs/IrfanView/i_view32.exe c:\temp\issues\actionAttribute\%view1" capture="0" name="task5" /> <actionsetting action=""C:/programs/IrfanView/i_view32.exe" "c:\temp\issues\actionAttribute\%view1"" capture="0" name="task6" /> </attributeactions>
_______________________________________________ Qgis-user mailing list Qgis-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-user