NOt able to get text value for 0calmonth in the query

hi,
I am not able to get the test for the calmonth in the selection screen of the Query.
i.e If the user enter the value 01/2010 as input in the selection screen. I am not able to get its text Janurary 2010 displayed in the selection screen of the query.
please let me know what could be the reason for this.
regards,
Mahesh

Hi Mahesh,
I regret to inform you there is no option to display the month text.
The system works as designed. The "Key and text" option for the      
infoObject is for display the technical name and the description.                                                                               
I found a customer on SDN which the same doubt and the answer for your
question. Please, check the link below:                                                                               
0calday text variable        
Best Regards,
Des

Similar Messages

  • My ipod app no longer works. Everytime I go to open the ipod app it stays open for a second and then shuts down. I am not able to get anything to play either through the standard ipod controls or the multitasking control panel. I'm sure there will be an u

    my ipod app no longer works. Everytime I go to open the ipod app it stays open for a second and then shuts down. I am not able to get anything to play either through the standard ipod controls or the multitasking control panel. I'm sure there will be an update soon to correct this, i just wanted to see if anyone else was having the same problem.
    wen i open ipod in my iphone ,, it gets stuck ,, and get backs to the menu ,,, and doesnot play anything ,, not video nor song

    If your phone is not officially unlocked by the carrier in the UK, you can not use the phone using another SIM, unless you modify the software or the SIM, which can lead to unexpected results, such as non functioning apps.
    Unauthorized modification of iPhone OS has been a major source of instability, disruption of services, and other issues
    Problems resulting from those modifications can't be discussed in these forums, due to the Terms of Use

  • Sales Order form error  "Not able to retrieve Display values for Service"

    Hi,
    Few of our orders flash the below error message when the order is queried
    "Not able to retrieve Display values for Service"
    Below are the points I observed
    1.The orders I am referring to are imported order via EDI interface.
    2.The service reference type code has value of ORDER, however no other service related fields (like service reference line id) have any values.
    3. The item is not a service item (service tab in Item setup is disabled)
    4. Same item when imported with value of "Customer Ordered" in "service reference type code" field, does not throw an error.
    5. If I update "service reference type code" with value null or change it to CUSTOMER_PRODUCT, the error disappears.
    Can someone explain the significance of this column value and what could have been causing this error message?
    May be there are some dependent fields/setups which must have a value when service reference type code =ORDER.
    Thanks in advance,
    JC
    Edited by: user10174990 on Oct 25, 2012 10:58 AM

    Hi,
    Maintain the dafault values using Tcode OISF with respective to Planning Plant you have to maintain the following values like Order Type, Main Work Center, Maint. Plant,Group,Group Counter,Business Area & Task List type.
    or
    Apply these OSS note 150732 / 195993.
    regards,
    Venkatesan Anandan

  • Latest Lithroom 5.6 does not recognize my .cr2 raw file format and Windows 7 it asociates with my older raw plug in in Ps CS5.5. I am not able to change default program for .cr2 in the properties pannel...

    Latest Lithroom 5.6 does not recognize my .cr2 raw file format and Windows 7 it asociates with my older raw plug in in Ps CS5.5. I am not able to change default program for .cr2 in the properties pannel...
    every new released update of Lr from v 5.2 changed somethin in my Windows 7 Professional settings. I am stucked. Can somebody help me please? Many thanks. Andrej

    Hi Jim,
    yes after I imported my .cr2 raw files into new catalog it started to work. Windows 7 still does not recognize them but I can edit them as you said within the Lr5.6 and then export them into .psd or .dng files...as needed.
    I bought Lr5 only because I got present - my new camera Cannon 70D and because my older Photoshop CS5.5 raw plugin does not recognize. cr2 files.
    Many thanks for your help.
    Andrej.

  • I am not able to get PO Value in MCE1, MCE3, MCE5 and MCE7

    Hi Gurus,
    Here i am having the probelm with these transactions MCE1, MCE3, MCE5, MCE7.
    In these t-codes we are not able to get Purchase Order Values...  Please help me out from this ... To get the PO Value what should i do .... there PO  values are showing '0.00' (Zero)..
    this is urgent for my client... they want to use these transaction..
    Rewards in advance....
    Regards,
    Naveen Myneni

    Hi Dhanya,
    >>I have one image id in my application which is dynamic and while replaying my script is failing.
    From your description, could you please tell me which kind of application you create?
    What type test you create in VS, is it the Web Performance test or other type test?
    If you are running the web performance test for your application in VS, as you said that the image id is dynamic value. I suggest you can refer the following article to debug your issue, maybe you will get more useful message.
    For more explanation and solutions, please see:
    How to debug a Web Test 
    If I misunderstanding your issue. please tell me more detail message about your issue.
    Best Regards,
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Not able to get net value in billing document vf01.

    Hello Sir,
    I am trying to create an invoice for  milestone billing plan. I have maintained copy controls  at item level as follows
    coplying req.  002
    vbrk/vbrp        001
    pricingtype     D
    billing qntty     A
    while i save contract and trying to create billing document  system is not able to show net value in billing document. 
    Please guide me to get the net value in the billing document.
    looking forward to reply.

    Sir, May I know what is the process to confirm milestone billing. as per my knowledge we release billing block and then billing document is processed.
    In my case even if i release billing block billing document succesfully created and saved but net value seems zero.
    I am not aware of complete proces.
    reply would be appreciated.
    thanks

  • JAXB: not able to get Attribute value

    Hi there,
    I am using oracle JAXB for XML processing. I am not able to get the value of an attribute. I ran the same code in SUN JWSDP 1.3, which worked correctly. I am not able to get the "foo" attribute for <Table> element using oracle JAXB.
    The XML schema follows:
    <?xml version='1.0' encoding='UTF-8' ?>
    <schema targetNamespace="http://www.oracle.com/iAS/aggregator"
    xmlns:xsd="http://www.w3.org/2001/XMLSchema"
    xmlns:jaxb="http://java.sun.com/xml/ns/jaxb"
    xmlns:ag="http://www.oracle.com/iAS/aggregator"
    xmlns="http://www.w3.org/2001/XMLSchema"
    jaxb:version="1.0"
    elementFormDefault="qualified">
    <annotation>
    <appinfo>
    <jaxb:globalBindings fixedAttributeAsConstantProperty="true"
    />
    <jaxb:schemaBindings>
    <jaxb:package name="oracle.dms.aggregator.adml"/>
    </jaxb:schemaBindings>
    </appinfo>
    </annotation>
    <complexType name="Adml_T">
    <sequence>
    <element name="Table" type="ag:Table_T" minOccurs="0" maxOccurs="unbounded"/>
    </sequence>
    <attribute name="Version" type="token" fixed="10.1.3"/>
    </complexType> <!-- Adml -->
    <complexType name="Table_T">
    <attribute name="foo" type="Name"/>
    </complexType> <!-- Table -->
    <element name="Adml" type="ag:Adml_T"/>
    </schema>
    The XML file is:
    <?xml version='1.0' encoding='UTF-8' ?>
    <Adml xmlns="http://www.oracle.com/iAS/aggregator">
    <Table foo="foosailor">
    </Table>
    </Adml>
    The java file is:
    import javax.xml.bind.JAXBContext;
    import javax.xml.bind.Unmarshaller;
    import java.io.File;
    import java.util.List;
    import java.util.Iterator;
    import oracle.dms.aggregator.adml.Adml;
    import oracle.dms.aggregator.adml.TableT;
    public class JaxbQA
    public static void main (String[] args)
    throws Exception
    Adml adml;
    String fileName = "aggregator.xml";
    String instancePath = "oracle.dms.aggregator.adml";
    JAXBContext jc = JAXBContext.newInstance(instancePath);
    Unmarshaller u = jc.createUnmarshaller();
    u.setValidating(true);
    Object obj = u.unmarshal(new File(fileName));
    adml = (Adml)obj;
    List tables = adml.getTable();
    for (Iterator iter = tables.iterator();
    iter.hasNext();)
    TableT admlTable = (TableT)iter.next();
    String name = admlTable.getFoo();
    System.err.println("table foo=" + name);
    c:\oracle\jdk\bin\java.exe -classpath .;c:\oracle\xdk\lib\xmlparserv2.jar;c:\oracle\xdk\lib\xml.jar JaxbQA
    table foo=null

    I tested in both 10.1.0.2.0 and 10.1.0.3, which both showed the same problem. A bug #3621204 has been filed.

  • Not able to get text id

    Hi Experts,
                     we have created text entry in va01 header text, so how can i pick the text since i m not able to get the text id.
    Regards
    sumit

    Hi,
    Use this FM READ_TEXT' and pass the so no, language and id as shown below, for example in me23n --> enter po no  --- click text tab ---. click header text there. In the area rightside to header text. click on that area --- then goto goto in menu ---> click header --> there u will find text id and text object there  and pass them to the FM along with ur sono.
    CONCATENATE i_ekpo-ebeln  i_ekpo-ebelp  INTO str.
          CALL FUNCTION 'READ_TEXT'
            EXPORTING
              id                      = 'F01'
              language                = sy-langu
              name                    = str
              object                  = 'EKPO'
            TABLES
         lines                   = item_i_xtline
            EXCEPTIONS
              id                      = 1
              language                = 2
              name                    = 3
              not_found               = 4
              object                  = 5
              reference_check         = 6
              wrong_access_to_archive = 7
              OTHERS                  = 8.
    Regards,
    Kiran.

  • Not able to get ItemKey value on OAF page.

    Hi OAF Gurus,
    I build a OAF transaction based on Workflow where I am using below code , but getting NULL values for itemKey
    public void processFormRequest(OAPageContext pageContext, OAWebBean webBean)
    super.processFormRequest(pageContext, webBean);
    OAApplicationModule am = pageContext.getApplicationModule(webBean);
    OADBTransaction oadbtransaction = am.getOADBTransaction();
    SSHRParams sshrparams = new SSHRParams(oadbtransaction);
    // gives null String itemKey = sshrparams.getItemKey();
    // gives null String itemKey = OANavigation.getItemKey(pageContext);
    // gives null String itemKey = WFUtility.getItemKey(pageContext);
    // gives null String itemKey = ((StringBuffer)oadbTxn.findObject("wfItemKey")).toString();
    // gives null String itemKey = oaNavigation.getItemKey(pageContext);
    BIG QUESTION : How to get the itemKey???????????
    Other approaches : I extended my custom AM to oracle's AM (thinking that may be new SSHRParams(oadbtransaction), might work with oracle's transaction), but no luck
    Facts
    1. Workflow has started and this page has been invoked from workflow using BLOCK function.
    2. If I hard code the itemKey and itemType, I can calculate the activity id correctly using String activityId = new String(""+WFUtility.getActivityId(am, itemType, itemKey));
    3. I need the itemKey to abe able to navigate to NEXT or PREVIOUS page in the workflow example : WFUtility.wfTransitionActivity(pageContext, itemType, itemKey,activityId, "NEXT"); when next button is clicked
    Please help me out in this.
    Thanks,
    Chaitanya

    I am posting what approach worked for me.
    Step 1: Create a Page called InitContextPG.xml , set a controller InitContextCO.java
    Step2: In InitContextPG.xml set Application module as oracle.apps.per.selfservice.common.server.CommonAM
    Step 3: Edit InitContextCO.java
    import oracle.apps.per.selfservice.common.SSHRParams;
    import oracle.apps.per.selfservice.payrate.PayRateParams;
    import oracle.apps.per.selfservice.workflowservice.server.WFUtility;
    public void processRequest(OAPageContext pageContext, OAWebBean webBean)
    /* Logging Code*/
    if(pageContext.isLoggingEnabled(OAFwkConstants.PROCEDURE))
    {pageContext.writeDiagnostics(this," processRequest().START ",OAFwkConstants.PROCEDURE);}
    super.processRequest(pageContext, webBean);
    //.........................................SETTING PAY_RATE_PARAMS.................................................................
    //oadbTxn.getValueNames();
    Hashtable PAY_RATE_PARAMS = (Hashtable)oadbTxn.findObject(PayRateParams.m_name);
    if(PAY_RATE_PARAMS==null){PAY_RATE_PARAMS= new Hashtable();}
    pageContext.putSessionValueRaw(PayRateParams.m_name,PAY_RATE_PARAMS);
    writeLog(pageContext,PayRateParams.m_name+"="+PAY_RATE_PARAMS);
    //.........................................SETTING SSHR_PARAMS.................................................................
    Hashtable SSHR_PARAMS = (Hashtable)oadbTxn.findObject(SSHRParams.m_name);
    if(SSHR_PARAMS==null){SSHR_PARAMS= new Hashtable();}
    pageContext.putSessionValueRaw(SSHRParams.m_name,SSHR_PARAMS);
    writeLog(pageContext,SSHRParams.m_name+"="+SSHR_PARAMS);
    //.........................................SETTING WORKFLOW ACTIVITY.................................................................
    SSHRParams sshrparams = new SSHRParams(pageContext.getRootApplicationModule().getOADBTransaction());
    String itemKey =sshrparams.getItemKey();
    String itemType = sshrparams.getItemType();
    String activityId = sshrparams.getActivityId();
    WFUtility.wfTransitionActivity(pageContext, itemType, itemKey,activityId, "DEFAULT");
    /* Logging Code*/
    if(pageContext.isLoggingEnabled(OAFwkConstants.PROCEDURE))
    {pageContext.writeDiagnostics(this,"processRequest().END",OAFwkConstants.PROCEDURE);}
    Step4 : Create a FND Function Y_HR_INIT_CONTEXT_SS having html call to InitContextPG.xml
    Step 5 : In the Workflow create a Function, called Init Context
    set : Function Name : HR_WORKFLOW_SERVICE.BLOCK
    set : Function Type : PLSQL
    set : Result Type : HR MEE Transacitons V4.0
    Node Attribute : HR Activity Type : JSP
    Node Attribute : HR Activity Type Value : Y_HR_INIT_CONTEXT_SS
    Step 6: So Workflow should look like
    START-----<default>---------> Init Context -----------<default>-------> MY_PAGE (which needs WF parameters)
    Step 7. Now you have MY_PAGE.xml where you need the ItemKey and ActivityID etc., create a controller MY_PAGE_CO.java
    * Layout and page setup logic for a region.
    * @param pageContext the current OA page context
    * @param webBean the web bean corresponding to the region
    public void processRequest(OAPageContext pageContext, OAWebBean webBean)
    /* Register the ORACLE HRMS Objects before super.processRequest*/
    this.registerObject(pageContext,SSHRParams.m_name);
    this.registerObject(pageContext,PayRateParams.m_name);
    super.processRequest(pageContext, webBean);
    SSHRParams sshrparams = new SSHRParams(oadbTxn);
    String itemKey =sshrparams.getItemKey();
    String itemType = sshrparams.getItemType();
    String activityId = sshrparams.getActivityId();
    // You Finally have the values of itemKey ,itemType and activityId
    OAApplicationModule am = pageContext.getRootApplicationModule();
    OADBTransaction oadbTxn = am.getOADBTransaction();
    * Registers an object from session to transaction.
    public void registerObject(OAPageContext pageContext,String ObjectName)
    Object objectValue = (Object)pageContext.getSessionValueRaw(ObjectName);
    this.writeLog(pageContext,ObjectName+"="+objectValue);
    OAApplicationModule am = pageContext.getRootApplicationModule();
    OADBTransaction oadbTxn = am.getOADBTransaction();
    /* Check if the Object is registered already, else register it*/
    if(oadbTxn.findObject(ObjectName) == null && objectValue!=null)
    oadbTxn.registerObject(ObjectName,objectValue);
    Edited by: Chaitanya Dubey on Feb 3, 2011 1:45 PM
    Edited by: Chaitanya Dubey on Feb 3, 2011 1:54 PM
    Edited by: Chaitanya Dubey on Feb 3, 2011 1:54 PM

  • Not able to get complete data in Heading of the smarform

    Dear Friends,
                    I am devloping a smartform for my requiremnt, i am not able to get complete data jin Header Window ( i.e the Title Name of the company is not getting fully) when i execute the Smartform ,
    Iam able to see only the last few words of the Text. Please help me what i should do in this regard
    regards
    madhuri

    Hi
    Also, check where the window is placed in the Form Painter...may be it is not on the page properly..and also check the size of the window..
    Further, check the paragraph format that is used.
    Regards,
    Vishwa.
    Edited by: Vishwa Sri Hari on Oct 15, 2008 1:21 PM

  • Not able to get changed values in the SAVE EVENT in ServHPartnerDet view

    Hi Experts,
    I am new CRM WEB IC, i have requirement like need to access four IBASE fields from BupaIbaseDetail and need to display those fiedls in ServHPartnerDet view. I am able display the fields and its values in the target view. But when user press change button and changes those four fields and press save button not able get the changed values in to the SAVE EVENT.Anyone please help me in this.
    IBHEADER , IBASEADDRESS  are the CONTEXT NODE CREATED in target view. I have binded IBHEADER to CuCoIbase custom controller and getting four fields data from IBASEADDRESS. below is the code for CREATE_CONTEXT_NODES.
    METHOD create_ibaseaddress.
      DATA:
        model        TYPE REF TO if_bsp_model,
        coll_wrapper TYPE REF TO cl_bsp_wd_collection_wrapper,
        entity       TYPE REF TO cl_crm_bol_entity,              "#EC *
        entity_col   TYPE REF TO if_bol_entity_col.             "#EC *
      model = owner->create_model(
          class_name     = 'ZL_CRM_IC_SERVHPDET_CN00'
          model_id       = 'IBaseAddress' ).                    "#EC NOTEXT
      ibaseaddress ?= model.
      CLEAR model.
      coll_wrapper =
        ibheader->get_collection_wrapper( ).
    TRY.
          entity ?= coll_wrapper->get_current( ).
        CATCH cx_sy_move_cast_error.
      ENDTRY.
      IF entity IS BOUND.
        TRY.
            entity_col = entity->get_related_entities(
                            iv_relation_name = 'FirstLevelComponent' ).
          CATCH cx_crm_genil_model_error.
        ENDTRY.
        TRY.
            entity ?= entity_col->get_current( ).
          CATCH cx_sy_move_cast_error.
        ENDTRY.
        CLEAR entity_col.
        IF entity IS BOUND.
          TRY.
              entity_col = entity->get_related_entities(
                              iv_relation_name = 'ComponentAddress' ).
              ibaseaddress->set_collection( entity_col ).
            CATCH cx_crm_genil_model_error.
          ENDTRY.
        ENDIF.
      ENDIF.
    ENDMETHOD.

    Code i have written in the CREATE_CONTEXT_NODE method for my custom context nodes( IBHEADER,IBASEADDRESS).
    this  CREATE_IBHEADER some data related to IBASE header then from this reading the IBASEADDRESS contextnode fields for displaying in the ServHPartnerDet. It is working fine but After changing the four fields values in the ServHPartnerDet view and trying to save, then context is not reading the new values it gives the old values only.
      TRY.
          lr_coll_wr = ztyped_context->ibaseaddress->get_collection_wrapper( ).
          IF lr_coll_wr IS BOUND.
            lr_entity ?= lr_coll_wr->get_current( ).
          ENDIF.
        CATCH cx_crm_genil_model_error.
      ENDTRY.
      CALL METHOD lr_entity->if_bol_bo_property_access~get_property_as_value
        EXPORTING
          iv_attr_name = 'BUILDING'
        IMPORTING
          ev_result    = lw_building.
    the building has got result of old value no the new value.
    method CREATE_IBHEADER.
        DATA:
          model        TYPE REF TO if_bsp_model,
          coll_wrapper TYPE REF TO cl_bsp_wd_collection_wrapper,
          entity       TYPE REF TO cl_crm_bol_entity,    "#EC *
          entity_col   TYPE REF TO if_bol_entity_col.    "#EC *
        model = owner->create_model(
            class_name     = 'ZL_CRM_IC_SERVHPDET_CN01'
            model_id       = 'IBHEADER' ). "#EC NOTEXT
        IBHEADER ?= model.
        CLEAR model.
    bind to custom controller
      DATA:
          cuco TYPE REF TO cl_crm_ic_cucoibase_impl,
          cnode TYPE REF TO cl_bsp_wd_context_node.
      cuco ?= owner->get_custom_controller(
            'CuCoIbase' ).                                      "#EC NOTEXT
      cnode ?=
        cuco->typed_context->ibaseheader.
      coll_wrapper = cnode->get_collection_wrapper( ).
      ibheader->set_collection_wrapper( coll_wrapper ).
    endmethod.

  • Not able to get ESS iviews for 80 and 80C

    Dear All,
    We have implemented ESS MSS BP (ERP 2005 EHP3) and have standard iviews working on the portal.
    But when i preview the iview for section 80 and 80 C, i get the following error.
    " com.sapportals.portal.prt.runtime.PortalRuntimeException: Failed in WD JNDI lookup. javax.naming.NameNotFoundException: No child found in WebDynproContext with name essinsec80 "
    Also, am not able to find the application in the Webdynpro Administrator.
    Can somebody throw their experiences regarding why this is occuring and how this can be resolved.
    Thanks
    Regards
    Piyush Bhurangi

    Hi Piyush,
    ESS MSS BP (ERP 2005 EHP3)
    as you said earlier that you have applied EHP3 .
    But the pacth you have applied is EHP4 and not EHP3
    BP_ERP5ESS 1.41 SP3 (1000.1.41.3.0.20090430054002)
    And this is a cause of the problem which you are facing .
    You are applying the BP which is relase EHP4 and you SAP_ESS is on relase 600 as well as your backend patch is also not equivalent for BP -ESS EHP4.
    So the solution is ;-
    If you have to use BP-ESS with EHP4 , then you have to upgrade you backend SAP_HR with EHP4 and SAP_ESS patch with 603.
    Thanks
    Anil

  • HFM: Where can I specify column type as type in HFM? And also being able to get text value in smartview

    Dear all,
    I'm new to HFM (11.1.2.1), and I have a question regarding where I can specify a column type as "Text" not number in web form of HFM. Right now I set "Cell Text" field to "[Default]", but was unable to get the text (HsGetText) in smartview with corresponding POV. The reason I thought was that I didn't successfully store the text in the POV. But how to correctly indicate a column type as "Text"?  Does anyone know the answer?

    Hi there,
    I am not sure if I understand what you want to achieve. However, I would suggest to set the Cell Text field to "1" (instead of "[Default]") in order to be able to input/export cell text in a web. form.
    Regards,
    Thanos
    < spam signature link removed by moderator >

  • Not able to get distict values even after defining  MAP MEMBER FUNCTION

    Hi,
    I am trying to get distinct values from a query to a table type. Please see the code below
    CREATE OR REPLACE TYPE T_COPY_EVNT_DTL
    IS
      OBJECT
        eventId               VARCHAR2(100),
        eventDescription      VARCHAR2(100),
        promoMonthDescription VARCHAR2(100),
        promoStartDate        VARCHAR2(100),
        promoEndDate          VARCHAR2(100),
        PROMOCOSTSTARTDATE    VARCHAR2(100) ,
        MAP MEMBER FUNCTION sort_key
        RETURN VARCHAR2 );
    CREATE OR REPLACE TYPE BODY T_COPY_EVNT_DTL
    AS
      MAP MEMBER FUNCTION sort_key
      RETURN VARCHAR2
    IS
    BEGIN
      RETURN eventId ;
    END;
    END;
    CREATE OR REPLACE TYPE T_EVENT_TABLE
    IS
      TABLE OF T_COPY_EVNT_DTL;
              with event_data as (
    select '1' event,'event1' event_desc,'monthdesc1' promo_month_desc ,'01/01/2001' promo_start_date     ,'01/01/2002' promo_end_date,'01/02/2001' promo_cost_start_date from dual union all     
    select '1' event,'event1' event_desc ,'monthdesc1'promo_month_desc ,'01/01/2001' promo_start_date     ,'01/01/2002' promo_end_date,'01/02/2001' promo_cost_start_date from dual union all
    select '3' event,'desc3' event_desc ,'monthdesc3' promo_month_desc,'01/01/2001' promo_start_date     ,'01/01/2002' promo_end_date,'01/02/2001' promo_cost_start_date from dual union all
    select '2' event ,'desc2' event_desc ,'monthdesc2' promo_month_desc ,'01/01/2001' promo_start_date     ,'01/01/2002' promo_end_date ,'01/02/2001' promo_cost_start_date from dual )
    SELECT  cast(collect(distinct t_copy_evnt_dtl(event,
                                                                                                                        event_desc,
                                                                                                                        promo_month_desc,
                                                                                                                        promo_start_date,
                                                                                                                       promo_end_date,
                                                                                                                  promo_cost_start_date) ORDER BY
                                                                event_desc,
                                                                promo_month_desc,
                                                                promo_start_date,                                                   
                                                                promo_end_date,                                           
                                                                promo_cost_start_date) as t_event_table)  from event_data;
    result :
    T_EVENT_TABLE('T_COPY_EVNT_DTL('2','desc2','monthdesc2','01/01/2001','01/01/2002','01/02/2001')',
              'T_COPY_EVNT_DTL('3','desc3','monthdesc3','01/01/2001','01/01/2002','01/02/2001')',
              'T_COPY_EVNT_DTL('1','event1','monthdesc1','01/01/2001','01/01/2002','01/02/2001')',
              'T_COPY_EVNT_DTL('1','event1','monthdesc1','01/01/2001','01/01/2002','01/02/2001')')Please help me to find out the reason why it is not working...

    Remove the comma from T_COPY_EVNT_DTL TYPE.
    ORA-22800 indicates invalid user-defined type.
        PROMOCOSTSTARTDATE    VARCHAR2(100) ,
        MAP MEMBER FUNCTION sort_keyAnd it will be fine.
    SQL> CREATE OR REPLACE TYPE  T_COPY_EVNT_DTL
      2  IS
      3    OBJECT
      4    (
      5      eventId               VARCHAR2(100),
      6      eventDescription      VARCHAR2(100),
      7      promoMonthDescription VARCHAR2(100),
      8      promoStartDate        VARCHAR2(100),
      9      promoEndDate          VARCHAR2(100),
    10      PROMOCOSTSTARTDATE    VARCHAR2(100),
    11      --,
    12      MAP MEMBER FUNCTION sort_key
    13      RETURN VARCHAR2 );
    14  /
    Type created
    SQL>
    SQL> CREATE OR REPLACE TYPE BODY T_COPY_EVNT_DTL
      2  AS
      3    MAP MEMBER FUNCTION sort_key
      4    RETURN VARCHAR2
      5  IS
      6  BEGIN
      7    RETURN eventId ;
      8  END;
      9  END;
    10  /
    Type body created
    SQL>
    SQL> CREATE OR REPLACE TYPE T_EVENT_TABLE
      2  IS
      3    TABLE OF T_COPY_EVNT_DTL;
      4  /
    Type created
    SQL>
    SQL>     with event_data as (
      2  select '1' event,'event1' event_desc,'monthdesc1' promo_month_desc ,'01/01/2001' promo_start_date  ,'01/01/2002' promo_end_date,'01/02/2001' promo_cost_start_date from dual union all
      3  select '1' event,'event1' event_desc ,'monthdesc1'promo_month_desc ,'01/01/2001' promo_start_date  ,'01/01/2002' promo_end_date,'01/02/2001' promo_cost_start_date from dual union all
      4  select '3' event,'desc3' event_desc ,'monthdesc3' promo_month_desc,'01/01/2001' promo_start_date  ,'01/01/2002' promo_end_date,'01/02/2001' promo_cost_start_date from dual union all
      5  select '2' event ,'desc2' event_desc ,'monthdesc2' promo_month_desc ,'01/01/2001' promo_start_date  ,'01/01/2002' promo_end_date ,'01/02/2001' promo_cost_start_date from dual )
      6  SELECT  cast(collect(distinct t_copy_evnt_dtl(event,
      7                                                 event_desc,
      8                                                 promo_month_desc,
      9                                                 promo_start_date,
    10                                                promo_end_date,
    11                                              promo_cost_start_date) ORDER BY
    12                          event_desc,
    13                          promo_month_desc,
    14                          promo_start_date,
    15                          promo_end_date,
    16                          promo_cost_start_date) as t_event_table)  from event_data;
    CAST(COLLECT(DISTINCTT_COPY_EV
    <Object>

  • Not able to get font style for some fonts

    Hi,
    I am getting font style(like regular, bold, italic etc) like this-
    while (count < fontCount) {//loop , which iterate throgh used fonts.
                                                      ATE::IFont currentFont = fontRefArray.Item(count);
                                                      if (!currentFont.IsNull()) {
                                                                FontRef fontRef = currentFont.GetRef();
                                                                AIFontKey fontKey = NULL;
                                                                result = sAIFont->FontKeyFromFont(fontRef, &fontKey);
                                                                result = sAIFont->GetUserFontName(fontKey, fontname, 50);
                                                                result = sAIFont->GetPostScriptFontName(fontKey, psname, 50);
                                                                result = sAIFont->GetFontStyleName(fontKey, stylename, 50);
                                                                result = sAIFont->GetFontFamilyUIName(fontKey, familyname, 50);
    For some fonts(not all the fonts) , Style name is comming as empty string, however for other fonts its working. Not sure why its working for some fonts and not for others. Other font properties are coming fine for all fonts.
    When its failing, result is not  kNoErr, but i dont know that how to get the exact error?Please help me in this issue.
    Regards,
    Harsh

    Hi A. Patterson,
    Thanks for your suggestion.
    I tried GetFontStyleUINameUnicode() also but its also returning the emply string for style name for some of the fonts only difference is that error is kNoErr for all fonts. May be there is some problem with those specific fonts(who knows? ).  m keep digging this.
    Regards,
    Harsh

Maybe you are looking for