BV Commerce Forum
»
BV Commerce Support
»
General Support
»
ComponentSettingsManager.GetAllSettingsLists() doesn't function as expected
Rank: Member
Joined: 4/10/2006(UTC) Posts: 462
|
Hi,
The function referenced in the subject does not function as expected.
The function ends up calling the stored procedure bvc_ComponentSettingList_s which takes a bvin as a parameter. This behavior is expected by the FindSettingListItem(string bvin) function. As the GetAllSettingsLists() function accepts no parameters one would expect the function to use the stored procedure [2]bvc_ComponentSettingList_ByComponentId_s and passing in the BlockId.[/2]
[2][/2]
[2] [/2] |
Netriplex Corporation<br /> |
|
|
|
Rank: Member
Joined: 4/10/2006(UTC) Posts: 462
|
Based on what I have researched, the underlying function:
PublicSharedFunctionByValAsStringAsOfOfDimAsNewOfOfDimAsStringStringDimAsOfNothing</P>DimAs"bvc_ComponentSettingList_s"</P> ComponentSettingListItem[2].FindByComponentId(string ComponentId) which based on the definition alone, it clearly seems that it is supposed to return all lists of a specific component also failed. [/2]</FONT> |
Netriplex Corporation<br /> |
|
|
|
Rank: Member
Joined: 4/10/2006(UTC) Posts: 462
|
Any confirmation/rebuttal on this issue? |
Netriplex Corporation<br /> |
|
|
|
Rank: Member
Joined: 3/1/2006(UTC) Posts: 1,142
|
Yes, it appears that you are correct. Both the FindByComponentId and FindByComponentIdEncrypted both should be calling "bvc_ComponentSettingList_ByComponentId_s" |
Justin Etheredge Senior Software Engineer BVSoftware |
|
|
|
Rank: Member
Joined: 4/10/2006(UTC) Posts: 462
|
Is an official patch for this going to be released or should we just re-compile the core ourselves and go from there? |
Netriplex Corporation<br /> |
|
|
|
Rank: Member
Joined: 3/1/2006(UTC) Posts: 1,142
|
This fix will most likely be put into the next service pack. Releasing a patch of the core is extremely complex and so this fix will most likely go into SP3. |
Justin Etheredge Senior Software Engineer BVSoftware |
|
|
|
Rank: Member
Joined: 4/10/2006(UTC) Posts: 462
|
Hi Justin,
After putting off the project that was using this function for a bit, I have since resumed work on it and have realized that there is an additional problem with this function than simply the stored procedure name.
The way the function is currently written, the first item of a list is never added to the collection.
The 2 functions referenced above both need to have currList.Add(listItem) added to the "Else" portion of the if statement after the new "list" is initialized. |
Netriplex Corporation<br /> |
|
|
|
Rank: Member
Joined: 3/1/2006(UTC) Posts: 1,142
|
We will get this fixed and we are going to release it today with the Core patch that we are planning on releasing. |
Justin Etheredge Senior Software Engineer BVSoftware |
|
|
|
Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.