Discussions
Categories
Choose a Product
THRUST SERVICES
CORE APPS
CE PRODUCTS
...
Quick Links
POPULAR
HELPFUL TIPS
Groups
My Links
FOR SIGNED IN MEMBERS:
Back to website
Home
Designing Analytics Reports
How to pattern format a data item using the API
Migrateduser
<div>Hi,</div>
<div> </div>
<div>Thank you for this great s<span style="color:rgb(40,40,40);font-family:'Source Sans Pro', sans-serif;">ample!</span></div>
<div>I tried and failed to show dates in the format of "yyyy/MM/dd".</div>
<div> </div>
<div>var mydata = elementFactory.newDataItem( null );</div>
<div>mydata.setResultSetColumn( <span>mappingColumnList</span><span style="color:rgb(102,102,0);">[</span><span>i</span><span style="color:rgb(102,102,0);">]</span>);</div>
<div> </div>
<div>// if column type is "date", add format</div>
<div> if ( myColTypes
=="date" ){</div>
<div> <span> </span>var myFormat = StructureFactory.newFormatValue();</div>
<div> myFormat.setCategory("Custom");</div>
<div> <span> </span>myFormat.setPattern( "yyyy/MM/dd" );</div>
<div> }</div>
<div> </div>
<div>Can someone please let me know how to link "myFormat" to "mydata"? <br>
Thank you for help!</div>
<div> </div>
<div>David</div>
Find more posts tagged with
Comments
There are no comments yet