Hi
Workflow :
In QualityOrderMaint.cs, On Related QC order Tab, When on “Update Results and Sign Off” button, I am inserting the same records in SelectQC view. (TSRelatedQCOrderUpdate.cs - Acting as aUnbound DAC)
On Hyperlink Click,Even after clicking other records its opening first row By default.


TS301025
<px:PXSmartPanel runat="server" ID="PXSmartPanel_processqc" DesignView="Content" Height="360px" TabIndex="2000" Width="1000px"
CreateOnDemand="True" CaptionVisible="True" Caption="Select QC to Process" AlreadyLocalized="False" Key="selectQC"
AutoCallBack-Target="PXGrid10_qc" AutoCallBack-Command="Refresh">
<%-- <px:PXGrid ID="PXGrid10_qc" runat="server" DataSourceID="ds" SkinID="Details" AutoAdjustColumns="True" SyncPosition="true"
AdjustPageSize="Auto" AllowPaging="True" AllowSearch="True" Width="900px" Height="200px">--%>
<px:PXGrid runat="server" ID="PXGrid10_qc" SyncPosition="True" Height="200px" SkinID="DetailsInTab"
TabIndex="2100" Width="900px" DataSourceID="ds">
<EmptyMsg ComboAddMessage="No records found.
Try to change filter or modify parameters above to see records here." NamedComboMessage="No records found as '{0}'.
Try to change filter or modify parameters above to see records here." NamedComboAddMessage="No records found as '{0}'.
Try to change filter or modify parameters above to see records here." FilteredMessage="No records found.
Try to change filter to see records here." FilteredAddMessage="No records found.
Try to change filter to see records here." NamedFilteredMessage="No records found as '{0}'.
Try to change filter to see records here." NamedFilteredAddMessage="No records found as '{0}'.
Try to change filter to see records here." AnonFilteredMessage="No records found.
Try to change filter to see records here." AnonFilteredAddMessage="No records found.
Try to change filter to see records here." />
<AutoSize Enabled="True" MinHeight="200" />
<Mode AllowAddNew="False" AllowDelete="False" />
<Levels>
<px:PXGridLevel DataKeyNames="QCOrderType,QCOrderNbr" DataMember="selectQC">
<RowTemplate>
<px:PXLinkEdit ID="PXLinkEditQCOrderNbr" runat="server" AlreadyLocalized="False" DataField="QCOrderNbr">
</px:PXLinkEdit>
<px:PXCheckBox ID="edselectedpro" runat="server" AlreadyLocalized="False" DataField="Selected"></px:PXCheckBox>
</RowTemplate>
<Columns>
<px:PXGridColumn DataField="QCOrderType" Width="150px">
</px:PXGridColumn>
<px:PXGridColumn DataField="QCOrderNbr" Width="200px" LinkCommand="QCNbr" CommitChanges="true"></px:PXGridColumn>
<px:PXGridColumn DataField="Selected" Width="350px" Type="CheckBox">
</px:PXGridColumn>
</Columns>
</px:PXGridLevel>
</Levels>
<AutoSize Enabled="True" MinHeight="200" ></AutoSize>
<Mode AllowAddNew="False" AllowDelete="False" ></Mode>
</px:PXGrid>
<px:PXPanel ID="PXPanel14" runat="server" SkinID="Buttons" AlreadyLocalized="False" DataMember="">
<px:PXButton ID="PXButton21" runat="server" DialogResult="OK" Text="OK" AlreadyLocalized="False" />
<px:PXButton ID="PXButton24" runat="server" DialogResult="Cancel" Text="Cancel" AlreadyLocalized="False" />
</px:PXPanel>
</px:PXSmartPanel>
QualityOrderMaint.cs
public PXAction<TSRelatedQCOrderUpdate> QCNbr;
[PXUIField(DisplayName = "QC Nbr", MapEnableRights = PXCacheRights.Select)]
[PXButton(SpecialType = PXSpecialButtonType.Report)]
// protected virtual void extDoc(PXAdapter adapter)
protected virtual IEnumerable qcnbr(PXAdapter adapter)
{
var parameters = new Dictionary<string, string>();
parameters["OrderType"] = this.selectQC.Current.QCOrderType;
parameters["OrderNbr"] = this.selectQC.Current.QCOrderNbr;
TSQCQualityOrderType Otype = PXSelect<TSQCQualityOrderType,
Where<TSQCQualityOrderType.qualityOrderType, Equal<Required<TSQCQualityOrderType.qualityOrderType>>>>.Select(this, parameters["OrderType"]);
if (Otype != null)
{
throw new PXReportRequiredException(parameters, Otype.CertificateOfAnalysis.Replace(".rpx", ""), PXBaseRedirectException.WindowMode.New, string.Empty);
}
else
{
throw new PXReportRequiredException(parameters, "TS000002", PXBaseRedirectException.WindowMode.New, string.Empty);
}
}
Can you provide Solution for this?
Thank You