Hi,

Is there in general a way to access protected vars like these in a custom
result format
or is this the sad end of the story? Is there any existing result format
which distinguishes between a caption or aliase name for a property and a
real label/property name in an ask query? 

Help is very appreciated, because currently my result format can't handle
captions. 
Which would be a strange behavior for users.


thx, in advance Steve 

-----Ursprüngliche Nachricht-----
Von: Lists [mailto:li...@psycholutions.com] 
Gesendet: Mittwoch, 13. März 2013 23:04
An: semediawiki-devel@lists.sourceforge.net
Betreff: [SMW-devel] m_caption and m_dbkey

Hey,


An interesting question...

How can I access "m_caption" and "m_dbkey" from a property of a result
object in a custom result format?

thank you Steve 


----------------------------------------------------------------------------
--
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics Download AppDynamics Lite for
free today:
http://p.sf.net/sfu/appdyn_d2d_mar
_______________________________________________
Semediawiki-devel mailing list
Semediawiki-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/semediawiki-devel

Hi Jeroen,

I don't have to make it dependent on SF see example 2 "a little bit deeper".
I need the possible property values for each property for an inline editing
for sem. properties- for example provided drop downs or autocompletes. I can
get the user defined aliases as label from the result opbject that's right. 

<code>
$propertyLabel = $field->getPrintRequest()->getLabel();
</code>

The question is how can I get the corresponding original property name? I'm
afraid this is not distinguished in the reault object.
Are there any other methods like db queries or other approaches to provide
this?

cheers, Steve

-----Ursprüngliche Nachricht-----
Von: Jeroen De Dauw [mailto:jeroended...@gmail.com]
Gesendet: Mittwoch, 13. März 2013 18:14
An: Lists
Cc: semediawiki-devel@lists.sourceforge.net
Betreff: Re: [SMW-devel] Property Names in Semantic Result Formats

Hey,


Why are you trying to fetch more information from the store in your result
format? Normally a result format ought to work given just a query result
object. Also, why are you making your result format dependent on Semantic
Forms? That seems very strange.

Cheers

--
Jeroen De Dauw
http://www.bn2vs.com
Don't panic. Don't be evil.
--



----------------------------------------------------------------------------
--
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics Download AppDynamics Lite for
free today:
http://p.sf.net/sfu/appdyn_d2d_mar
_______________________________________________
Semediawiki-devel mailing list
Semediawiki-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/semediawiki-devel


------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_mar
_______________________________________________
Semediawiki-devel mailing list
Semediawiki-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/semediawiki-devel

Reply via email to