<?xml version="1.0" encoding="utf-8" ?>
<?xml-stylesheet type="text/xsl" href="RSS_xslt_style.asp" version="1.0" ?>
<rss version="2.0" xmlns:WebWizForums="http://syndication.webwiz.co.uk/rss_namespace/">
 <channel>
  <title>Ecrion Forum : Generic Support</title>
  <link>http://www.ecrion.com/forum/</link>
  <description>This is an XML content feed of; Ecrion Forum : Generic Support : Last 10 Posts</description>
  <copyright>Copyright (c) 2006-2009 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Sun, 19 May 2013 11:34:59 +0000</pubDate>
  <lastBuildDate>Tue, 27 Nov 2012 13:07:49 +0000</lastBuildDate>
  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
  <generator>Web Wiz Forums 9.69</generator>
  <ttl>30</ttl>
  <WebWizForums:feedURL>www.ecrion.com/forum/RSS_topic_feed.asp?FID=19</WebWizForums:feedURL>
  <image>
   <title>Ecrion Forum</title>
   <url>http://www.ecrion.com/forum//images/logo.png</url>
   <link>http://www.ecrion.com/forum/</link>
  </image>
  <item>
   <title>Generic Support : Placeholder Constant for base64 image</title>
   <link>http://www.ecrion.com/forum/forum_posts.asp?TID=691&amp;PID=1538#1538</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ecrion.com/forum/member_profile.asp?PF=316" rel="nofollow">justinw</a><br /><strong>Subject:</strong> Placeholder Constant for base64 image<br /><strong>Posted:</strong> 27 Nov 2012 at 1:07pm<br /><br /><b>Question: &nbsp;</b>I have been asked to create a placeholder constant valuein Data Architect .dax file and during the render process in a .Net applicationreplace the placeholder with base64 for an image generated in memory. We don't want to store images on the network, just write them intothe stream. I have created a template where the image data is coming from anode in the XML and it works when I embed the base64 image data in the .daxfile. If I can do a replace while reading the stream for the .dax file, I coulddynamically insert images.<p ="Mso"><o:p></o:p></p><div><br></div><div><b>Answer: &nbsp;</b>Excellent question.</div><div><br></div><div><p ="Mso">This can be accomplished by following the steps below:<o:p></o:p></p><p ="Mso"><o:p>&nbsp;</o:p></p><p ="Mso">1.&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Inserta string constant in your dax diagram. This constant will be used to store thebase64 string representing your image (From Home - Functions - Constant; doubleclick to edit and select Value Type = string)<o:p></o:p></p><p ="Mso"><o:p>&nbsp;</o:p></p><p ="Mso">2.&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; InData Architect's XML editor he will see a structure like this, representing theconstant:<o:p></o:p></p><p ="Mso">&lt;das:const-function id="12"&gt;<o:p></o:p></p><p ="Mso">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;das:const-return-value id="13" value="&#091;base64string&#093;" type="string"/&gt; &lt;/das:const-function&gt;<o:p></o:p></p><p ="Mso"><o:p>&nbsp;</o:p></p><p ="Mso">Note that the element which contains the base64 stringhas id="13". This value is different from dax to dax.<o:p></o:p></p><p ="Mso"><o:p>&nbsp;</o:p></p><p ="Mso">Also, this can be referenced in the UI for easier access.<o:p></o:p></p><p ="Mso"><o:p>&nbsp;</o:p></p><p ="Mso">A list of overridable parameters can be obtained byclicking Parameter Information in DA Ribbon under the Help Group.&nbsp; Please see the attached image. <o:p></o:p></p><p ="Mso"><img src="uploads/public/param.png" height="469" width="456" border="0" /><br></p><p ="Mso">The dialog says that for object 6, you can set "value"to something.&nbsp;</p><p ="Mso"><o:p>&nbsp;</o:p></p><p ="Mso">3.&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Inyour .NET Application, you need to use our Ecrion.DAS API and set anappropriate JobProperty for the constant value. Below you have a snippet codeon how to do this:<o:p></o:p></p><p ="Mso">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <o:p></o:p></p><p ="Mso">Ecrion.DAS.JobParameters jp = newEcrion.DAS.JobParameters();<o:p></o:p></p><p ="Mso">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;jp.Diagram = new Ecrion.DAS.LocalDiagram("daxPath");&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <o:p></o:p></p><p ="Mso"><o:p>&nbsp;</o:p></p><p ="Mso">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Ecrion.DAS.JobProperty prop = new Ecrion.DAS.JobProperty("13","value", "data:," +&nbsp;image_base64_string);<o:p></o:p></p><p ="Mso"><o:p>&nbsp;</o:p></p><p ="Mso">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;jp.Diagram.Properties.Add(prop);<o:p></o:p></p></div>]]>
   </description>
   <pubDate>Tue, 27 Nov 2012 13:07:49 +0000</pubDate>
   <guid isPermaLink="true">http://www.ecrion.com/forum/forum_posts.asp?TID=691&amp;PID=1538#1538</guid>
  </item> 
  <item>
   <title>Generic Support : Import data from a CSV to my Database?</title>
   <link>http://www.ecrion.com/forum/forum_posts.asp?TID=585&amp;PID=1384#1384</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ecrion.com/forum/member_profile.asp?PF=316" rel="nofollow">justinw</a><br /><strong>Subject:</strong> Import data from a CSV to my Database?<br /><strong>Posted:</strong> 18 Jul 2012 at 2:28pm<br /><br /><b>Question: &nbsp;</b>Can the Data Architect take data from a CSV file and add content to a table in my database?<div><br></div><div><b>Answer: &nbsp;</b>Yes you can do so. &nbsp;First, you will need to ensure that you have the latest version of the Data Architect as this feature was added in 2012. &nbsp;Secondly, the following steps highlight the process in which to set up and run this to import your data accordingly. &nbsp;</div><div><br></div><div>For this example, we'll refer to a CSV file with three columns: &nbsp;number, first name, and last name. &nbsp;This sample id done in relation to the sample db that is available with the application when installed.</div><div><br></div><div><img src="uploads/public/dbimport10.png" height="650" width="999" border="0" /><br></div><div><br></div><div>1. &nbsp;Open the Data Architect</div><div><br></div><div>2. &nbsp;In the <b>File Tab</b>, select <b>New</b>, and then select <b>Database Document Output</b>.</div><div><br></div><div><img src="uploads/public/dbimport1.png" height="265" width="417" border="0" /><br></div><div><br></div><div>3. &nbsp;In the <b>Home Tab</b>, under the <b>Other Data Sources </b>group, select <b>CSV</b>. &nbsp;</div><div><br></div><div>4. &nbsp;For this example we select Employees.csv (as shown above) and in the options menu, check the box for "Contains Column Names" and press <b>OK</b>. &nbsp;</div><div><br></div><div><img src="uploads/public/dbimport2.png" height="325" width="440" border="0" /><br></div><div><br></div><div>5. &nbsp;In the Database Output box, double click on the Database element. &nbsp;Under <b>Choose Connection</b>, select the database connection of your choice (in this example <b>Sample DB</b>) and select <b>OK</b>. &nbsp;</div><div><br></div><div><img src="uploads/public/dbimport3.png" height="607" width="515" border="0" /><br></div><div><br></div><div>6. &nbsp;Right click on the Database element and select <b>New Schema</b>. &nbsp;Write schema name in the text box (in this example <b>dbo</b>). &nbsp;</div><div><br></div><div><img src="uploads/public/dbimport4.png" height="141" width="285" border="0" /><br></div><div><br></div><div>7. &nbsp;Right click on <b>Schema</b>&nbsp;and select <b>New Table</b>. &nbsp;In the resulting dialog, enter the database information to match your connection and needs. As an example:</div><div><blockquote style="margin: 0 0 0 40px; border: n&#111;ne; padding: 0px;"><div>a. &nbsp;Name: Emp</div><div>b. &nbsp;Command Type: &nbsp;Insert</div><div>c. &nbsp;Add a column for each required: &nbsp;FIRST_NAME (Type=Text) and LAST_NAME (Type=Text)</div><div><br></div></blockquote><img src="uploads/public/dbimport5.png" height="435" width="455" border="0" /></div><div><br></div><div>8. &nbsp;After selecting <b>OK</b>, drag corresponding lines from CSV Data Source to match Database Output.</div><div><br></div><div><img src="uploads/public/dbimport6.png" height="650" width="999" border="0" /><br></div><div><br></div><div>9. &nbsp;In the <b>View Tab</b>, select <b>Output View</b>&nbsp;(here you will see the generated SQL commands). &nbsp;Select <b>Execute SQL</b>.</div><div><br></div><div><img src="uploads/public/dbimport7.png" height="650" width="999" border="0" /><br></div><div><br></div><div>10. &nbsp;In the <b>SQL Command</b>&nbsp;dialog, select <b>Execute</b>. &nbsp;</div><div><br></div><div><img src="uploads/public/dbimport8.png" height="525" width="1024" border="0" /><br></div><div><br></div><div>11. &nbsp;To see the results within your database, navigate back to <b>Design View</b>. &nbsp;In the <b>Data Connections </b>window, right click on <b>Sample DB</b>&nbsp;and select <b>Reload Schema</b>. &nbsp;Drag and drop Emp Table into the Design Area. &nbsp;Right click on the block and select <b>View Data</b>. &nbsp;The resulting imported data should be present. &nbsp;</div><div><br></div><div><img src="uploads/public/dbimport9.png" height="643" width="551" border="0" /><br></div><div><br></div><div>This functionality also supports adding a new table or replacing existing content within a table. &nbsp;If you would like to obtain a sample of this process, you can always reach out to support@ecrion.com and we'll deliver the above for testing.</div><div><br></div><div>&nbsp;&nbsp; &nbsp;</div>]]>
   </description>
   <pubDate>Wed, 18 Jul 2012 14:28:30 +0000</pubDate>
   <guid isPermaLink="true">http://www.ecrion.com/forum/forum_posts.asp?TID=585&amp;PID=1384#1384</guid>
  </item> 
  <item>
   <title>Generic Support : Converting string date</title>
   <link>http://www.ecrion.com/forum/forum_posts.asp?TID=555&amp;PID=1317#1317</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ecrion.com/forum/member_profile.asp?PF=316" rel="nofollow">justinw</a><br /><strong>Subject:</strong> Converting string date<br /><strong>Posted:</strong> 31 May 2012 at 10:15am<br /><br /><b>Question: &nbsp;</b>I need help formatting a date in string format to date-time format in the Data Architect. &nbsp;How is this accomplished?<div><br></div><div><b>Answer: &nbsp;</b>This can be accomplished by using a combination of accepted formats and an available function within the Data Architect. &nbsp;</div><div><br></div><div><p ="Ms&#111;normal">1. &nbsp;The supported date time formatsare the following: datePartForMat timePartForMat<o:p></o:p></p></div><blockquote style="margin: 0 0 0 40px; border: n&#111;ne; padding: 0px;"><blockquote style="margin: 0 0 0 40px; border: n&#111;ne; padding: 0px;"><p ="MsoListParagraph" style="text-indent:-.25in;mso-list:l1 level1 lfo1"><p ="MsoListParagraph" style="text-indent:-.25in;mso-list:l0 level1 lfo1"><!--if !supLists--><span style="font-family: Symbol; ">·<span style="font-family: 'Times New Roman'; font-size: 7pt; line-height: normal; ">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span></span><!---->datePartForMat:<o:p></o:p></p><p ="MsoListParagraph" style="margin-left:1.0in;text-indent:-.25in;  mso-list:l0 level2 lfo1"><!--if !supLists--><span style="font-family: 'Courier New'; ">o<span style="font-family: 'Times New Roman'; font-size: 7pt; line-height: normal; ">&nbsp;&nbsp; </span></span><!---->d/M/yyyy <o:p></o:p></p><p ="MsoListParagraph" style="margin-left:1.0in;text-indent:-.25in;  mso-list:l0 level2 lfo1"><!--if !supLists--><span style="font-family: 'Courier New'; ">o<span style="font-family: 'Times New Roman'; font-size: 7pt; line-height: normal; ">&nbsp;&nbsp; </span></span><!---->dd/M/yyyy <o:p></o:p></p><p ="MsoListParagraph" style="margin-left:1.0in;text-indent:-.25in;  mso-list:l0 level2 lfo1"><!--if !supLists--><span style="font-family: 'Courier New'; ">o<span style="font-family: 'Times New Roman'; font-size: 7pt; line-height: normal; ">&nbsp;&nbsp; </span></span><!---->d/MM/yyyy <o:p></o:p></p><p ="MsoListParagraph" style="margin-left:1.0in;text-indent:-.25in;  mso-list:l0 level2 lfo1"><!--if !supLists--><span style="font-family: 'Courier New'; ">o<span style="font-family: 'Times New Roman'; font-size: 7pt; line-height: normal; ">&nbsp;&nbsp; </span></span><!---->dd/MM/yyyy <o:p></o:p></p><p ="MsoListParagraph" style="margin-left:1.0in;text-indent:-.25in;  mso-list:l0 level2 lfo1"><!--if !supLists--><span style="font-family: 'Courier New'; ">o<span style="font-family: 'Times New Roman'; font-size: 7pt; line-height: normal; ">&nbsp;&nbsp; </span></span><!---->d-M-yyyy <o:p></o:p></p><p ="MsoListParagraph" style="margin-left:1.0in;text-indent:-.25in;  mso-list:l0 level2 lfo1"><!--if !supLists--><span style="font-family: 'Courier New'; ">o<span style="font-family: 'Times New Roman'; font-size: 7pt; line-height: normal; ">&nbsp;&nbsp; </span></span><!---->dd-M-yyyy <o:p></o:p></p><p ="MsoListParagraph" style="margin-left:1.0in;text-indent:-.25in;  mso-list:l0 level2 lfo1"><!--if !supLists--><span style="font-family: 'Courier New'; ">o<span style="font-family: 'Times New Roman'; font-size: 7pt; line-height: normal; ">&nbsp;&nbsp; </span></span><!---->d-MM-yyyy <o:p></o:p></p><p ="MsoListParagraph" style="margin-left:1.0in;text-indent:-.25in;  mso-list:l0 level2 lfo1"><!--if !supLists--><span style="font-family: 'Courier New'; ">o<span style="font-family: 'Times New Roman'; font-size: 7pt; line-height: normal; ">&nbsp;&nbsp; </span></span><!---->dd-MM-yyyy <o:p></o:p></p><p ="MsoListParagraph" style="margin-left:1.0in;text-indent:-.25in;  mso-list:l0 level2 lfo1"><!--if !supLists--><span style="font-family: 'Courier New'; ">o<span style="font-family: 'Times New Roman'; font-size: 7pt; line-height: normal; ">&nbsp;&nbsp; </span></span><!---->and reversed (eg: yyyy/MM/dd, yyyy-M-dd, etc)<o:p></o:p></p><p ="MsoListParagraph" style="text-indent:-.25in;mso-list:l0 level1 lfo1"><!--if !supLists--><span style="font-family: Symbol; ">·<span style="font-family: 'Times New Roman'; font-size: 7pt; line-height: normal; ">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span></span><!---->timePartForMat<o:p></o:p></p><p ="MsoListParagraph" style="margin-left:1.0in;text-indent:-.25in;  mso-list:l0 level2 lfo1"><!--if !supLists--><span style="font-family: 'Courier New'; ">o<span style="font-family: 'Times New Roman'; font-size: 7pt; line-height: normal; ">&nbsp;&nbsp; </span></span><!---->hh:mm:ss&nbsp;<o:p></o:p></p></p></blockquote></blockquote><div><p ="MsoListParagraph" style="text-indent:-.25in;mso-list:l1 level1 lfo1"><o:p></o:p></p><p ="MsoListParagraph" style="margin-left:1.0in;text-indent:-.25in;  mso-list:l1 level2 lfo1"><o:p></o:p></p><p ="MsoListParagraph" style="margin-left:1.0in;text-indent:-.25in;  mso-list:l1 level2 lfo1"><o:p></o:p></p><p ="MsoListParagraph" style="margin-left:1.0in;text-indent:-.25in;  mso-list:l1 level2 lfo1"><o:p></o:p></p><p ="MsoListParagraph" style="margin-left:1.0in;text-indent:-.25in;  mso-list:l1 level2 lfo1"><o:p></o:p></p><p ="MsoListParagraph" style="margin-left:1.0in;text-indent:-.25in;  mso-list:l1 level2 lfo1"><o:p></o:p></p><p ="MsoListParagraph" style="margin-left:1.0in;text-indent:-.25in;  mso-list:l1 level2 lfo1"><o:p></o:p></p><p ="MsoListParagraph" style="margin-left:1.0in;text-indent:-.25in;  mso-list:l1 level2 lfo1"><o:p></o:p></p><p ="MsoListParagraph" style="margin-left:1.0in;text-indent:-.25in;  mso-list:l1 level2 lfo1"><o:p></o:p></p><p ="MsoListParagraph" style="margin-left:1.0in;text-indent:-.25in;  mso-list:l1 level2 lfo1"><o:p></o:p></p><p ="MsoListParagraph" style="text-indent:-.25in;mso-list:l1 level1 lfo1"><o:p></o:p></p><p ="MsoListParagraph" style="margin-left:1.0in;text-indent:-.25in;  mso-list:l1 level2 lfo1"><o:p></o:p></p><p ="Ms&#111;normal">&nbsp;</p><p ="Ms&#111;normal">An option would be to use a “Convert to Date” function block inside the DAX (from All Functions –Conversion – to datetime).&nbsp;</p><p ="Ms&#111;normal">This function block has 2 inputparameters: <o:p></o:p></p><p ="MsoListParagraph" style="text-indent:-.25in;mso-list:l0 level1 lfo2"><!--if !supLists--><span style="font-family: Symbol; ">·<span style="font-family: 'Times New Roman'; font-size: 7pt; line-height: normal; ">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span></span><!---->Input – you can usea constant of type “string” as input and pass the value from your applicationin the desired format<o:p></o:p></p><p ="MsoListParagraph" style="text-indent:-.25in;mso-list:l0 level1 lfo2"><!--if !supLists--><span style="font-family: Symbol; ">·<span style="font-family: 'Times New Roman'; font-size: 7pt; line-height: normal; ">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span></span><!---->Format – here youcan use a constant string for formatting purposes. Note that the format stringand the input string must match<o:p></o:p></p><p ="Ms&#111;normal">See the sample diagram below.</p><p ="Ms&#111;normal"><br></p><p ="Ms&#111;normal"><img src="uploads/public/date_c&#111;nversi&#111;n.png" height="727" width="1365" border="0" /><br></p><p ="Ms&#111;normal"><span style="color:#1F497D">&nbsp;</span></p></div>]]>
   </description>
   <pubDate>Thu, 31 May 2012 10:15:16 +0000</pubDate>
   <guid isPermaLink="true">http://www.ecrion.com/forum/forum_posts.asp?TID=555&amp;PID=1317#1317</guid>
  </item> 
 </channel>
</rss>