Monday, July 29, 2013

OLM How to Update Classes Status



Is there An API To Update Scores Or to UPDATE/CREATE Records For OTA_ATTEMPTS, OTA_PERFORMANCES,OTA_TEST_QUESTIONS, OTA_QUESTION_BANKS, OTA_UTEST_RESPONSES, OTA_LO_FOLDERS, OTA_LEARNING_OBJECTS ? (Doc ID 406223.1)


Column LESSON_STATUS in table OTA_PERFORMANCES hold the player status value. Currently there are no publicly callable API's available the will permit a user to manually manipulate LESSON_STATUS. The only supported method for changing this value would require having the learner attempt and complete the learning object again though the Learner UI.

So We have to do direct base table update if this is feasible. I have done the direct base table update for one class and it worked fine.

select * from ota_activity_versions
where version_name like ‘Course Name’;-- course

select * from OTA_OFFERINGS
where activity_version_id=83037;-- offering

select * from ota_events
where activity_version_id=83037;-- class

select * from ota_learning_objects
where learning_object_id=81017;--learning objects

select * from OTA_DELEGATE_BOOKINGS
where event_id=108019
and delegate_contact_email='Jon.Hillegeist@taconic.com';--contains enrollments

select * from ota_performances
where lesson_status='P'
and user_id=22461
and   learning_object_id=81017; -- contains test results

select * from ota.ota_attempts
where event_id=108019
and  learning_object_id=81017
and user_id=22461
and attempt_id=217626
and attempt_status='F';-- contains attempt details for the test

update ota_performances
set lesson_status='P'
where performance_id=293169;

update ota_attempts set attempt_status='P'
where attempt_id=217626;

commit;
 

Tuesday, July 23, 2013

Query to find KEY FLEX FIELDS (KFF)



Query to find KEY FLEX FIELDS (KFF)

select  FIF.APPLICATION_ID  ,
        FIF.ID_FLEX_CODE    ,
        FIF.ID_FLEX_NAME    ,
        FIF.APPLICATION_TABLE_NAME ,
        FIF.DESCRIPTION     ,
        FIFS.ID_FLEX_NUM    ,
        FIFS.ID_FLEX_STRUCTURE_CODE  ,
        FIFSE.SEGMENT_NAME,
        FIFSE.SEGMENT_NUM,
        FIFSE.FLEX_VALUE_SET_ID
from    FND_ID_FLEXS FIF    ,
        FND_ID_FLEX_STRUCTURES FIFS ,
        FND_ID_FLEX_SEGMENTS FIFSE
where   FIF.APPLICATION_ID = FIFS.APPLICATION_ID
and     FIF.ID_FLEX_CODE   = FIFS.ID_FLEX_CODE
and     FIFSE.APPLICATION_ID = FIF.APPLICATION_ID
and     FIFSE.ID_FLEX_CODE = FIF.ID_FLEX_CODE
and     FIFSE.ID_FLEX_NUM = FIFS.ID_FLEX_NUM
and     FIF.ID_FLEX_CODE LIKE 'GL#'
and     FIF.ID_FLEX_NAME LIKE 'Accounting Flexfield';

Tuesday, July 16, 2013

Finding the name of a DFF in a seeded Form



The first step in enabling a Descriptive Flex Field (DFF) in a seeded Form is to find out the name of the DFF. Identifying a DFF involves the following steps:

1. Navigate to the Form which contains the DFF which needs to be identified.
2. Click on the DFF and then go to Help>Diagnostics>Examine to open the  ’Examine Field and Variable Values’ window, note down the Block and Field names.
3. In the ‘Examine Field and Variable Values’ window, select  $DESCRIPTIVE_FLEXFIELD$ as the Block and enter . as the Field. and are the values obtained in Step#2. Press the TAB key or click on the Value field. The name of the DFF will be displayed in the Value field along with the application under which it is registered.
4. You can now navigate to Application Developer>Flexfield>Descriptive>Register  and execute a query with the DFF name (obtained in Step#3) in the Title field to obtain the complete details of the DFF.