Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
THRUST SERVICES & TOOLS
CLOUD EDITIONS
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Web CMS (TeamSite)
How to identify new record in a DCR
jeetu
Hi,
I am usuing Ts 6.5 on windows 2000.
How do i identify a new record added in to a DCR.?
I have a DCR with replicants in it.
Each record in the replicant will generate a HTML page dynamically based upon the date he enetered.
For example:
I have a DCR for the month of Jan 06 (for Circulars )and it contains multiple records(for each or alternated day) , which in turn will generate multiple HTMLs based upon the number of records.
But i want to preven generating multiple HTMLs, rather than generating HTML for the newly added record.
Does any one have any idea of how to do it?
code for the DCT is as below:
<?xml version="1.0" standalone="no"?>
<!DOCTYPE data-capture-requirements SYSTEM "datacapture6.0.dtd">
<data-capture-requirements type="content" name="Circulars">
<!-- data-capture-requirements elements contain area elements -->
<ruleset name="Circular">
<description>
Enter the Circular details
</description>
<item name="content_author">
<label>Content Author</label>
<description>Author of content. This field is autogenerated.</description>
<text required="f" size="15" maxlength="50">
<inline command="iwperl E:/iw-home/httpd/iw-bin/get_content_author.ipl"/>
</text>
</item>
<item name="Circulars">
<replicant min="1" max="250">
<item name="Date">
<label>Date</label>
<select name ="Date" required="t">
<option label="1" value="1" />
<option label="2" value="2" />
<option label="3" value="3" />
<option label="4" value="4" />
<option label="5" value="5" />
<option label="6" value="6" />
<option label="7" value="7" />
<option label="8" value="8" />
<option label="9" value="9" />
<option label="10" value="10" />
<option label="11" value="11" />
<option label="12" value="12" />
<option label="13" value="13" />
<option label="14" value="14" />
<option label="15" value="15" />
<option label="16" value="16" />
<option label="17" value="17" />
<option label="18" value="18" />
<option label="19" value="19" />
<option label="20" value="20" />
<option label="21" value="21" />
<option label="22" value="22" />
<option label="23" value="23" />
<option label="24" value="24" />
<option label="25" value="25" />
<option label="26" value="26" />
<option label="27" value="27" />
<option label="28" value="28" />
<option label="29" value="29" />
<option label="30" value="30" />
<option label="31" value="31" />
</select>
</item>
<item name="Month">
<label>Month</label>
<select name ="Month" required="t">
<option label="January" value="January" />
<option label="February" value="February" />
<option label="March" value="March" />
<option label="April" value="April" />
<option label="May" value="May" />
<option label="June" value="June" />
<option label="July" value="July" />
<option label="August" value="August" />
<option label="September" value="September" />
<option label="October" value="October" />
<option label="November" value="November" />
<option label="December" value="December" />
</select>
</item>
<item name="Year">
<label>Year</label>
<select name ="Year" required="t">
<option label="2001" value="2001" />
<option label="2002" value="2002" />
<option label="2003" value="2003" />
<option label="2004" value="2004" />
<option label="2005" value="2005" />
<option label="2006" value="2006" />
<option label="2007" value="2007" />
<option label="2008" value="2008" />
<option label="2009" value="2009" />
<option label="2010" value="2010" />
<option label="2011" value="2011" />
<option label="2012" value="2012" />
<option label="2013" value="2013" />
<option label="2014" value="2014" />
<option label="2015" value="2015" />
<option label="2016" value="2016" />
<option label="2017" value="2017" />
<option label="2018" value="2018" />
<option label="2019" value="2019" />
<option label="2020" value="2020" />
<option label="2021" value="2021" />
<option label="2022" value="2022" />
<option label="2023" value="2023" />
<option label="2024" value="2024" />
<option label="2025" value="2025" />
</select>
</item>
<item name="Issuing_Department">
<label>Issuing Department</label>
<select name ="Issuing_Department" required="t">
<option label="Capital Market (Equities) Trade" value="Capital Market (Equities) Trade" />
<option label="Retail Debt Market" value="Retail Debt Market" />
<option label="Corporate Communications" value="Corporate Communications" />
<option label="Finance & Accounts" value="Finance and Accounts" />
<option label="Futures & Options" value="Futures and Options" />
<option label="Inspection, Investigation and Compliance" value="Inspection, Investigation and Compliance" />
<option label="Legal & Arbitration" value="Legal and Arbitration" />
<option label="Listing" value="Listing" />
<option label="Membership" value="Membership" />
<option label="Mutual Fund Service System" value="Mutual Fund Service System" />
<option label="Systems and Telecommunication" value="Systems and Telecommunication" />
<option label="Wholesale Debt Market" value="Wholesale Debt Market" />
</select>
</item>
<item name="Subject">
<label>Subject</label>
<text required="t" size="50" maxlength="200" />
</item>
<item name="Download_Ref_No">
<label>Download Reference Number</label>
<text required="t" size="50" maxlength="200" />
</item>
<item name="Download_File_Name">
<description>
</description>
<label>Upload File Name</label>
<text required="t" size="50">
<cgi-callout url="/iw-bin/promptFileUpload_Circular.ipl" label="Upload File" window-features="width=400, height=200, resizable=no, toolbar=no, scrollbars=auto"/>
</text>
</item>
<item name="Category">
<label>Category</label>
<select>
<option value ="Select a Category" label="Select a Category" selected="t" />
<option value="Settlement Calendar" label="Settlement Calendar"/>
<option value="Settlement Calendar1" label="Settlement Calendar1"/>
</select>
</item>
<item name="SettcaldMonth">
<label>Settlement Calendar Month</label>
<select name ="Month" required="f">
<option label="January" value="Jan" />
<option label="February" value="Feb" />
<option label="March" value="Mar" />
<option label="April" value="Apr" />
<option label="May" value="May" />
<option label="June" value="Jun" />
<option label="July" value="Jul" />
<option label="August" value="Aug" />
<option label="September" value="Sep" />
<option label="October" value="Oct" />
<option label="November" value="Nov" />
<option label="December" value="Dec" />
</select>
</item>
<item name="SettcaldYear">
<label>Settlement Calendar Year</label>
<select name ="Year" required="f">
<option label="2001" value="2001" />
<option label="2002" value="2002" />
<option label="2003" value="2003" />
<option label="2004" value="2004" />
<option label="2005" value="2005" />
<option label="2006" value="2006" />
<option label="2007" value="2007" />
<option label="2008" value="2008" />
<option label="2009" value="2009" />
<option label="2010" value="2010" />
<option label="2011" value="2011" />
<option label="2012" value="2012" />
<option label="2013" value="2013" />
<option label="2014" value="2014" />
<option label="2015" value="2015" />
<option label="2016" value="2016" />
<option label="2017" value="2017" />
<option label="2018" value="2018" />
<option label="2019" value="2019" />
<option label="2020" value="2020" />
<option label="2021" value="2021" />
<option label="2022" value="2022" />
<option label="2023" value="2023" />
<option label="2024" value="2024" />
<option label="2025" value="2025" />
</select>
</item>
</replicant>
</item>
<script><![CDATA[
IWDatacapture.getItem("content_author").setReadOnly(true);
]]></script>
<script>
<![CDATA[
function init() {
IWEventRegistry.addItemHandler("/Circulars/Category","onItemChange", categoryChange);
categoryChange(IWDatacapture.getItem("/Circulars/Category"));
}
function categoryChange(item) {
var flag = item.getOptions()[item.getValue()].value == "Settlement Calendar";
IWDatacapture.getItem("/Circulars[1]/SettcaldYear").setVisible(flag);
IWDatacapture.getItem("/Circulars[1]/SettcaldMonth").setVisible(flag);
IWDatacapture.redraw();
}
//Now do the initialization...
IWEventRegistry.addFormHandler("onFormInit", init);
]]>
</script>
</ruleset>
</data-capture-requirements>
Regards
jitendra
Find more posts tagged with
Comments
Adam Stoller
An off-the-top-of-the-head idea.
Use FormAPI on-load to initially mark a hidden element in each replicant as "pre-existing".
Whenever you modify an existing or create a new instance of the replicant - mark the hidden element as "new" (this could be a simple boolean - you decided what '1' and '0' represent)
In your PT - as you traverse the replicant instances - check the hidden element - and if it isn't marked as "new" - don't attempt to [re]generate a page for it.
I'm assuming the reason for this is that you are trying to shave some time off the page generation process - otherwise it really shouldn't matter if you regenerate the page - should it?
--fish
Senior Consultant, Quotient Inc.
http://www.quotient-inc.com
jeetu
Hi Fish,
Thanks.
Yse i am trying to save the page generation process. And also i am inoking a workflow which attaches the files generated from the DCR to it.
SO as the replicants keeps on growing , i dont want to attach all the flie generated from the DCR to the workflow.Rather i want to attach only those files which are updated/created and are the latest.
I will try to work on your option and see whether it suits my needs.
Thanks once again.
Regards
Jeetu