on 03-01-2019 1:17 PM
Hi Folks,
I have a requirement in which I have to read offline pricing data that is available in prices view of product work center in C4C. I use Sales Price Specification BO to retrieve the data. There are two Query 1st is for initializing which is QueryByGroupCode and second is QueryByTypeCodeAndPropertyIDAndPropertyValue.
Initial query is returning correct config data for offline pricing but second query is not producing any records from the prices.
Below is screen shot of offline pricing that I have to read.
2. During debugging, I can see 1st query is giving result but when we execute the second one it is not giving any records. Below is the screen shot of debugging :-
I am using following code to get the data of Offline pricing.
Kindly suggest me how I will get data of offline pricing which i have mentioned in 1st screen shot.
import ABSL; import AP.FO.PriceAndTax.Global;
import AP.Common.GDT;
var ID = "A112ATZ";
var priceList : BusinessObject::SalesPriceSpecification;
var propertyValuation : BusinessObject::SalesPriceSpecification.PropertyValuation;
//// Initialization query to define Workcenter subview,
var initQuery = SalesPriceSpecification.QueryByGroupCode;
// offline pricing
initSelParams.Add(initQuery.GroupCode.content, "I", "EQ","COD_PRICES");
var initQueryResult = initQuery.Execute(initSelParams); /
/// Query base price list
var query = SalesPriceSpecification.QueryByTypeCodeAndPropertyIDAndPropertyValue;
var sel = query.CreateSelectionParams(); sel.Add(query.TypeCode.content,"I","EQ","ZJPS"); sel.Add(query.PropertyValuationPriceSpecificationElementPropertyValuation1.PriceSpecificationElementPropertyReference.PriceSpecificationElementPropertyID.content,"I","EQ","CND_PRODUCT_ID"); //sel.Add(query.PropertyValuationPriceSpecificationElementPropertyValuation1.PriceSpecificationElementPropertyValue.ID.content, "I","EQ",ID);
var Result = query.Execute(sel); if(Result.GetFirst().IsSet())
{
}
Hi Sunny,
I have similar requirement and I am struggling with this query, could you help me out on you resolved this issue?
Thanks in advance.
Rocky
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
76 | |
9 | |
8 | |
7 | |
6 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.