The formatting process is intentionally not that automatic, because often you 
want to know what is the unformatted raw string. To get the 
formatting/substitution to happen you need to to pass the string through 
Session.Format().

-----Original Message-----
From: Ajay Bhandari [mailto:aja...@microsoft.com]
Sent: Friday, January 02, 2009 8:09 AM
To: wix-users@lists.sourceforge.net
Subject: [WiX-users] Reading custom record (column type = Formatted) from DTF 
custom action

I have custom table defined which has a column of type "Formatted". As I 
understand, this column type will allow me to define value consisting of 
property names etc that will be resolved automatically.

<CustomTable Id=some_table>
<Column Id=xyz Type=Formatted .../>
...
<Row>
<Data Column=xyz>[MYPROPERTY]</Data>
</Row>
...
</CustomTable>

/// code in CA
View myview = session.Database.OpenView("Select * from some_table");
myView.Execute();
Record rec = myView.Fetch();

// This should return MYPROPERTY value but always returns "[MYPROPERTY]"
String myPropVal = (string)rec[1];



When I try to read this from DTF custom action, the record value always 
contains the formatted string 'as-is'. It never gets resolved to the property 
value. My CA is sequenced after "InstallInitialize".

Sadly, I couldn't find a sample/reference anywhere about this scenario. 
Appreciate if you can help me diagnose and find out what am I doing wrong here?

Thanks.
Ajay
------------------------------------------------------------------------------
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


------------------------------------------------------------------------------
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to