PostgreSQL – SQL – rozbicie wartości po przecinku w kolumnie na wiersze

https://www.postgresql.org/docs/9.1/static/functions-string.html

 SELECT 
    ph_forms.ID, 
    ltrim(regexp_split_to_table(ph_forms."branchName", E',')) AS split_branchName
FROM ph_forms
 ORDER BY 1
Zaszufladkowano do kategorii SQL - PostgreSQL | Dodaj komentarz

MOAC on custom table

we can register a custom table to be under MOAC control:

fnd_access_control_util.add_policy
(p_object_schema => 'APPS'
,p_object_name => 'XXDNVGL_CUSSTOMTABLE'
,p_policy_name => 'ORG_SEC'
,p_function_schema => 'APPS'
,p_policy_function => 'MO_GLOBAL.ORG_SECURITY'
,p_statement_types => 'SELECT, INSERT, UPDATE, DELETE'
,p_update_check => TRUE
,p_enable => TRUE
,p_static_policy => FALSE);
END;

 

Zaszufladkowano do kategorii _EBS - ogólnie | Otagowano , , | Dodaj komentarz

OAF – zmienne na stronie jako parametry

Mamy na stronie tabele która dla wiersza(row) ma ustawione parametry w akcji ( action ).
W action deleteSetup ustawiamy paremtry np. pVendorId , ${oa.xxRecoAgentSetupHeadersAllVO1.VendorId}

 public void processFormRequest(OAPageContext pageContext, ...
//Jeżeli jest akacja to wykonaj kod.
if ("deleteSetup".equals(pageContext.getParameter(EVENT_PARAM))) {
//pobranie wartości z wiersza dla akcji 
            String pVendorId = pageContext.getParameter("pVendorId");
            String pOrgId = pageContext.getParameter("pOrgId");
// ustawienie zmiennych sesyjnych
            pageContext.putSessionValue("spVendorId", pVendorId);
            pageContext.putSessionValue("spOrgId", pOrgId);
 
//pobranie zmiennych sesyjnych 
 
 String gspVendorId= (String)pageContext.getSessionValue("spVendorId");
Zaszufladkowano do kategorii OAF | Otagowano | Dodaj komentarz

OAF – Tabela – dodanie nowego rekordu do tabeli

Przykad dla tabeli detail ( master->detail) dlatego jest pobranie viewlinka.

  public void xxCreateAgentSetupLines() {
 
        ViewLink vl = getViewLink1();
        OAViewObject childVO = (OAViewObject)vl.getDestination();
        childVO.executeQuery();
          //   System.out.println( "createRecordLines" );
 
        Row row = childVO.createRow();
 
        childVO.last();
        childVO.next();
        childVO.insertRow(row);
        childVO.setMaxFetchSize(1);
        row.setNewRowState(Row.STATUS_INITIALIZED);
 
    }
Zaszufladkowano do kategorii OAF | Otagowano | Dodaj komentarz

OAF – pobieranie nazwy autoryzacji

Pobranie nazwy autoryzacji, a następnie jej wyświetlenie na stronie OAF.

import oracle.apps.fnd.framework.webui.beans.layout.OAPageLayoutBean;
 
public void processRequest(OAPageContext pageContext, OAWebBean webBean) {
        super.processRequest(pageContext, webBean);
 
  String respName = String.valueOf(pageContext.getResponsibilityName());
  OAPageLayoutBean oapagelayoutbean = pageContext.getPageLayoutBean();
  oapagelayoutbean.setTitle(respName);
 
//inne zmienne
//pageContext.getUserName()
//pageContext.getUserId()
//pageContext.getUserName()
Zaszufladkowano do kategorii OAF | Otagowano | Dodaj komentarz

Form trace file

Kiedy robimy form trace file, czasem formatka pokazuje złą lokalizację pliku. Np.:

A trace file jest tak naprawdę w :

Żeby sprawdzić lokalizację gdzie są zapisywane trace files, trzeba odpalić poniższą komendę w SQL Plus

show parameter diag

 

 

Zaszufladkowano do kategorii _EBS - ogólnie, DBA | Otagowano , , , , | Dodaj komentarz

Debugowanie concurrent request using FND: Debug Log %

Profile options oraz query do debugowania concurrent requestu:

  1. enable the debug info by setting the following profiles (to be set at the user level for the user who is performing the test case !) in System Options in System Administrator responsibility:
    FA: print Debug = Yes 
    
    FND: Debug Log Enabled = Yes 
    
    FND: Debug Log Level = Statement 
    
    FND: Debug Log Module = 
  2. Run program
  3. Run the script after the request completes in an excel file:
    select log_sequence,module,message_text,log_level 
    from fnd_log_messages 
    where transaction_context_id = 
    (select transaction_context_id 
    from fnd_log_transaction_context 
    where transaction_id =&con_request_id) 
    order by log_sequence;

     

Otagowano , , | Dodaj komentarz

OAF – AM nie widzi danych w VO.

Witam,

Jeżeli mamy aplikację multiorgową i użyjemy w VO widok( synonim widoku) z „zabezpieczeniami” to po uruchomieniu strony z tym VO nie będziemy mieć danych. Wtedy do AM musimy dodać właściwość MULTIORG_ENABLED wartość S.

MULTIORG_ENABLED = S (for single OU access), or
MULTIORG_ENABLED = M (for multiple OU access)

2017-08-30 10_02_57-Oracle JDeveloper - xxdunnletter.jws _ OAProject9.jpr

https://drdavetaylor.com/2011/06/23/oa-framework-pages-querying-data-from-moac-synonyms-in-r12/

Pozdrawiam,
Luko

Zaszufladkowano do kategorii OAF | Dodaj komentarz