I'm trying to find certain conditions and if they equal those conditions (there may be more than one, which is why I have the loop) I want to change the item properties. It seems to be looping through, but the properties aren't changing for some reason. Can anyone make some suggestions? Thanks!
CURSOR C1P IS
SELECT cdtrans
FROM pd21ptxncode
WHERE nuchange = :b_ctrl_1.nuchange;
BEGIN
OPEN C1P;
LOOP
FETCH C1P
INTO l_cdtrans_s;
IF l_cdtrans_s = 'CHK' THEN
Set_Item_Property (':b_personn.NB_adcityc',Navigable,Property_true);
Set_Item_Property (':b_personn.nb_adcityc',Insert_allowed,Property_true);
Set_Item_Property (':b_personn.nb_adcityc',Update_allowed,Property_true);
Set_Item_Property (':b_personn.nb_adcityc',Visual_attribute,'VA_OPT_ITEM');
Set_Item_Property (':b_personn.adstatec',Navigable,Property_true);
Set_Item_Property (':b_personn.adstatec',Insert_allowed,Property_true);
Set_Item_Property (':b_personn.adstatec',Update_allowed,Property_true);
Set_Item_Property (':b_personn.adstatec',Visual_attribute,'VA_OPT_ITEM');
Exit
WHEN C1P%NOTFOUND;
END LOOP;
Close C1P;
END;
CURSOR C1P IS
SELECT cdtrans
FROM pd21ptxncode
WHERE nuchange = :b_ctrl_1.nuchange;
BEGIN
OPEN C1P;
LOOP
FETCH C1P
INTO l_cdtrans_s;
IF l_cdtrans_s = 'CHK' THEN
Set_Item_Property (':b_personn.NB_adcityc',Navigable,Property_true);
Set_Item_Property (':b_personn.nb_adcityc',Insert_allowed,Property_true);
Set_Item_Property (':b_personn.nb_adcityc',Update_allowed,Property_true);
Set_Item_Property (':b_personn.nb_adcityc',Visual_attribute,'VA_OPT_ITEM');
Set_Item_Property (':b_personn.adstatec',Navigable,Property_true);
Set_Item_Property (':b_personn.adstatec',Insert_allowed,Property_true);
Set_Item_Property (':b_personn.adstatec',Update_allowed,Property_true);
Set_Item_Property (':b_personn.adstatec',Visual_attribute,'VA_OPT_ITEM');
Exit
WHEN C1P%NOTFOUND;
END LOOP;
Close C1P;
END;