How to access Dictionary SimpleTypes in View's code??

Hello All,
I want to access the description corresponding to a 'Value' of a dictionary SimpleType. How do I achieve this?
Please help me.
regards,
Amey

ISimpleTypeModifiable modifiable = wdContext.getNodeInfo().getAttribute("Your Attribute").getModifiableSimpleType();
       modifiable.hasSVService()
       ISimpleValueServices simpleValueServices = modifiable.getSVServices();
       IModifiableSimpleValueSet simpleValueSet = simpleValueServices.getModifiableSimpleValueSet();
       for(int x=0; x<10;x++)
            simpleValueSet.put(String.valueOf(x), String.valueOf(x));
Use get and put methods to insert and retrieve values to/from simple type.
Regards
   Vinod V

Similar Messages

  • HOW TO ACCESS ATTRIBUTES FROM DIFFERENT VIEW SET

    Hi Experts,
    How i can  access the variables declared in context class from component controller class
    and vice-versa.
    Thanks & Regards
    Ansal

    Hi Ansal
    You can bind your context node of view to component controller context node and then you can access the data.
    You can do this binding by inserting following statements in create_context_node method of your _ctxt class.
    owner->do_context_node_binding( iv_controller_type = cl_bsp_wd_controller=>co_type_component
       iv_target_node_name = 'BUILHEADER'  
       iv_node_2_bind = builheader ).
    Regards,
    Rashmi

  • How to access Dictionary Structure in web dynpro(Where are you GS?) ?

    i had made one person Structure in Local dictionary.
    i had already this type of value node in my context.
    now i want to make an object of that type by code
           IPersonElement person =wdThis.wdGetContext().createPersonElement();
    Then it is giving me error <i><u>type can not be resolved</u></i>.
    Please Help Me....
    Regards
    Sunny.

    I am learning WebDynpro from tutorials i have
      in that once they said me to create three views.
             1.Start View
             2.Table View.
             3.Detail View.
    In start view 's context there are four elements
          Variable Name               Type
      1. First_Name                    String
      2.Last_name                      String
      3.Date_Begin                     Date
      4.Date_End                        Date
    then In Controller 's Context I had also created all above elements with same type.
    then i mapped all views with controller 's context.
    start view 's all elements i map with contoller 's context.
    then  i had created one structure in local data dictionary.
    Name of Structure is Person.
    and all above four attributes are also there.
    Now i create one value node in Table View  type of that is person.
    now i had also created binding of table with first_name and last_name.
    then in coding
    <i>
    Public Void onPlugfromStartView( )
    //@@begin onPlugfromStartView(ServerEvent)
    String firstname =
    wdThis.wdGetExc_UIController().wdGetContext().
    currentContextElement().getCmpCtx_firstname();
    String lastname =
    wdThis.wdGetExc_UIController().wdGetContext().
    currentContextElement().getCmpCtx_lastname();
    Date date_begin =
    wdThis.wdGetExc_UIController().wdGetContext().
    currentContextElement().getCmpCtx_dateBegin();
    Date date_end =
    wdThis.wdGetExc_UIController().wdGetContext().
    currentContextElement().getCmpCtx_dateEnd();
    IPersonElement person =
    wdThis.wdGetContext().createPersonElement();
    <u><b>Above line is giving me Error that person can not be resolved</b></u>
    person.setFIRSTNAME(firstname);
    person.setLASTNAME(lastname);
    person.setDATE_BEGIN(date_begin);
    person.setDATE_END(date_end);
    wdThis.wdGetContext().nodePerson().addElement(person);
    //@@end
    </i>
    Please Help Me Sir.

  • How to access AppModule methods into View Controller project

    Hi,
    I've created AppModule in model project and now I want to use that AppModule methods into viewcontroller project without creating the webservice proxy.
    Thanks in advance,
    Rohit

    Hi,
    I am using Jdeveloper 11.1.1.4.0.
    To use the appModules methods, I am creating the service interface and then I am creating the webservice proxy into another view controller project and access the appModule methods.
    Now, I don't want to create the webservice proxy. I want to directly access the appModule methods.
    Thanks,
    Rohit.

  • How to access the EmbeddedFontRegistry in actionscript only code?

    Hi,
    My name is Zach and I am trying to push outside of the flex framework, but keep the advantages of RSL's.  I created my own Component/Data Library where all UI objects inherits directly from Sprite.  However, when I moved this out of the Flex environment into, what I am calling, 'the pure actionscript' envinronment my RSL's no longer loaded-- when I compiled, so for the past 6 months I have just been compiling them internally.  I finally had time to do some hunting and discovered the FlexModuleBootstrap, SimpleApplication and all of the fun undocumented things that go along with that and I have the RSL's loading, but now I am running into an error with my fonts:
    Error: No class registered for interface 'mx.core::IEmbeddedFontRegistry'.
                    at mx.core::Singleton$/getInstance()
                    at mx.core::EmbeddedFontRegistry$/registerFonts()
                    at _eThorityFW_mx_core_FlexModuleFactory/RSLRootCompleteListener()
    So I have been looking into this and the classes EmbeddedFontRegistry along with IEmbeddedFontRegistry are undocumented and Excluded from the framwork.swc and I'm stuck figuring out how to register my fonts outside of the Flex environment.  I have a single class called EmbeddedFonts which has the 6 embedded fonts in it and nothing else.  My guess is that I need a [frame(factoryclass=???)] metatag for this so it effectively adds the Fonts to the EmbeddedFontRegistry, but I am swimming in too much information right now.  If anyone out there has done this or has an idea of what I am to do I would be very grateful.
    Thanks.
    Zach

    Thanks guys, these responses helped me research further, but I'm still stuck.
    I am using Font.RegisterFont, and the error still comes up.  If I continue through the error then the fonts register and everything looks good, but I still get this stupid error.
    From the reading I've done on this, the common solution says to add/register an EmbeddedFontRegistry/IEmbeddedFontRegistry to the mx.core.Singleton class. However, I don't have access to any of these classes since they all have the [ExcludeClass] meta-tag in them. I'm sure that this is because I'm using an embedded font in the SimpleApplication(mx.core.FlexApplicationBootstrap ) not the regular Applciation(mx.managers.SystemManager) factory class. Anyway, I would just like a way of ensuring there is an EmbeddedFontRegistry class registered in Singleton before I try to register a font, any help is welcome.

  • How to access partner subversion repository to download code

    SDK Version: 3.7.1
    How can I connect SDK to 'partner' SVN repositor to download code etc,
    I tried and get the following error:
    237
    +----------------------------------------------------------------------+
    |Filename: svn_error.png |
    |Download: https://forums.netiq.com/attachment....tachmentid=237 |
    +----------------------------------------------------------------------+
    sharfuddin
    sharfuddin's Profile: https://forums.netiq.com/member.php?userid=1016
    View this thread: https://forums.netiq.com/showthread.php?t=52439

    Hi,
    you need to add a subversion repository. Not a CVS one.
    Norbert
    >>> On 17.12.2014 at 13:08, sharfuddin<[email protected]>
    wrote:
    > SDK Version: 3.7.1
    >
    > How can I connect SDK to 'partner' SVN repositor to download code etc,
    > I tried and get the following error:
    > 237
    >
    >
    >
    +‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑ ‑‑‑‑‑‑‑‑

  • How to Access Total Number Of Pages inside code

    Hi All,
    I would like to get the total number of pages in the report,inside the trigger.
    How can i access this value inside code.
    Pls Help me
    Thanks and Regards
    Binu

    I think this is not possible inside the code, because this value is deteremined after the code is executed and during the formatting of the report.

  • How to Access the view from another Component

    Hi,
    Seek your advice on this following requirement.
    1. Would like to add the view OVWindow of Component BTCATEGORIES in an assignment block of 
        CRMCMP_CMG similar to the assignment block exists in the BT116H_SRVO component.
    2. Please provide the step by step procedure to implement this requirement.
    Regards,
    Arif

    Hi,
       I am having view1 and view2.
      in view1 i am using roadmap. S1 is one of the step of road map.
      in view1 i used this code to get the reference of this view in componentcontroller attribute
    Data: lo_api TYPE REF TO if_wd_view_controller.
    If first_time = 'X'.
    lo_api = wd_this->wd_get_api( ).
    wd_Comp_Controller->my_VIEW = lo_api.
    endif.
    in my view2 i want to access the roadmap step
    i dono how to access that.. i used this code.......
             wd_comp_controller->my_view->get_element( 'S1' ).
    is this correct.. If not what is the code to get that id..
    Can any one tell me clearly...

  • How to access the SAP MDM destinations using mdm java api in 7.1

    hi,
    I have SAP MDM 7.1 SP11 and SAP Portal 7.3 and developing the custom webdynpro application using the  JAVA MDM API. I want configure the SAP MDM destinations in SAP Portal .
    How to access the MDM destinations in java code using API? and how to create the connection with MDM using the MDM destinations.
    Please provide the code for access the SAP MDM destinations in java code using MDM java api and creating the connection to MDM.
    Thanks

    Jun,
    Thanks for the reply and api information.
    I have got this api information from the following sap documentation. But i am looking for the code by implementing this class and creating the mdm connection.
    Creating an MDM Connection Using Java Code - SAP NetWeaver Master Data Management (MDM) - SAP Library
    if any thing can you share it.
    Thanks

  • How to access system registry through java program

    Friends
    I have to access System registry of Windows 2000 by Java program. I don't know how to access the registry by using java code. Please help me. Else
    I want to create a setup file for my application. before setup my application i have to check whether the system has JVM or not. If its not then i have to install JVM first and then my application. so i need to access system registry. please give me a solution for this.
    Thanks in advance
    Ramesh

    I don't know how to access the registry
    by using java code. You can't, without using a native interface (JNI type) library.
    This is one, there are others, do a Google search:
    http://www.bayequities.com/tech/Products/jreg_key.shtml

  • How to use .properties files in Webdynpro Java code?

    Hi all,
      I want to use a logon.properties file when I initial a JCO connection pool in my webdynpro DC (JCO.addClientPool()),but  I found when I deployed this DC to the server, it always giv e me an FileNotFoundException. So I donot know how to deploy a .properties file to the server and how to access this file in my Java code?
    Thans and Best regards
    Deyang

    Hi,
    1) put .properties file to your packege under src\packages folder (src\packages\com\sdn\properties\jco.properties)
    2) load property:
         final InputStream is = getClass().getClassLoader().getResourceAsStream("com/sdn/properties/jco.properties");
         final Properties properties = new Properties();
         try
              properties.load(is);
         catch(Exception e)
              wdComponentAPI.getMessageManager().reportException(new WDNonFatalException(e), false);
    Regatds Maxim R.

  • How does oracle accesses v$ tables or views in mount state

    Hi All,
    I want to know how oracle accesses fixed tables/views while the database is in mount state.
    I did the following:
    1. Started the database in mount state.
    2. Query v$database ,v$datafile--Successful
    3. Queried dba_data_files.---ERROR
    SQL> select * from dba_data_files;
    select * from dba_data_files
    ERROR at line 1:
    ORA-01219: database not open: queries allowed on fixed tables/views only
    As per my understanding goes,all these tables are a part of Data Dictionary which is stored physically on system tablespace.
    Now since the database is mounted ,it cannot access any part of system tablespace's data.Am I right??
    So how does it queries v$ tables and other fixed database tables in mount state???
    Thanks in advance
    Saket Bansal

    the v$(dynamic) view comes from instance
    the dba(static) views comes from dictionary
    but there is only one view can be look while instance is in nomount mode
    and that is
    v$instance ,,,
    BUT ONLY THING I DON KNOW IS WHY WE CAN STILL DESCRIBE THE V$ VIEWS WHILE INSTANCE IS IN NOMOUNT MODE,,,
    ORACLE instance shut down.
    SQL> startup nomount;
    ORACLE instance started.
    Total System Global Area 285212672 bytes
    Fixed Size 1248576 bytes
    Variable Size 75498176 bytes
    Database Buffers 205520896 bytes
    Redo Buffers 2945024 bytes
    SQL> desc v$datafile;
    Name Null? Type
    FILE# NUMBER
    CREATION_CHANGE# NUMBER
    CREATION_TIME DATE
    TS# NUMBER
    RFILE# NUMBER
    STATUS VARCHAR2(7)
    ENABLED VARCHAR2(10)
    CHECKPOINT_CHANGE# NUMBER
    CHECKPOINT_TIME DATE
    UNRECOVERABLE_CHANGE# NUMBER
    UNRECOVERABLE_TIME DATE
    LAST_CHANGE# NUMBER
    LAST_TIME DATE
    OFFLINE_CHANGE# NUMBER
    ONLINE_CHANGE# NUMBER
    ONLINE_TIME DATE
    BYTES NUMBER
    BLOCKS NUMBER
    CREATE_BYTES NUMBER
    BLOCK_SIZE NUMBER
    NAME VARCHAR2(513)
    PLUGGED_IN NUMBER
    BLOCK1_OFFSET NUMBER
    AUX_NAME VARCHAR2(513)
    FIRST_NONLOGGED_SCN NUMBER
    FIRST_NONLOGGED_TIME DATE
    SQL> desc v$tablespace;
    Name Null? Type
    TS# NUMBER
    NAME VARCHAR2(30)
    INCLUDED_IN_DATABASE_BACKUP VARCHAR2(3)
    BIGFILE VARCHAR2(3)
    FLASHBACK_ON VARCHAR2(3)
    ENCRYPT_IN_BACKUP VARCHAR2(3)
    HOW DOES THIS COME FROM ????
    Edited by: jignesh kankrecha on Jul 6, 2009 8:12 AM

  • I used a partitioned HDD for time machine, using a partition already containing other data files. I am now no longer able to view that partition in Finder. Disk Utility shows it in grey and "not mounted". Any suggestions of how to access the files?

    I used a partitioned HDD for time machine, using a partition already containing other data files. I am now no longer able to view that partition in Finder. Disk Utility shows it in grey and "not mounted". Any suggestions of how to access the files? Does using time machine mean that that partition is no longer able to be used as it used to be?
    HDD is a Toshiba 1TB, partitioned into two 500GB partitions.
    OS X version 10.9.2

    Yes, sharing a TM disk is a bad idea, and disks are cheap enough so that you don't need to.
    Now
    Have you tried to repair the disk yet

  • How to Access Maintenance View from a program

    Hi Experts,
    I have created a maintenance view for a table. i want to insert data's into the table through the maintenance view. I don't know how to access the view, how to insert data into the Maintenance view. Please suggest me how to access the view from the program.
    with regards,
    James...
    Valuable answers will be rewarded...

    Hi,
    What is the need to search for a program.
    Use transaction SM30 or SE16 to create or maintain entries in the table.
    e.g. if the Maintenance view is created on table A, then Goto transaction SM30 or SE16 and give the table name as A and proceed. This will automatically take u to the maintenance view on tha table A.
    Regards,
    Himanshu

  • How to access tables/views of an external database provider..

    After much trouble I finally managed to setup a second Database Provider that doesn't display the "0 out of 0 connections are good" error by filling in the "Configuration Class" field with "intradoc.server.DbProviderConfig".
    But now the problem is actually accessing the tables/views in my newly configured external database provider...
    In the Configuration Manager applet when I try to add a new Table or View it only lists the tables contained in the schema of the SystemDatabase database provider (the original one), I've tried running Queries via components trying stuff like SELECT * FROM provider_name.table_name and other similar but obviously it doesn't work...
    So... with that said, I just want to know how I access tables or views in my "supposedly" well conected (15 out of 15 connections are good, no errors on the Test Query) Oracle external Database Provider - After searching I was unable to find any information regading any post-provider-setup actions in the Content Server documentation - Does anyone know how to do this?
    On a side note, if the database is SQLServer instead of Oracle, with the same configuration and apparently no errors on the database side (other clients access it well) the Query Test of the new database provider returns the following error:
    "The provider 'TestSqlSrv' is in error. Unable to create database connection for JDBC:ODBC:SqlSrv. Unable to create result set for query 'select * from dummy'. Invalid Fetch Size Unable to create result set for query 'select * from dummy'. Invalid Fetch Size java.sql.SQLException: Invalid Fetch Size".But I won't even go there yet.... for now I would settle with just knowing how to reference information in the Oracle external database provider...
    Message was edited by:
    user602700

    if you are able to, pick up Bex Huff's book the Definitive Guite to Stellent Content Server Development (amazon link: http://www.amazon.com/Definitive-Stellent-Content-Server-Development/dp/1590596846/ref=sr_1_1?ie=UTF8&s=books&qid=1196365101&sr=8-1)
    chapter 11 is all about this.

Maybe you are looking for

  • How can I add a contact to a group on my iPad Air or IPhone 6?

    I'm away from my computer for a while and was trying to add a contact to a group on my iPad/iPhone. I don't want to download another app to handle this simple task. All my mobile devices are up-to-date and have plenty of memory. I tried logging into

  • Adding a display language - Curve 8330

    The device Help says a display language can be added using the application loader tool of the Desktop Manager, and it refers to the Desktop Software Online Help. I have checked both the Desktop Manager Help & the Desktop Software Online Help but cann

  • Zero value key to a referenced table

    I have inherited an application and I have upgraded to Oracle Toplink 11g.(not EclipseLink). I'm getting a problem with updating rows which contain references to other tables which have a zero value for a remote primary key of type int. I have now cr

  • Webi Refresh problem

    Hi, I have a problem opening a WebI document using the Webi SDK, ReportEngine re = (ReportEngine) ss.getService("", "WebiReportEngine"); OpenDocumentParameters parameters = new OpenDocumentParameters(); parameters.getProperties().setProperty("nooutpu

  • No external disk icon on desktop

    I can not see my WD My Book when it is connected directly to my MBP 15 10.5.1. I get no icon and it does not appear in finder. I do see it in disk utility. This just stopped working all of a sudden. How do I get the disk back??