How to Loop through another list and update a column with SharePoint Designer 2013 Workflow

Hi,
I am trying to get my head around the new 2013 Workflow Engine and SharePoint Designer 2013 Workflow Text-Based Designer.
I have two lists.
List A has 2 columns: Title, Completed (Yes/No)
List B has 3 columns: Title, LookupListATitle, Completed (Yes/No)
All the 2013 Workflow components have been installed and configured and I am selecting the 2013 Workflow option in SPD
I am trying to set off a 2013 Workflow when an item in List A is edited to Loop through List B and select items where the LookupListATitle column's value is equal to the Title value of the current item, and set the value of the Completed column for those
items in ListB to "Yes".
I have the Workflow configured like this:
Stage: Stage 1
IF Current Item:Completed equals Yes
Loop: 1
The contents of this loop will run repeatedly while: ListB:LookupListATitle equals Current Item: Title
Update item in ListB. 
(The dialog options for the update item action as follows:
List: ListB
Field: Completed, Value: Yes
In the Find the List Item section
Field: LookupListATitle
Value: Current Item: Title)
Transition to stage
Go to End of Workflow
When I update an item in ListA and set its Completed column to Yes, I would expect the Workflow to find all the items in List B where the Lookup column is equal to ListA's Title (there are 2) and update their Completed column to Yes. But it doesn't work.
When I look at the Workflow Status it says the Internal Status is "Canceled" and the information pop up has the following alien language (and may be truncated):
RequestorId: 95f03b62-8956-ac14-c5cf-dc98c89c589c. Details: System.ArgumentException: Invalid JSON primitive: Item001. Parameter name: value at Microsoft.Workflow.Common.Json.JXmlToJsonValueConverter.ConvertStringToJsonNumber(String value) at Microsoft.Workflow.Common.Json.JXmlToJsonValueConverter.ReadPrimitive(String
type, XmlDictionaryReader jsonReader) at Microsoft.Workflow.Common.Json.JXmlToJsonValueConverter.JXMLToJsonValue(XmlDictionaryReader jsonReader) at Microsoft.Workflow.Common.Json.JXmlToJsonValueConverter.JXMLToJsonValue(Stream jsonStream, Byte[] jsonBytes)
at Microsoft.Activities.DynamicValue.ParseJson(String json) at System.Activities.CodeActivity`1.InternalExecute(ActivityInstance instance, ActivityExecutor executor, BookmarkManager bookmarkManager) at System.Activities.Runtime.ActivityExecutor.ExecuteActivityWorkItem.ExecuteBody(ActivityExecutor
executor, BookmarkManager bookmarkManager, Location resultLocation)
Unfortunately I don't have access to the server, logs etc.
I would love to find some tutorials, or any books on SharePoint Designer 2013 in general and Workflows in particular but my searches haven't turned up much so far apart from a pre-release Beginning SharePoint Workflows which is in its very early stages and
not much help yet.
Can anyone give me some guidance on how to set up While Loops to iterate through a related list using SharePoint Designer 2013?
Mark

Hi,
I understand that you wanted to update the items in the other list (Participants) where the Course equals the Current Item.
You need to use “Call HTTP Web Service" action and “Build Dictionary" action to get the Maxid and then loop Participants to update the items.
You can follow the steps as below to achieve what you want:
Create a custom list named Courses, add columns: Title(Single line of text), Course ID(Single line of text), Course Finalised (Yes/No).
Create a custom list named Participants, add columns: Title(Single line of text), Course(Lookup), CourseFinalised (Yes/No).
Create workflow associated to Courses, start the workflow automatically when an item is created or changed.
Add conditions and actions:
The HTTP URL is set to
https://sitename/_api/web/lists/GetByTitle('listname')/items?$orderby=Id%20desc and the HTTP method is set to “GET”. Then the list will be order by Id and desc.
Then if Course Finalised is equal to Yes, the CourseFinalised  of the associated items in Participants will be updated to Yes.
More information:
http://sergeluca.wordpress.com/2013/04/09/calling-the-sharepoint-2013-rest-api-from-a-sharepoint-designer-workflow/
Thank you for your understanding.
Best Regards,
Linda Li
Linda Li
TechNet Community Support

Similar Messages

  • How to loop through report records and update the record

    I have a updateable report. And there is a select LOV in that report. How to loop though the report and save all the changes to the LOV.

    1. Please tell us your first name and put it in your handle and/or profile to help us.
    2. Explain your question in more detail, perhaps with an example and by showing code you already are using.
    Scott

  • Need to update the list item in the same sharepoint list with particular condition with Sharepoint Designer 2013.

    Hi All
    I have one sharepoint list with huge data i.e with 20columns and more than 200 records with the fields .
    Suppose lets consider there are A,B,C,D,E,F,G,H columns.
    Now i want to create one form with the fields A,C,E.
    When the user enter the existing data of list for columns A,C..based on C value the E column value should change and update that particular item in the list.
    Please guide me without visual web part can we acheive this by Sharepoint designer 2013 or what would be the preferable solution.
    Please help me on this as it is very urgent from me..
    Thanks in Advance
    Sowjanya G

    Hi,
    According to your post, my understanding is that you wanted to update the list item in the same sharepoint list with particular condition with Sharepoint Designer 2013.
    I recommend to create workflow associated to the list and then start the workflow automatically when an item is changed.
    In the workflow, you can add condition and actions as below:
    If current item: C equal to Test1
         Set E to Test2
    Then the value of the filed E will be changed based on the value of the filed C.
    In addition, if you create the form using InfoPath, you can add rule to the filed C as below:
    Best Regards,
    Linda Li
    Linda Li
    TechNet Community Support

  • Copy List Item Attachment for archiving using SharePoint Designer 2013

    hi,
    how to Copy List Item Attachment for archiving using SharePoint Designer 2013

    1. You can use access:
    http://viziblr.com/news/2011/11/5/batch-exporting-sharepoint-2010-list-item-attachments-using.html
    Or you can try below script
    You can loop through each list item, and get each attachment.
    List<SPAttachment> attachments = new List<SPAttachment>();
    SPList list = SPContext.Current.Web.Lists["My List"];
    foreach (SPListItem item in list.Items)
    attachments.AddRange(item.Attachments.Cast<SPAttachment>());
    If this helped you resolve your issue, please mark it Answered

  • SharePoint Designer 2013 workflow - creating new items in the list

    Hi,
    I need to create a workflow in SharePoint designer 2013. Basically the flow is like that:
    There is a Request List where people submit their requests. The requests have status: Submitted and Completed.
    Once the status goes to 'Completed" there should be a workflow triggered that creates an entry in another list; VoC list and populate VoC columns. Additionally there should be an email send to the requestor that the request has been processed.
    I tried to do that but I failed - what do I do wrong? It keeps telling me that there is an error in workflow.
    Could you, please help me? Thank you.
    Thank you.
    Kind regards,
    Jowita

    With this command it populated the Voc list. But when I tried to add additional fields, the workflow did not work. Fo example, I've got a column "Requestors Name" in Request List and I would like the same column in Voc List to be automatically
    populated with the data from Requestors List. I set Field Requestors name to Value Current item:Requestors name but it did not work :-(
    What do you mean by "VoC column is already created in VoC list"?
    And one additional question: is it possible for the workflow to automatuically create new columns in the VoC list?
    Hi Jowita,
    We could use workflow to populate values in column but not populate new columns, so the column should be created in list manually before workflow.
    As I understand now, you need to use workflow to populate at least two columns in another list, and one is person or people type. I captured a screenshot for your reference, pp column is in person or group type in both two lists, please set return
    type as Display name:
    Regards,
    Rebecca Tu
    TechNet Community Support

  • How to add connection between two Web Part Data Views in sharepoint designer 2013

    Hi I have problems with connect two data view
    I have a SQL server database named Mini
    In Mini database I have two tables:  dbo.Table_A and dbo.Table_B
    Table_A design and Table_B design
    In the internet browser it look like this after I add the connections, the problem is there is no connection when I click at the Blue link id 2 and 3 ??? John's and Jes's Lastname did not show up, the links is dead. that's my problem
    The must strange is that, if I do the same below, in sharepoint 2010 designer it do well ?? so what in the .....
    Here is my code
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
    <%@ Page Language="C#" inherits="Microsoft.SharePoint.WebPartPages.WebPartPage, Microsoft.SharePoint, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
    <%@ Register tagprefix="SharePoint" namespace="Microsoft.SharePoint.WebControls" assembly="Microsoft.SharePoint, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
    <%@ Register tagprefix="WebPartPages" namespace="Microsoft.SharePoint.WebPartPages" assembly="Microsoft.SharePoint, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
    <html dir="ltr" xmlns="http://www.w3.org/1999/xhtml">
    <head runat="server">
    <meta name="ProgId" content="SharePoint.WebPartPage.Document" />
    <meta name="WebPartPageExpansion" content="full" />
    <meta http-equiv="X-UA-Compatible" content="IE=10" />
    <SharePoint:CssRegistration Name="default" runat="server"/>
    </head>
    <body>
    <form id="form1" runat="server">
    <table width="10%"><tr><td>
    <WebPartPages:SPWebPartManager runat="server" id="SPWebPartManager">
    <SPWebPartConnections>
    <WebPartPages:spwebpartconnection ID="g_1660BB6ADC7243088A1BB7F5C196203A" ConsumerConnectionPointID="DFWP Filter Consumer ID" ConsumerID="g_2abfc8f5_0eb3_4711_a5b0_7e7518f56881" ProviderConnectionPointID="DFWP Row Provider ID" ProviderID="g_b70a05bb_a849_423d_8e53_c7ad9ccc18ad">
    <WebPartPages:sprowtoparameterstransformer ProviderFieldNames="@ID" ConsumerFieldNames="@ID" />
    </WebPartPages:spwebpartconnection>
    </SPWebPartConnections>
    </WebPartPages:SPWebPartManager>
    <asp:ScriptManager runat="server" id="ScriptManager"></asp:ScriptManager>
    <WebPartPages:DataFormWebPart runat="server" IsIncluded="True" AsyncRefresh="True" FrameType="None" NoDefaultStyle="TRUE" ViewFlag="8" Title="Table_A on Mini" PageType="PAGE_NORMALVIEW" __markuptype="vsattributemarkup" __WebPartId="{B70A05BB-A849-423D-8E53-C7AD9CCC18AD}" id="g_b70a05bb_a849_423d_8e53_c7ad9ccc18ad" pagesize="10">
    <DataSources>
    <asp:SqlDataSource id="Table_A_x0020_on_x0020_Mini2" runat="server" __designer:commandsync="true" ProviderName="System.Data.SqlClient" ConnectionString="Data Source=TestMSSQL;User ID=SQLADMIN;Password=079130;Initial Catalog=Mini;" SelectCommand="SELECT * FROM [Table_A] ORDER BY [ID] ASC "/>
    </DataSources>
    <ParameterBindings>
    <ParameterBinding Name="dvt_apos" Location="Postback;Connection"/>
    <ParameterBinding Name="ManualRefresh" Location="WPProperty[ManualRefresh]"/>
    <ParameterBinding Name="UserID" Location="CAMLVariable" DefaultValue="CurrentUserName"/>
    <ParameterBinding Name="Today" Location="CAMLVariable" DefaultValue="CurrentDate"/>
    <ParameterBinding Name="dvt_firstrow" Location="Postback;Connection"/>
    <ParameterBinding Name="dvt_nextpagedata" Location="Postback;Connection"/>
    <ParameterBinding Name="dvt_curselkey" Location="Postback;Connection" DefaultValue="##init##"/>
    </ParameterBindings>
    <datafields>@ID,ID;@ForeName,ForeName;</datafields>
    <XSL>
    <xsl:stylesheet xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata" version="1.0" exclude-result-prefixes="xsl msxsl ddwrt" xmlns:ddwrt="http://schemas.microsoft.com/WebParts/v2/DataView/runtime" xmlns:asp="http://schemas.microsoft.com/ASPNET/20" xmlns:__designer="http://schemas.microsoft.com/WebParts/v2/DataView/designer" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:msxsl="urn:schemas-microsoft-com:xslt" xmlns:SharePoint="Microsoft.SharePoint.WebControls" xmlns:ddwrt2="urn:frontpage:internal">
    <xsl:output method="html" indent="no"/>
    <xsl:decimal-format NaN=""/>
    <xsl:param name="dvt_curselkey">##init##</xsl:param>
    <xsl:param name="dvt_apos">'</xsl:param>
    <xsl:param name="ManualRefresh"></xsl:param>
    <xsl:param name="dvt_firstrow">1</xsl:param>
    <xsl:param name="dvt_nextpagedata" />
    <xsl:variable name="dvt_1_automode">0</xsl:variable>
    <xsl:template match="/" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata" xmlns:asp="http://schemas.microsoft.com/ASPNET/20" xmlns:__designer="http://schemas.microsoft.com/WebParts/v2/DataView/designer" xmlns:SharePoint="Microsoft.SharePoint.WebControls">
    <xsl:choose>
    <xsl:when test="($ManualRefresh = 'True')">
    <table width="100%" border="0" cellpadding="0" cellspacing="0">
    <tr>
    <td valign="top">
    <xsl:call-template name="dvt_1"/>
    </td>
    <td width="1%" class="ms-vb" valign="top">
    <img src="/_layouts/15/images/staticrefresh.gif" id="ManualRefresh" border="0" onclick="javascript: {ddwrt:GenFireServerEvent('__cancel')}" alt="Click here to refresh the dataview."/>
    </td>
    </tr>
    </table>
    </xsl:when>
    <xsl:otherwise>
    <xsl:call-template name="dvt_1"/>
    </xsl:otherwise>
    </xsl:choose>
    </xsl:template>
    <xsl:template name="dvt_1">
    <xsl:variable name="dvt_StyleName">Table</xsl:variable>
    <xsl:variable name="Rows" select="/dsQueryResponse/NewDataSet/Row"/>
    <xsl:variable name="dvt_RowCount" select="count($Rows)"/>
    <xsl:variable name="RowLimit" select="10" />
    <xsl:variable name="FirstRow" select="$dvt_firstrow" />
    <xsl:variable name="LastRow">
    <xsl:choose>
    <xsl:when test="($FirstRow + $RowLimit - 1) &gt; $dvt_RowCount"><xsl:value-of select="$dvt_RowCount" /></xsl:when>
    <xsl:otherwise><xsl:value-of select="$FirstRow + $RowLimit - 1" /></xsl:otherwise>
    </xsl:choose>
    </xsl:variable>
    <xsl:variable name="IsEmpty" select="$dvt_RowCount = 0" />
    <xsl:variable name="dvt_IsEmpty" select="$dvt_RowCount = 0"/>
    <xsl:choose>
    <xsl:when test="$dvt_IsEmpty">
    <xsl:call-template name="dvt_1.empty"/>
    </xsl:when>
    <xsl:otherwise>
    <table border="0" width="100%" cellpadding="2" cellspacing="0">
    <tr valign="top">
    <xsl:if test="$dvt_1_automode = '1'" ddwrt:cf_ignore="1">
    <th class="ms-vh" width="1%" nowrap="nowrap"></th>
    </xsl:if>
    <th class="ms-vh" nowrap="nowrap">ID</th><th class="ms-vh" nowrap="nowrap">ForeName</th></tr>
    <xsl:call-template name="dvt_1.body">
    <xsl:with-param name="Rows" select="$Rows[position() &gt;= $FirstRow and position() &lt;= $LastRow]"/>
    <xsl:with-param name="FirstRow" select="1" />
    <xsl:with-param name="LastRow" select="$dvt_RowCount" />
    </xsl:call-template>
    </table>
    </xsl:otherwise>
    </xsl:choose>
    <xsl:call-template name="dvt_1.commandfooter">
    <xsl:with-param name="FirstRow" select="$FirstRow" />
    <xsl:with-param name="LastRow" select="$LastRow" />
    <xsl:with-param name="RowLimit" select="$RowLimit" />
    <xsl:with-param name="dvt_RowCount" select="$dvt_RowCount" />
    <xsl:with-param name="RealLastRow" select="number(ddwrt:NameChanged('',-100))" />
    </xsl:call-template>
    </xsl:template>
    <xsl:template name="dvt_1.body">
    <xsl:param name="Rows"/>
    <xsl:param name="FirstRow" />
    <xsl:param name="LastRow" />
    <xsl:for-each select="$Rows">
    <xsl:variable name="CurrentRowKey">
    <xsl:call-template name="dvt.gencurselkey">
    <xsl:with-param name="RowPath" select="." />
    </xsl:call-template>
    </xsl:variable>
    <xsl:variable name="dvt_KeepItemsTogether" select="false()" />
    <xsl:variable name="dvt_HideGroupDetail" select="false()" />
    <xsl:if test="(position() &gt;= $FirstRow and position() &lt;= $LastRow) or $dvt_KeepItemsTogether">
    <xsl:if test="not($dvt_HideGroupDetail)" ddwrt:cf_ignore="1">
    <xsl:call-template name="dvt_1.rowview" >
    <xsl:with-param name="CurrentRowKey" select="$CurrentRowKey" />
    </xsl:call-template>
    </xsl:if>
    </xsl:if>
    </xsl:for-each>
    </xsl:template>
    <xsl:template name="dvt_1.rowview">
    <xsl:param name="CurrentRowKey" />
    <tr>
    <xsl:if test="position() mod 2 = 1">
    <xsl:attribute name="class">ms-alternating</xsl:attribute>
    </xsl:if>
    <xsl:if test="$dvt_1_automode = '1'" ddwrt:cf_ignore="1">
    <td class="ms-vb" width="1%" nowrap="nowrap">
    <span ddwrt:amkeyfield="" ddwrt:amkeyvalue="ddwrt:EscapeDelims(string(''))" ddwrt:ammode="view"></span>
    </td>
    </xsl:if>
    <td class="ms-vb">
    <a target="_self">
    <xsl:attribute xmlns:xsl="http://www.w3.org/1999/XSL/Transform" name="href">
    <xsl:variable name="cursel">dvt_curselkey={
    <xsl:call-template name="dvt.gencurselkey">
    <xsl:with-param name="RowPath" select="." />
    </xsl:call-template>
    }</xsl:variable>
    <xsl:variable xmlns:xsl="http://www.w3.org/1999/XSL/Transform" name="fields">@ID=<xsl:value-of select="ddwrt:ConnEncode(string(@ID))" /></xsl:variable>
    <xsl:text>javascript:</xsl:text>
    <xsl:value-of select="ddwrt:GenFireConnection(concat('g_2abfc8f5_0eb3_4711_a5b0_7e7518f56881*',$fields),string($cursel))"></xsl:value-of>
    </xsl:attribute>
    <xsl:attribute name="style">
    <xsl:if test="$CurrentRowKey = $dvt_curselkey">font-weight: bold;</xsl:if>
    </xsl:attribute>
    <xsl:value-of select="format-number(@ID, '#,##0.#;-#,##0.#')" />
    </a></td><td class="ms-vb">
    <xsl:value-of select="@ForeName" /></td></tr>
    </xsl:template>
    <xsl:template name="dvt_1.empty">
    <xsl:variable name="dvt_ViewEmptyText">There are no items to show in this view.</xsl:variable>
    <table border="0" width="100%">
    <tr>
    <td class="ms-vb">
    <xsl:value-of select="$dvt_ViewEmptyText"/>
    </td>
    </tr>
    </table>
    </xsl:template>
    <xsl:template name="dvt_1.commandfooter">
    <xsl:param name="FirstRow" />
    <xsl:param name="LastRow" />
    <xsl:param name="RowLimit" />
    <xsl:param name="dvt_RowCount" />
    <xsl:param name="RealLastRow" />
    <table cellspacing="0" cellpadding="4" border="0" width="100%">
    <tr>
    <xsl:if test="$FirstRow &gt; 1 or $LastRow &lt; $dvt_RowCount">
    <xsl:call-template name="dvt_1.navigation">
    <xsl:with-param name="FirstRow" select="$FirstRow" />
    <xsl:with-param name="LastRow" select="$LastRow" />
    <xsl:with-param name="RowLimit" select="$RowLimit" />
    <xsl:with-param name="dvt_RowCount" select="$dvt_RowCount" />
    <xsl:with-param name="RealLastRow" select="$RealLastRow" />
    </xsl:call-template>
    </xsl:if>
    </tr>
    </table>
    </xsl:template>
    <xsl:template name="dvt_1.navigation">
    <xsl:param name="FirstRow" />
    <xsl:param name="LastRow" />
    <xsl:param name="RowLimit" />
    <xsl:param name="dvt_RowCount" />
    <xsl:param name="RealLastRow" />
    <xsl:variable name="PrevRow">
    <xsl:choose>
    <xsl:when test="$FirstRow - $RowLimit &lt; 1">1</xsl:when>
    <xsl:otherwise>
    <xsl:value-of select="$FirstRow - $RowLimit" />
    </xsl:otherwise>
    </xsl:choose>
    </xsl:variable>
    <xsl:variable name="LastRowValue">
    <xsl:choose>
    <xsl:when test="$LastRow &gt; $RealLastRow">
    <xsl:value-of select="$LastRow"></xsl:value-of>
    </xsl:when>
    <xsl:otherwise>
    <xsl:value-of select="$RealLastRow"></xsl:value-of>
    </xsl:otherwise>
    </xsl:choose>
    </xsl:variable>
    <xsl:variable name="NextRow">
    <xsl:value-of select="$LastRowValue + 1"></xsl:value-of>
    </xsl:variable>
    <td nowrap="nowrap" class="ms-paging" align="right">
    <xsl:if test="$dvt_firstrow &gt; 1" ddwrt:cf_ignore="1">
    <a>
    <xsl:attribute name="href">javascript: <xsl:value-of select="ddwrt:GenFireServerEvent('dvt_firstrow={1}')" />;</xsl:attribute>
    Start</a>
    <xsl:text disable-output-escaping="yes" ddwrt:nbsp-preserve="yes">&amp;nbsp;</xsl:text>
    <a>
    <xsl:attribute name="href">javascript: <xsl:value-of select="ddwrt:GenFireServerEvent(concat('dvt_firstrow={',$PrevRow,'}'))" />;</xsl:attribute>
    <img src="/_layouts/15/images/prev.gif" border="0" alt="Previous" />
    </a>
    <xsl:text disable-output-escaping="yes" ddwrt:nbsp-preserve="yes">&amp;nbsp;</xsl:text>
    </xsl:if>
    <xsl:value-of select="$FirstRow" />
    - <xsl:value-of select="$LastRowValue" />
    <xsl:text disable-output-escaping="yes" ddwrt:nbsp-preserve="yes">&amp;nbsp;</xsl:text>
    <xsl:if test="$LastRowValue &lt; $dvt_RowCount or string-length($dvt_nextpagedata)!=0" ddwrt:cf_ignore="1">
    <a>
    <xsl:attribute name="href">javascript: <xsl:value-of select="ddwrt:GenFireServerEvent(concat('dvt_firstrow={',$NextRow,'}'))" />;</xsl:attribute>
    <img src="/_layouts/15/images/next.gif" border="0" alt="Next" />
    </a>
    </xsl:if>
    </td>
    </xsl:template>
    <xsl:template name="dvt.gencurselkey">
    <xsl:param name="RowPath" />
    <xsl:choose>
    <xsl:when test="$dvt_curselkey = '##init##' and position() = $dvt_firstrow">##init##</xsl:when>
    <xsl:otherwise><xsl:value-of select="ddwrt:ConnEncode(string($RowPath/@ID))" /></xsl:otherwise>
    </xsl:choose>
    </xsl:template>
    </xsl:stylesheet> </XSL>
    </WebPartPages:DataFormWebPart>
    </td></tr><tr><td>
    <WebPartPages:DataFormWebPart runat="server" IsIncluded="True" AsyncRefresh="True" FrameType="None" NoDefaultStyle="TRUE" ViewFlag="8" Title="Table_B on Mini" PageType="PAGE_NORMALVIEW" __markuptype="vsattributemarkup" __WebPartId="{2ABFC8F5-0EB3-4711-A5B0-7E7518F56881}" id="g_2abfc8f5_0eb3_4711_a5b0_7e7518f56881" pagesize="10">
    <DataSources>
    <asp:SqlDataSource id="Table_B_x0020_on_x0020_Mini1" runat="server" __designer:commandsync="true" ProviderName="System.Data.SqlClient" ConnectionString="Data Source=TestMSSQL;User ID=SQLADMIN;Password=079130;Initial Catalog=Mini;" SelectCommand="SELECT * FROM [Table_B] ORDER BY [ID] ASC "/>
    </DataSources>
    <ParameterBindings>
    <ParameterBinding Name="dvt_apos" Location="Postback;Connection"/>
    <ParameterBinding Name="ManualRefresh" Location="WPProperty[ManualRefresh]"/>
    <ParameterBinding Name="UserID" Location="CAMLVariable" DefaultValue="CurrentUserName"/>
    <ParameterBinding Name="Today" Location="CAMLVariable" DefaultValue="CurrentDate"/>
    <ParameterBinding Name="dvt_firstrow" Location="Postback;Connection"/>
    <ParameterBinding Name="dvt_nextpagedata" Location="Postback;Connection"/>
    </ParameterBindings>
    <datafields>@ID,ID;@LastName,LastName;</datafields>
    <XSL>
    <xsl:stylesheet xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata" version="1.0" exclude-result-prefixes="xsl msxsl ddwrt" xmlns:ddwrt="http://schemas.microsoft.com/WebParts/v2/DataView/runtime" xmlns:asp="http://schemas.microsoft.com/ASPNET/20" xmlns:__designer="http://schemas.microsoft.com/WebParts/v2/DataView/designer" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:msxsl="urn:schemas-microsoft-com:xslt" xmlns:SharePoint="Microsoft.SharePoint.WebControls" xmlns:ddwrt2="urn:frontpage:internal">
    <xsl:output method="html" indent="no"/>
    <xsl:decimal-format NaN=""/>
    <xsl:param name="dvt_apos">'</xsl:param>
    <xsl:param name="ManualRefresh"></xsl:param>
    <xsl:param name="dvt_firstrow">1</xsl:param>
    <xsl:param name="dvt_nextpagedata" />
    <xsl:variable name="dvt_1_automode">0</xsl:variable>
    <xsl:template match="/" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata" xmlns:asp="http://schemas.microsoft.com/ASPNET/20" xmlns:__designer="http://schemas.microsoft.com/WebParts/v2/DataView/designer" xmlns:SharePoint="Microsoft.SharePoint.WebControls">
    <xsl:choose>
    <xsl:when test="($ManualRefresh = 'True')">
    <table width="100%" border="0" cellpadding="0" cellspacing="0">
    <tr>
    <td valign="top">
    <xsl:call-template name="dvt_1"/>
    </td>
    <td width="1%" class="ms-vb" valign="top">
    <img src="/_layouts/15/images/staticrefresh.gif" id="ManualRefresh" border="0" onclick="javascript: {ddwrt:GenFireServerEvent('__cancel')}" alt="Click here to refresh the dataview."/>
    </td>
    </tr>
    </table>
    </xsl:when>
    <xsl:otherwise>
    <xsl:call-template name="dvt_1"/>
    </xsl:otherwise>
    </xsl:choose>
    </xsl:template>
    <xsl:template name="dvt_1">
    <xsl:variable name="dvt_StyleName">Table</xsl:variable>
    <xsl:variable name="Rows" select="/dsQueryResponse/NewDataSet/Row"/>
    <xsl:variable name="dvt_RowCount" select="count($Rows)"/>
    <xsl:variable name="RowLimit" select="10" />
    <xsl:variable name="FirstRow" select="$dvt_firstrow" />
    <xsl:variable name="LastRow">
    <xsl:choose>
    <xsl:when test="($FirstRow + $RowLimit - 1) &gt; $dvt_RowCount"><xsl:value-of select="$dvt_RowCount" /></xsl:when>
    <xsl:otherwise><xsl:value-of select="$FirstRow + $RowLimit - 1" /></xsl:otherwise>
    </xsl:choose>
    </xsl:variable>
    <xsl:variable name="IsEmpty" select="$dvt_RowCount = 0" />
    <xsl:variable name="dvt_IsEmpty" select="$dvt_RowCount = 0"/>
    <xsl:choose>
    <xsl:when test="$dvt_IsEmpty">
    <xsl:call-template name="dvt_1.empty"/>
    </xsl:when>
    <xsl:otherwise>
    <table border="0" width="100%" cellpadding="2" cellspacing="0">
    <tr valign="top">
    <xsl:if test="$dvt_1_automode = '1'" ddwrt:cf_ignore="1">
    <th class="ms-vh" width="1%" nowrap="nowrap"></th>
    </xsl:if>
    <th class="ms-vh" nowrap="nowrap">ID</th><th class="ms-vh" nowrap="nowrap">LastName</th></tr>
    <xsl:call-template name="dvt_1.body">
    <xsl:with-param name="Rows" select="$Rows[position() &gt;= $FirstRow and position() &lt;= $LastRow]"/>
    <xsl:with-param name="FirstRow" select="1" />
    <xsl:with-param name="LastRow" select="$dvt_RowCount" />
    </xsl:call-template>
    </table>
    </xsl:otherwise>
    </xsl:choose>
    <xsl:call-template name="dvt_1.commandfooter">
    <xsl:with-param name="FirstRow" select="$FirstRow" />
    <xsl:with-param name="LastRow" select="$LastRow" />
    <xsl:with-param name="RowLimit" select="$RowLimit" />
    <xsl:with-param name="dvt_RowCount" select="$dvt_RowCount" />
    <xsl:with-param name="RealLastRow" select="number(ddwrt:NameChanged('',-100))" />
    </xsl:call-template>
    </xsl:template>
    <xsl:template name="dvt_1.body">
    <xsl:param name="Rows"/>
    <xsl:param name="FirstRow" />
    <xsl:param name="LastRow" />
    <xsl:for-each select="$Rows">
    <xsl:variable name="dvt_KeepItemsTogether" select="false()" />
    <xsl:variable name="dvt_HideGroupDetail" select="false()" />
    <xsl:if test="(position() &gt;= $FirstRow and position() &lt;= $LastRow) or $dvt_KeepItemsTogether">
    <xsl:if test="not($dvt_HideGroupDetail)" ddwrt:cf_ignore="1">
    <xsl:call-template name="dvt_1.rowview" />
    </xsl:if>
    </xsl:if>
    </xsl:for-each>
    </xsl:template>
    <xsl:template name="dvt_1.rowview">
    <tr>
    <xsl:if test="position() mod 2 = 1">
    <xsl:attribute name="class">ms-alternating</xsl:attribute>
    </xsl:if>
    <xsl:if test="$dvt_1_automode = '1'" ddwrt:cf_ignore="1">
    <td class="ms-vb" width="1%" nowrap="nowrap">
    <span ddwrt:amkeyfield="" ddwrt:amkeyvalue="ddwrt:EscapeDelims(string(''))" ddwrt:ammode="view"></span>
    </td>
    </xsl:if>
    <td class="ms-vb">
    <xsl:value-of select="format-number(@ID, '#,##0.#;-#,##0.#')"/>
    </td><td class="ms-vb">
    <xsl:value-of select="@LastName" /></td></tr>
    </xsl:template>
    <xsl:template name="dvt_1.empty">
    <xsl:variable name="dvt_ViewEmptyText">There are no items to show in this view.</xsl:variable>
    <table border="0" width="100%">
    <tr>
    <td class="ms-vb">
    <xsl:value-of select="$dvt_ViewEmptyText"/>
    </td>
    </tr>
    </table>
    </xsl:template>
    <xsl:template name="dvt_1.commandfooter">
    <xsl:param name="FirstRow" />
    <xsl:param name="LastRow" />
    <xsl:param name="RowLimit" />
    <xsl:param name="dvt_RowCount" />
    <xsl:param name="RealLastRow" />
    <table cellspacing="0" cellpadding="4" border="0" width="100%">
    <tr>
    <xsl:if test="$FirstRow &gt; 1 or $LastRow &lt; $dvt_RowCount">
    <xsl:call-template name="dvt_1.navigation">
    <xsl:with-param name="FirstRow" select="$FirstRow" />
    <xsl:with-param name="LastRow" select="$LastRow" />
    <xsl:with-param name="RowLimit" select="$RowLimit" />
    <xsl:with-param name="dvt_RowCount" select="$dvt_RowCount" />
    <xsl:with-param name="RealLastRow" select="$RealLastRow" />
    </xsl:call-template>
    </xsl:if>
    </tr>
    </table>
    </xsl:template>
    <xsl:template name="dvt_1.navigation">
    <xsl:param name="FirstRow" />
    <xsl:param name="LastRow" />
    <xsl:param name="RowLimit" />
    <xsl:param name="dvt_RowCount" />
    <xsl:param name="RealLastRow" />
    <xsl:variable name="PrevRow">
    <xsl:choose>
    <xsl:when test="$FirstRow - $RowLimit &lt; 1">1</xsl:when>
    <xsl:otherwise>
    <xsl:value-of select="$FirstRow - $RowLimit" />
    </xsl:otherwise>
    </xsl:choose>
    </xsl:variable>
    <xsl:variable name="LastRowValue">
    <xsl:choose>
    <xsl:when test="$LastRow &gt; $RealLastRow">
    <xsl:value-of select="$LastRow"></xsl:value-of>
    </xsl:when>
    <xsl:otherwise>
    <xsl:value-of select="$RealLastRow"></xsl:value-of>
    </xsl:otherwise>
    </xsl:choose>
    </xsl:variable>
    <xsl:variable name="NextRow">
    <xsl:value-of select="$LastRowValue + 1"></xsl:value-of>
    </xsl:variable>
    <td nowrap="nowrap" class="ms-paging" align="right">
    <xsl:if test="$dvt_firstrow &gt; 1" ddwrt:cf_ignore="1">
    <a>
    <xsl:attribute name="href">javascript: <xsl:value-of select="ddwrt:GenFireServerEvent('dvt_firstrow={1}')" />;</xsl:attribute>
    Start</a>
    <xsl:text disable-output-escaping="yes" ddwrt:nbsp-preserve="yes">&amp;nbsp;</xsl:text>
    <a>
    <xsl:attribute name="href">javascript: <xsl:value-of select="ddwrt:GenFireServerEvent(concat('dvt_firstrow={',$PrevRow,'}'))" />;</xsl:attribute>
    <img src="/_layouts/15/images/prev.gif" border="0" alt="Previous" />
    </a>
    <xsl:text disable-output-escaping="yes" ddwrt:nbsp-preserve="yes">&amp;nbsp;</xsl:text>
    </xsl:if>
    <xsl:value-of select="$FirstRow" />
    - <xsl:value-of select="$LastRowValue" />
    <xsl:text disable-output-escaping="yes" ddwrt:nbsp-preserve="yes">&amp;nbsp;</xsl:text>
    <xsl:if test="$LastRowValue &lt; $dvt_RowCount or string-length($dvt_nextpagedata)!=0" ddwrt:cf_ignore="1">
    <a>
    <xsl:attribute name="href">javascript: <xsl:value-of select="ddwrt:GenFireServerEvent(concat('dvt_firstrow={',$NextRow,'}'))" />;</xsl:attribute>
    <img src="/_layouts/15/images/next.gif" border="0" alt="Next" />
    </a>
    </xsl:if>
    </td>
    </xsl:template>
    </xsl:stylesheet> </XSL>
    </WebPartPages:DataFormWebPart>
    </td></tr></table>
    </form>
    </body>
    </html>

    Hey Bale
    Yes I use sharepoint designer 2013, when I do the same in sharepoint designer 2010, it do well
    No to your question 2, 3 and 4
    See again my picture below her, when I open the internet browser
    in the database you have a table with forename and another table with last name,
    the link between this two table is the id, when I open it is ok, Bens lastname is
    James, Ben James.
    So when I try to click on the blue id number 2 beside John, Johns Last name
    should show up, but it did not, the link is dead. that's my problem the funny about this when I
    do the same procedure see above in sharepoint designer 2010, it do well ?
    Here is my first steps, when you have uploaded the first datasource, you need to save, place your courser
    behind the <asp:ScriptManager runat="server" id="ScriptManager"></asp:ScriptManager> x   PLACE COURSER HER
    THEN you can upload the next datasource, the sharepoint designer automatic generate the code for the grid.
    When you have the two grids inside the aspx file, place your courser behind the first
    <WebPartPages:DataFormWebPart X <---
    then the tab "option" show up and inside here you can add the connections between the two grids.

  • How to loop through xml records and repeatedly display

    I have 1 table in my rtf and the table typically reflects 1 row (grouping) from my xml data, however there are some instances where i need to take 1 row from my xml data and display the table multiple times.
    i.e.
    xmldata:
    item TOTAL_QTY CONTAINER_QTY
    x 500 250
    I need to take that row and display the table in my rtf two times. I tried to encapsulate my table in a <?for-each:xdoxslt:foreach_number($_XDOCTX,0,TOTAL_QTY,CONTAINER_QTY)?> loop looping/re-displaying the table until a reach TOTAL_QTY, but once I'm in this loop it's like i dont have access to the actual xml data fields. How can I achieve this effect?

    1. Please tell us your first name and put it in your handle and/or profile to help us.
    2. Explain your question in more detail, perhaps with an example and by showing code you already are using.
    Scott

  • How to Loop through App and finding popup Windows

    Does anyone know how to loop through the app and find any
    popup windows..

    I guess application by default creates a SystemManager
    object... So i used
    this.systemManager.popUpChildren.numChildren and it gives me
    0 all the time.. even though I have instances of windows to the
    app.. According to the documentation this should give you the
    number of popup children but it doesn't.. Any more ideas?

  • How to enable the List View tools tab in SharePoint Designer 2013 ?

    Customize the list view in SharePoint Designer 2013 . Unfortunately , i don't see
    List View Tools tab in my SharePoint Designer 2013. Even if i click anywhere in the web part code , i don't get it.

    Hi Hiren,
    Please try the steps below and see if it works:
    Back up the list view web part < WebPartPages:XsltListViewWebPart > you highlighted, and delete or comment this web part, then save the page.
    Reinsert the certain list view web part via INSERT ribbon, then you will see the LIST VIEW TOOLS.
    Regards,
    Rebecca Tu
    TechNet Community Support

  • How to loop through Multiple Excel sheets and load them into a SQL Table?

    Hi ,
    I am having 1 excel sheet with 3 worksheet.
    I have configured using For each loop container and ADO.net rowset enumerator.
    Every thing is fine, but after running my package I am getting below error
    [Excel Source [1]] Error: SSIS Error Code DTS_E_CANNOTACQUIRECONNECTIONFROMCONNECTIONMANAGER.  The AcquireConnection method call to the connection manager "Excel Connection Manager" failed with error code 0xC0202009.  There may
    be error messages posted before this with more information on why the AcquireConnection method call failed.
    Warning: SSIS Warning Code DTS_W_MAXIMUMERRORCOUNTREACHED.  The Execution method succeeded, but the number of errors raised (5) reached the maximum allowed (1); resulting in failure. This occurs when the number of errors reaches the number specified
    in MaximumErrorCount. Change the MaximumErrorCount or fix the errors.
    [Connection manager "Excel Connection Manager"] Error: SSIS Error Code DTS_E_OLEDBERROR.  An OLE DB error has occurred. Error code: 0x80004005.
    An OLE DB record is available.  Source: "Microsoft Access Database Engine"  Hresult: 0x80004005  Description: "The Microsoft Access database engine cannot open or write to the file ''. It is already opened exclusively by
    another user, or you need permission to view and write its data.".
    Pleas suggest me the correct way of solving above issues.
    Thanks in advance :)
    regards,
    Vipin jha
    Thankx & regards, Vipin jha MCP

    Hi ,
    Please refer the below link for Looping multiple worksheet in a single SQL Table.
    http://www.singhvikash.in/2012/11/ssis-how-to-loop-through-multiple-excel.html
    Note:-If you using excel 2010 then you have to use EXCEL 12.0 .
    Above link explaining  step by step of Looping multiple worksheet in a single SQL Table.
    regards,
    Vipin jha
    Thankx & regards, Vipin jha MCP

  • Text is not being displayed in sync on a label when looping through a list -- how to fix?

    I have a list of states (50 states).  I loop through this list (in a winform app -- VS2012) and want to display the current state ID that is being processed in the loop in the text property of a label.  I precede the label.Text = StateID line with
    Application.DoEvents() but I am also (in Debug mode) writing the same text to the console.  The console displays correctly, but there appears to be a lag in the label.Text property
    List<string> StateList = new List<string> { "al", "ak", "az","ar","ca","co","ct","de","fl","ga",...};
    foreach (string stateID in StateList)
        Application.DoEvents();
        lblStateID.Text = "State is " + stateID;  //--there is a lag here
    I vaguely recollect something about a NotifyPropertyChanged event.  I know this is common in WPF, but is there something similar in winform?  Or is there a way to make the desired text to be displayed in the label.Text property in synchronization
    with the loop?
    Rich P

    Thank you.  This is way simpler than implementing the INotifyPropertyChanged Interface.  Although, here is an article on the INotifyPropertyChanged Interface and event
    http://msdn.microsoft.com/en-us/library/system.componentmodel.inotifypropertychanged(v=vs.110).aspx
    Rich P

  • I have a used mac computer. I want to sync and update my iphone. Currently itunes tells me that my iphone is connected to a different itunes account. How do I make itunes sync and update my phone without deleting all the current information on my phone?

    I have a used mac computer. I want to sync and update my iphone. Currently itunes tells me that my iphone is connected to a different itunes account and will sync, but delete everything from my phone. How do I make itunes sync and update my phone without deleting all the current information on my phone?

    Iphone will sync with one and only one cpomptuer at a time.  Syncing to another will erase the current content and replace with content from the new computer.  This is the design of the  iphone.
    It will erase the content when you sync.
    Why not update from the comptuer with which you normally sync?

  • How to loop through a collection of records which is return value of func.

    Hi all.
    Have this situation:
    - Stored function (member of pkg procedure) that returns a collection of records.
    Package Spec:
    =========
    type tipo_pvt is table of s08_plan_venta_totalizado_r % rowtype;
    rc_pvt tipo_pvt;
    (s08_plan_venta_totalizado_r is a view).
    Package Body:
    =========
    select col1
    ,col2
    ,etc
    bulk collect into rc_pvt
    from s08_lista_precio_producto_r lpp
    ,s03_producto_r prd
    where condition;
    return rc_pvt;
    Once collection is loaded and returned (i know it loads records). I just want to loop through every record on a pl/sql procedure on the client (forms6i procedure), but it gives me the error: ORA-06531 Reference to uninitialized collection:
    On the forms6i client procedure i have something like:
    procedure p_carga_plan_venta_inv (p_id_plan_venta in number) is
    v_contador integer;
    v_mensaje varchar2(10);
    rc_pvt sk08_gestiona_plan_venta.tipo_pvt; (sk08_gestiona_plan_venta is package name)
    begin
         rc_pvt := sk08_gestiona_plan_venta.tipo_pvt();
         rc_pvt := sk08_gestiona_plan_venta.f_genera_plan_venta_inv (:pvv.lip_id_lista_precio
    ,:pvv.ems_id_sucursal
                                            ,:control4.v_metodo_calculo
    ,:pvv.unm_co_unidad_monetaria
    ,:pvp.fe_fin_periodo) ;
    -- previous statement dos not fail BUT THIS:
    message('rc_pvt.count= '||rc_pvt.count);pause;
    DOES FAIL
    end;
    So my question is : since i have already returned the collection, how come is not initialized....?
    Do i have to extend it first? In this case i have to return the number of records in the collection.....
    Look what happen when done from sqlplus:
    declare
    rc_pvt sk08_gestiona_plan_venta.tipo_pvt;
    begin
    rc_pvt := sk08_gestiona_plan_venta.tipo_pvt();
    rc_pvt :=
    sk08_gestiona_plan_venta.f_genera_plan_venta_inv (8713171
    ,null
    ,'m'
    ,'BS.F'
    ,to_date('28/02/2001','dd/mm/yyyy'));
    end;
    SQL> /
    Registros en la coleccion =6
    Procedimiento PL/SQL finalizado con éxito.
    SQL>
    I put a dbms_output.put_line on stored function .....
    Please help ....!
    Apparently it fails when calling the stored function:
    rc_pvt := sk08_gestiona_plan_venta.f_genera_plan_venta_inv (:pvv.lip_id_lista_precio
    ,:pvv.ems_id_sucursal
    ,:control4.v_metodo_calculo
    ,:pvv.unm_co_unidad_monetaria
    ,:pvp.fe_fin_periodo) ;
    I don't undestand since this function return the appropiate type. It seems the collection is empty, although having test that on sqlplus works ...
    rc_pvt := sk08_gestiona_plan_venta.f_genera_plan_venta_inv (:pvv.lip_id_lista_precio
    ,:pvv.ems_id_sucursal
    ,:control4.v_metodo_calculo
    ,:pvv.unm_co_unidad_monetaria
    ,:pvp.fe_fin_periodo) ;
    function f_genera_plan_venta_inv (p_id_lista_precio in number
    ,p_id_sucursal in number
    ,p_tipo_nivel_inv in varchar2
    ,p_co_unidad_monetaria in varchar2
    ,p_fe_fin_periodo in date) return tipo_pvt;
    for some reason it works on plus:
    SQL> declare
    2 rc_pvt sk08_gestiona_plan_venta.tipo_pvt;
    3 begin
    4 rc_pvt := sk08_gestiona_plan_venta.tipo_pvt();
    5 rc_pvt :=
    6 sk08_gestiona_plan_venta.f_genera_plan_venta_inv (8713171
    7 ,null
    8 ,'m'
    9 ,'BS.F'
    10 ,to_date('28/02/2001','dd/mm/yyyy'));
    11 --
    12 dbms_output.put_line('Registros en la coleccion = '||rc_pvt.count);
    13 for i in 1 .. rc_pvt.count loop
    14 --
    15 dbms_output.put_line('En '||i||rc_pvt(i).prd_co_producto);
    16 end loop;
    17 end;
    18 /
    Registros en la coleccion =6
    Registros en la coleccion = 6
    En 1PT.REF.PET.KO05
    En 2PT.REF.PET.LM15
    En 3PT.ALM.VDR.001
    En 4PT.REF.GRN.CN
    En 5PT.REF.GRN.KO
    En 6PT.REF.GRN.LM
    Procedimiento PL/SQL finalizado con éxito.
    Don't understand why it works on plus8 (same version that comes with 6i).
    Can't loop through records on forms...? WHY ...?
    Edited by: myluism on 02-abr-2012 14:40

    Forms 6i is an antique ... write your code to run on the server.
    Multiple examples of how to loop through an array loaded with bulk collect can be found here.
    http://www.morganslibrary.org/reference/array_processing.html
    The main library page is:
    http://www.morganslibrary.org/library.html

  • How to loop through an associative array

    Guys,
    How to loop through an associative array. where the key is string but the value is an object
    -Thanks

    It depends if you are using a Java HashMap or a BPM Associative array. You'd use the "keySet" if for the former and the "keys" if it's the latter.
    I know you want an object for the array, but Any[String] is used here just so you can see something coming back in the display statements shown below. Remove the input and display statements - they're just in there so you can see something working.
    Here's how to go through a Hashmap's array using a loop:
    map as Java.Util.HashMap
    map.put(1, "One")
    map.put(2, "Two")
    map.put(3, "Three")
    map.put(4, "Four")
    map.put(5, "Five")
    display map.keySet
    for each item in keySet(map) do
         display item
         display get(map, arg1 : item)
    endHere's how to go through an associative array using a loop:
    hashMap as Any[String]
    hashMap = ["One": 1,"Two":2]
    for each item in hashMap.keys do
         display item
         display "Item in the array is: " + hashMap[item]
    endDan

  • Problem when loop through a list within CollectionModel

    In my bean, I have these codes to define a node.
    Map<String, Object> node = new HashMap<String, Object>();
    node.put("Nodeid", nodeid);
    List theColors = new ArrayList();
    node.put("Colors", colors);
    node.put("Type", type);
    node.put("Desc", desc);
    Then, a list of these nodes are converted to CollectionModel using ModelUtils.toCollectionModel(nodes);
    In my jspx, I am able to loop through nodes, and get Type, Nodeid and Desc from the node to show on the screen.
    I am trying to loop through the list of colors within the node to draw circles with different diameter.
    <af:forEach var="theColor" items="#{node.Colors}" varStatus="vs">
    <dvt:pointLocation pointX="50%" pointY="50%">
    <dvt:marker id="mk2" scaleX="#{15-vs.index*2}" scaleY="#{15-vs.index*2}" shape="circle" fillColor="#{theColor}" />
    </dvt:pointLocation>
    </af:forEach>
    But above code does not work.
    Can someone help me? Any suggestions?
    Thanks.

    I want to call a javascript function inside a c:forEach loop.Nope sorry, won't work.
    Java/JSP runs on the server. At the server end, any html/script code is just template text to output to an html file.
    The server produces an html file, and sends it to the client.
    Java stops running.
    Java cannot call javascript, javascript can not call java. There is no direct communication.
    Java code can produce javascript code to run on a page.
    The only communication javascript has back with the server is if it makes a request (click a link, submit a button, Ajax call...)

Maybe you are looking for

  • I cannot send emails on iPad 2 or iPhone 4s.

    Cannot send emails on iPad 2 or iPhone 4S. I keep getting an error saying you have exceeded your sending limit. Messages just sit in the outgoing box. How do I resolve this and avoid it in the future.

  • How can I set up a List of Figures with extra text?

    I'm writing my Art History dissertation, which includes a substantial group of figures at the end.  My advisor has requested that I caption the images, but also provide a List of Figures before the actual images begin.  I've got it figured out this f

  • Axiom 25 and Express Questions

    Hi guys! Ive got some questions about syncing up my M-audio axiom 25 to Logic. My goal right now is to be able to write bass and drum parts (addictive drums) into the piano roll in write mode using the midi controller. 1. first off how do I make the

  • Arabic aditing

    I have a problem with pages and most word processors for mac (including mellel) is that when I write arabic the corsur doesn't move at all,so I don't know if I pressed the space bar or not.Is there a solution for this?

  • Latest 15'' quad core i7 2.0 vs 2.3 retina macbook pro

    Hi, I consider buying the 15'' macbook pro with retina dispay. My primary use of the macbook is iOS applications development, but sometimes I use it for small video/audio editing. Is there any reason for me to upgrade to 2.3 or stick with the base on