<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://www.aras.com/community/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>Mark Lawrence さんのアクティビティ</title><link>https://www.aras.com/community/members/marlawre</link><description>Mark Lawrence さんの最近のアクティビティ</description><dc:language>ja-JP</dc:language><generator>Telligent Community 12</generator><item><title>Question as to when relationships are created in the Add process</title><link>https://www.aras.com/community/f/development/5978/question-as-to-when-relationships-are-created-in-the-add-process</link><pubDate>Wed, 01 May 2019 14:02:35 GMT</pubDate><guid isPermaLink="false">916d3f7e-8ddc-42f8-8d45-380822f51406:ee9bd867-c3b8-4a93-99a0-2923375a054e</guid><dc:creator>Mark Lawrence</dc:creator><description>&lt;p&gt;Probably should throw this over to Aras Support, but I thought I would ask the knowledgeable people here first.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Does anyone know at what stage in the add process of a record when the relationships are create.&amp;nbsp; Here is my scenario.&amp;nbsp; I am adding a record that will be a child for example of a part process .&amp;nbsp; During an onAfterAdd trigger on the item type of the child, I want to go and read the parent record to be able to populate some data from the parent onto the child.&amp;nbsp; So I read the relationship item type using the id of the child to search the related id of the parent.&amp;nbsp; That read fails and tells me there are no records available.&amp;nbsp; However, after the whole saving process is complete, I go into NASH and query that exact data using the ID and related ID in the relationship and it&amp;nbsp;retrieves the data with no issue.&amp;nbsp; Which makes me think that at the time I am trying to read the parent in the trigger, the relationship has not been created.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Anyone have any ideas on this?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>Date Formatting in Aras</title><link>https://www.aras.com/community/f/development/5913/date-formatting-in-aras</link><pubDate>Wed, 03 Apr 2019 15:18:53 GMT</pubDate><guid isPermaLink="false">916d3f7e-8ddc-42f8-8d45-380822f51406:46bdaf7d-b1f9-4a9a-86d1-8895e6fe7330</guid><dc:creator>Mark Lawrence</dc:creator><description>&lt;p&gt;Hoping someone can help me with this weird issue I am having.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I have an item type that has a property defined h_attain_date and it&amp;#39;s data type is date with no pattern defined.&amp;nbsp; I retrieve the data for this from our ERP system using a web service that returns a data set and I apply the value of the attain date to the property. The content of the date field in the data set is:&lt;/p&gt;
&lt;p&gt;5/31/2017 12:00:00 AM&lt;/p&gt;
&lt;p&gt;and the code that outputs this to the debug file I&amp;#39;m using is&amp;nbsp;&lt;/p&gt;
&lt;p&gt;CCO.Utilities.WriteDebug(&amp;quot;Project Update&amp;quot;, Convert.ToString(partRow[p].h_attain_date));&lt;/p&gt;
&lt;p&gt;I associate the value to the property using&amp;nbsp;&lt;/p&gt;
&lt;p&gt;updItem.setProperty(&amp;quot;h_attain_date&amp;quot;, Convert.ToString(partRow[p].h_attain_date));&lt;/p&gt;
&lt;p&gt;This all works fine and I see the data in the application as 5/31/2017.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Now comes the oddity.&amp;nbsp; I have another date property on another item date and the property name is h_due_date and again has no pattern defined.&amp;nbsp; I also use a web service with a data set to retrieve this data from our ERP system and I want to apply that value to the property.&lt;/p&gt;
&lt;p&gt;The content of the date field in the data set is:&lt;/p&gt;
&lt;p&gt;4/2/2019 12:00:00 AM&lt;/p&gt;
&lt;p&gt;and the code that outputs this to the debug file I&amp;#39;m using is&amp;nbsp;&lt;/p&gt;
&lt;p&gt;CCO.Utilities.WriteDebug(&amp;quot;Project Update&amp;quot;, Convert.ToString(po_row[r].h_due_date));&lt;/p&gt;
&lt;p&gt;I associate the value to the property using&amp;nbsp;&lt;/p&gt;
&lt;p&gt;addPO.setProperty(&amp;quot;h_due_date&amp;quot;, Convert.ToString(po_row[r].h_due_date));&lt;/p&gt;
&lt;p&gt;When I run this piece of code, I get the error:&lt;/p&gt;
&lt;p&gt;The specified value for property Due Date &amp;#39;4/2/2019 12:00:00 AM&amp;#39; of &amp;lt;item type&amp;gt; does not match the required format.&lt;/p&gt;
&lt;p&gt;This is where it gets confusing for me, as the definitions are exactly the same, the code used to display the value returned from the web service is exactly the same with the exception of the field name, and the assignment of the property is done exactly the same way.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Anyone shed any light on this possibly??&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>Significance of the Checkedout Path on the File file type</title><link>https://www.aras.com/community/f/development/5912/significance-of-the-checkedout-path-on-the-file-file-type</link><pubDate>Mon, 01 Apr 2019 14:38:59 GMT</pubDate><guid isPermaLink="false">916d3f7e-8ddc-42f8-8d45-380822f51406:bcf0550d-c799-4258-ae5e-159db1a3e073</guid><dc:creator>Mark Lawrence</dc:creator><description>&lt;p&gt;Good morning - I&amp;#39;m hoping someone can help me here.&amp;nbsp; I&amp;#39;m wondering what is the significance of the property Checkedout Path when adding a file to the vault manually.&lt;/p&gt;
&lt;p&gt;I have the following code that takes a PDF file from a data structure that I am passing in to the method, writes the physical file out and then checks the file into the Vault.&lt;/p&gt;
&lt;p&gt;phyFile = @&amp;quot;D:\\Temp\\&amp;quot; + fileName;&lt;br /&gt; FileStream fs = new FileStream(phyFile,FileMode.OpenOrCreate);&lt;br /&gt; fs.Write(matRecord[0].h_report_blob,0,matRecord[0].h_report_blob.Length);&lt;br /&gt; fs.Close();&lt;br /&gt; Item newReport = inn.newItem(&amp;quot;File&amp;quot;, &amp;quot;add&amp;quot;);&lt;br /&gt; newReport.setAttribute(&amp;quot;doGetItem&amp;quot;, &amp;quot;0&amp;quot;);&lt;br /&gt; newReport.setProperty(&amp;quot;Comments&amp;quot;, &amp;quot;Materials Report&amp;quot;);&lt;br /&gt; newReport.setProperty(&amp;quot;file_type&amp;quot;, pdfType.getProperty(&amp;quot;id&amp;quot;));&lt;br /&gt; newReport.setProperty(&amp;quot;filename&amp;quot;, fileName);&lt;br /&gt; newReport.attachPhysicalFile(phyFile);&lt;br /&gt; newReport = newReport.apply();&lt;/p&gt;
&lt;p&gt;if(File.Exists(phyFile))&lt;br /&gt;{&lt;br /&gt;&amp;nbsp;File.Delete(phyFile);&lt;br /&gt;&amp;nbsp;}&lt;/p&gt;
&lt;p&gt;Once this code is complete, I can search the physical vault on my machine and I can see that the file has been created in the vault, and it has been deleted from the local file system from where I attached it.&amp;nbsp; When I go to view the physical file from within Aras, my machine actually gives me a Blue Screen of Death (BSOD) and completely crashes.&amp;nbsp; In attempting to try and figure out what is going on, I commented out the last section of code to delete the file from the local file system.&amp;nbsp; When I do that and I view the file from within Aras, it displays perfectly.&lt;/p&gt;
&lt;p&gt;If I take the @&amp;quot;D:\\Temp\\&amp;quot; + section out of the code, where I would expect it to write to the Innovator\Server\Temp folder (I&amp;#39;m guessing on this), I get an Object: Object error.&lt;/p&gt;
&lt;p&gt;Can I remove the file from the path that it is check in from?&amp;nbsp; Is this the problem that Aras is creating a link to the path from which it is being checked in from and when that file is deleted, it is causing all kinds of problems?&amp;nbsp; I would think that I would be able to just view it seeing that it has actually been created in the vault.&amp;nbsp; Is there somewhere that I can check to see the physical vault location property of the file when it is checked in?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;TIA for the help!!!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>Best way to check in external files</title><link>https://www.aras.com/community/f/development/4064/best-way-to-check-in-external-files</link><pubDate>Mon, 10 Dec 2018 09:22:17 GMT</pubDate><guid isPermaLink="false">916d3f7e-8ddc-42f8-8d45-380822f51406:abb8f881-cc78-43ef-8b1b-4714af7b4236</guid><dc:creator>Mark Lawrence</dc:creator><description>I&amp;#39;m hoping someone can help.  I need to check in PDF files that are being retrieved from our external ERP application via a server side method.  I can write the file from the web service to disk, but need the best method to create the Document item and check it in to the repository.  Any sample code would be greatly appreciated.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>Ask A Question I</title><link>https://www.aras.com/community/achievements/460ac7df-7ccc-4c42-a204-9e05eef3be09</link><pubDate>Wed, 12 Dec 2018 22:58:43 GMT</pubDate><guid isPermaLink="false">916d3f7e-8ddc-42f8-8d45-380822f51406:41925aa7-64fc-4b0e-8f8a-2b45c5bfb9ef</guid><dc:creator /><description>Ask a question in a forum.</description></item><item><title>Creating Relationship</title><link>https://www.aras.com/community/f/development/4059/creating-relationship</link><pubDate>Mon, 26 Nov 2018 10:26:28 GMT</pubDate><guid isPermaLink="false">916d3f7e-8ddc-42f8-8d45-380822f51406:d2b9602c-075e-4889-960a-19ff85c01349</guid><dc:creator>Mark Lawrence</dc:creator><description>I am having a problem with creating a relationship between two item types.  I have an extension to projects where we have our own part record (HPP) with additional data.  The relationship between that HPP part record and the project is done through the UI and is set correctly.  I have a web service that retrieves data from our ERP application and in that web service, I have the ID of the HPP part record so that I can get it immediately after returning from the web service.  I have written data to a debug log and that shows that I do have the actual HPP record that I am expecting to see.  I now want to create my own related customer (HPC) record and relate it to the HPP record.  In the code that is executing, I am correctly creating the HPC record (again, dumping the data to log files).  However, the relationship record(HPPC)  is not being created.  Here is my code that is executing:

&amp;nbsp;

As noted before HPP and HPC are valid records with valid IDs.

Item partCustLink = HPP.createRelationship(&amp;quot;HPPC&amp;quot;, &amp;quot;add&amp;quot;);
partCustLink.setRelatedItem(HPC);
partCustLink.apply();

Can anyone throw any light on why the HPPC record is not being created?

TIA

&amp;nbsp;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>Browser Minimum Requirement Check</title><link>https://www.aras.com/community/f/getting-started/3245/browser-minimum-requirement-check</link><pubDate>Fri, 21 Apr 2017 12:07:16 GMT</pubDate><guid isPermaLink="false">916d3f7e-8ddc-42f8-8d45-380822f51406:39241cb0-8e9b-49ca-95f4-b301a0b1433d</guid><dc:creator>Mark Lawrence</dc:creator><description>We as a corporation are a new user to Innovator and have just got the first server installed in V11SP9.  The issues that I am having are with the different browsers.  One my local Windows 10 machine, I can run Innovator perfectly with IE 11 and Chrome.  However, when trying to run Edge, I get the &amp;quot;You are currently running browser &amp;quot;Microsoft Edge 13&amp;quot;. The browser has failed the browser requirement check&amp;quot; error.  Another machine running Windows 10 on our network works fine with Edge but not IE 11.  A third workstation running Windows 10 will not work on either Edge or IE11 at all - the same browser requirement error appears.

Can someone point me to some more technical info on the differences between the browsers so I can try and troubleshoot these issues.

&amp;nbsp;

Thanks very much

&amp;nbsp;

Mark Lawrence

HEICO Aerospace

Hollywood, FL&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>