Create at run-time enumeration of a Dictionary simple type - String

How can I change dynamically (at run-time) the enumeration of a Dictionary simple type (String) ?

This reference explains how to set values for a simple type.
http://help.sap.com/saphelp_nw04/helpdata/en/86/16e13d82fcfb34e10000000a114084/frameset.htm
Cindy

Similar Messages

  • Run time error 4706 column has wrong type to be key

    Hi,
    I am getting error after installing Bex BI 7 version , I have installed .net fromework 2.0 and BI7 version when i m trying to open the bex analyser i am getting the following visual basic
    error .
    Run time error 4706
    column has wrong type to be key

    please help any help in this regard will be appreceated

  • Converting Resource(Dictionary Simple Type) to Binary Format.

    Hello Experts,
    In my Web Dynpro Application,
    I have a View Context attribute called "FileResource" of type Resource(Dictionary Simple Type) which is bound to the FileUpload UIElement of View.
    When im running the application I am able to Upload the file in my view context attribute successfully,
    Now I need to pass it to the RFC as an Import Parameter which is declared as type "RAW-Uninterpreted Sequence of bytes",
    kindly guide me how to convert the value of the view context attribute "FileResource" of type Resource(Dictionary Simple Type) into BINARY format, so that i can pass it to the RFC as an import parameter.
    Thank you please reply.........

    I used this code from a tutorial.  And it work.  Place Some of this code on any button.
         IPrivateFileUploadVIEW.IContextElement element = wdContext.currentContextElement();
         //if a file in the FileUpload field exists
         if (element.getResource() != null)
              IWDResource resource = element.getResource();
              try{
                   InputStream archivo = resource.read(false);
                   byte[] b = new byte[5000];
                   archivo.read(b);
                   //ResourceBundle.getBundle();
                   wdContext.currentZ_Lmmfu_Cambio_Estado_InputElement().setI_Archivo(b);
                   wdThis.wdGetAdminCMPController().executeZ_Lmmfu_Cambio_Estado_Input();
                   //Imprimir nombre del archivo     
                   String name=resource.getResourceName();
                   wdComponentAPI.getMessageManager().reportException(name,false);
                        File f = new File(resource.toString());
         catch(IOException error)
              wdComponentAPI.getMessageManager().reportException(error.toString(),false);
          //report success message
         // wdComponentAPI.getMessageManager().reportMessage(IMessageAdministracionCMP aa ,new Object[] { resource.getResourceName()}, false);
          else
         // if no file in the FileUpload field exists
         //     report error message
         wdComponentAPI.getMessageManager().reportException("Search for a file",false);
         //     clear the 'FileResource' context value attribute
         element.setResource(null);
    Is there a better way to do this.
    I need to get the creation or modification date from the original file.  How can I do this?

  • How to get the values of drop downs, which are gonna create at run time.

    As per my design requirement, I have to create drop downs in an ADF display table.
    The no# of rows of the table are gonna decide the no# of the drop downs. User can select the values from drop downs. My issue is, how can I capture the selected values of those drop downs as those are gonna created run time.

    Hi
    ohh ,ok ,then as u said that u r storing twenty values ,thats y i aksed earlier ,are these form values part of tbale ,or as u said 20 values are there ,for these u r creating 20 form values ???.
    My suggestion would be ,u do four calculation and put all your results in a hashmap ,and keep this hash map in to sesion ,using the following method
    pageContext.putTransactionTransientValue("HashMapName",myHashMap);
    and inside the PFR method when u want to display these values ,u can loop through your hashmap and can display these values.
    like this
    HasMap hm=pageContext.getTransactionTransientValue("HashMapName");
    thanx
    Pratap

  • A Table that was created at Run time. A Row Properly Deleted from Table Is Still Present on Form with BindingNavigator

    Hello
    I have a dataset that was created at design time
    but - after I run the app, it randomly creates a table based on The Users name
    since I do not know the users name before had, the table is not part of my existing dataset
    (I actually used an insert into sql nonquery to just make this table a copy of the masterUserTable)
    Now - I have a binding navigator on my form, that is originally bound to masterUserTable, but my goal is to make it bound to the users table (let's say GabrielUserTable)
    I thought I did so with this code: 
            'TODO: This line of code loads data into the 'MyLearningDBDataSet.masterUserTable' table. You can move, or remove it, as needed.
            Me.MyMainDBTableAdapter.Fill(Me.MyLearningDBDataSet.masterUserTable)
            Dim ThisNewVariable As String = MyUserNameIs & "UserTable"
            Dim ThisNewTableName As New DataTable
            Me.MyLearningDBDataSet.masterUserTable.TableName = ThisNewVariable
            Me.MyMainDBTableAdapter.Fill(Me.MyLearningDBDataSet.masterUserTable)
    that appeared to do the trick  (but if it is incorrect please advice on the proper way to add a table made at runtime to a users existing datset)
    Else where in my code  I successfully execute the following NonQuery :
            SqlString= "DELETE FROM " & MyUserNameIs & "UserTable" & vbCrLf &
                "WHERE vState='" & txtStateInfo.Text & "';"
    I check in Visual Studio 2013 that the row was deleted from the "GabrielUserTable"  (Gabriel is the current value of MyUserNameIs) by using the Server Explorer and right clicking
    on the table and choosing show talbe data
    But the MyMainDBBindingNavigator is still showing the item I deleted.
    So after searching for answers - I created a new button for testing and added the following code to test if it would work
            Me.Validate()
            Me.MyMainDBBindingSource.EndEdit()
            Me.TableAdapterManager.UpdateAll(Me.MyLearningDBDataSet)
    but the data is still shwoing after deleting it with my NonQuery 
    Please Help!

    Hi genterprise,
    >> Now - I have a binding navigator on my form, that is originally bound to masterUserTable, but my goal is to make it bound to the users table (let's say GabrielUserTable)
    In my option, if you want to rebind the users table to the navigator, you need to set the BindingNavigator.BindingSource. Based on your description, it seems that you did not reset the datasoure of the MyMainDBBindingNavigator. It was the original datasource
    of the masterUserTable. For more details about BindingNavigator.BindingSource Property. You could refer the link below:
    # BindingNavigator.BindingSource Property
    https://msdn.microsoft.com/en-us/library/system.windows.forms.bindingnavigator.bindingsource%28v=vs.110%29.aspx?f=255&MSPPError=-2147217396
    Best Regards,
    Edward
    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.

  • Creating customized run-time menus

    I am trying to create a customized run-time menu when I right click on a tree control. I can disable the existing run-time/pop-up menu but would like the ability to use a different customized menu.
    I can simulate a run-time menu by using creating a VI that functions in a manner similar to the menu but would prefer the ability to create and process and customized run-time/pop-up/floating menu.
    The menu is always of a fixed size with all items enabled. I do not need the ability to modify this menu within the application.

    There is an LTR article by David Ritter called "Contextual Pop-Up Menu Programming" that shows a method similar to yours. It is well worth a look.
    -Jim

  • Unable to Create Query - Run Time Error

    Hi All,
    I'm try to create a query from a Cube .... the moment I drag 0CALMONTH and restrict it to Varaible Last Year This Month. I receive, the following error "Run Time Error 2147417848 (80010108) ....Automation Error. The Object Invoked has disconnected from its client.
    When I check with Event Viewer : The following message appear " ID: 1, Application Name: Microsoft Office Excel, Application Version: 12.0.6324.5001, Microsoft Office Version: 12.0.6215.1000. This session lasted 1784 seconds with 780 seconds of active time.  This session ended with a crash."
    I'm running Ms Vista Enterprise OS with Office 2007.
    Please advise
    TQ
    Nathan

    Hi,
         Actually this is a frontend error.
    Check the SAP Note Number: 1039191
    Download the DLL.
    Problem Description: There is a BI bug when we use BW3.5 frontend tool with BI7 datawarehouse workbench.
    Symptoms: When you try to restrict an object in Query designer, it will greayed out by giving runtime error.
    Solution: Take a backup of wdbspres.dll file which is present under C:\Program Files\SAP\FrontEnd\SAPgui. Copy the original
    file with this new file available in project filder. Problem will be resolved.
    Regards
    Karthik

  • Creating a running timer...

    Hi,
    I'm creating a movie for my school where we get to make fun of the seniors, it's not real professional but i'm trying to make it look pretty good too.
    My question is, is there a way i can have a running timer at the bottom of one of my clips? It doesn't have to be long, i just want it to tick for a few seconds and then fade out. Can anyone tell me how to do that?
    Thanks!

    Upgrade to iMovie 06.
    iMovie 06 is a free download to iLife 08 owners. (THEY WANT YOU TO HAVE IT!)
    http://www.apple.com/support/downloads/imovieHD6.html
    Then get 'Volume Six' of the iMovie 06 Special Effects Toolkit.
    Stopwatch Overlay timecode or time. Can count up or down. Lots of formatting options.
    http://www.geethree.com/slick/V_06.html
    The differences between iMovie 06 and iMovie 08? I have found the below link to be helpful.
    http://www.geethree.com/slick/imovie8.html
    iMovie 06 and iDVD 08 is a terrific combination.

  • How  to trace() a variable nested inside another clip that is created at run time by the user ???

    Hi again Now i have another problem
    i explain :  on my stage i have 24 instance MC Page created at runtime (when cliked the button execute 24 instance MC Page from the library). Each of those MC Page create an xml  with infos (not important), this variable_XML created is nested inside each MC Page.. From my stage i want to call each XML from each MC Page  for make 1 unic  big xml, then send it to the server.
    So from the main stage i created a button that call each xml of each MC Page (there is a definit number of Page only 24, no more, no less). So
    when the 24 instances of the MC Page are created I push there instance name inside an Array "Page_Array". Now in my function exportxml
    i use get ChildByName(Page_array[number]) for find them then i can apply my method to the according MCPage.. Until here no problem, trace(dispObject.name) work. but when i try to get my variable inside the MC Page : trace(dispObject.my_variableXML), it doesnt work...Why ??
    here is my function (only 1 page for this example ):
    function exportxml(evt:MouseEvent):void {
        dispObject=getChildByName(Page_Array[0]);
        trace(dispObject.name); //trace  Page1
         trace(dispObject.my_variableXML);// here it dont trace the variableXML
    normally if i trace(Page1.my_variableXML); , it should trace "my_varableXML"  no ??

    when i export my movies Im so worried  to see if it work that  i clicked the button that trigger the function exportxml before the actual my_variableXML is created , so is normal that the code above didnt work... so all is normal and it work... sorry i will think 10 time before posting next time. promess .

  • File name created on run time

    did anyone face this issue that file name is created with digit?
    insert into "D:\Inbox/26"
         STUDENT_ID,
    STUDENT_NAME
    this is the code of step of inserting rows.I dont know why wrong file name is generating.I am using variable for file name.I checked the value of variable and it is correct.
    ANY IDEA ?

    Hi,
    Some ideas :
    1. Is your variable of alphanumeric datatype, with a keep all history property? If not, try with this config.
    2. Did you try with single quotes in the resource name of your datastore ?
    3. Do you run it inside a package ? (Refresh variable then execute your interface)

  • Data type determined at run time, how to provide the input type in advance

    Hi all,
    Here I have a requirement:
    on my UI, there is an inputfield which receives user's input. But the data type can't be known at design time.
    But I need to bind a context attribute to the inputfield first at design time, which data type should I use( the inputfield can recevie
    data of any type ) ?
    and how to convert the this data type into different data type( can be any type )?

    Hello Aaron,
    There can be a workaround for your requirement.
    you can assign a char data type to that field since Char can accept all characters, numbers, special symbols.
    But, you need to do validations later on the see if it is a number or all alphabets and accordingly you can assign that field to any data type  by doing little bit of manipulations.
    Hope this helps.
    Regards,
    Anand

  • Does Labview run-time engine 6.0 application created by Window NT can install & run on other OS?

    I created a Run-Time engine 6.0 application from my Vi and it is working fine! I wonder that this application can install and run on other OS system? What I have heard is "Yes" ... but I am not sure!
    Any one know for sure? Thanks.

    > I am sorry that I did not clarify my question enough, I meant other
    > kind of OS 's that are not from Microsoft Windows!
    >
    Across multiple OSes, you will most likely be able to load the VIs and
    execute them in the LV environment or rebuild the executable with no
    problem. But, you will not be able to run executables built for Windows
    on Mac, Solaris, or Linux. The reason is that executables have to meet
    binary standards, and those standards differ between the OSes. It
    really doesn't matter what language/tool the executable is built with,
    if it is the OS that is loading it, it will be specific to the OS.
    It would be great of someone like ISO or ANSI declared an executable
    standard that all OSes could load and execute, but since t
    he goal of
    executables is maximum flexibility and maximum performance, it is
    unlikely that this new standard would win out over the existing ones.
    If this comes about, the LV team will definitely be looking to take
    advantage of it.
    Greg McKaskle

  • Adding complex computed column at run-time fails in PB 12.6

    I support a large 'vintage' application that was originally written in the late 90's, and has been migrated from version to version over the years.  Currently I'm working to get it working in PB 12.6 Classic, build 3506, migrating it from PB 11.5
    The first issue I've come across is that PFC treeviews are not working properly.  After some debugging, I determined that the cause of the failure is the PFC code's creation of 'key' column in the datawindows being used to populate each level.
    In the pfc_u_tv.of_createkey function, it looks at the linkages between the levels of a treeviews data, and then crafts an expression, and then uses that to create a computed column, which is subsequently used to uniquely identify the data.
    The expression is a series of string concatenations, such as this:
    expression='String(ctg_cd) + "#$%" + String(app_cd) + "#$%" + String(app_cd) + "#$%" + String(win_id) + "#$%" + String(ctg_cd) + "#$%"'
    This expression is then used in a modify statement to create the new compute key column:
    ls_rc = ads_obj.Modify("create compute(band=detail x='0' y='0' " + &
      "height='0' width='0' name=pfc_tvi_key " + ls_Exp + ")")
    In earlier versions, this works, and when you do a getitemstring afterward you get a long concatenated value that PFC uses to uniquely identify treeview items.
    Such as 'a/r#$%plcy#$%plcy#$%w_m_plcy_fncl_tran#$%a/r#$%'
    However, in PB 12.6, only the first portion of the expression is processed.  There is no error returned from the Modify function, and the column is created, but the expression is only evaluating one part of the expression.  In this partiular case, it results in
    'plcy'
    I just noticed that this isn't the *first* item in the set of concatenated columns and string literals, which is interesting.  In any case, when the computed key values are not correct, the whole method PFC is using to populate and run the treeview falls apart, and you get all children under each parent, and selections on the treeview object do not work properly because the key column values are not unique.
    I can copy the expression value from a debugging session, and use that to create a computed column at design time, pasting the expression in, and naming it the same as the created column (pfv_tvi_key), and this then allows the treeview to work properly.  However, this is a very cumbersome and problematic workaround.  The application has a lot of treeviews, with a very large number of datawindows operating as all the different types of items on different levels of different trees.  I don't think it's a practical workaround, and future maintenance would be very difficult.
    bu the workaround still demonstrates it is not an issue with the syntax of the compute expression, just an issue with the way it is handled by PowerBuilder when a column is created at run time,vs. at design time.
    Has anyone else encountered this issue?  I would think there are a fair number of older apps still around that are using PFC treeviews.
    My next step will be to install PB 12.6 build 4011 and cross my fingers.  Other than that, perhaps try 12.5?

    Updating the PFC layers has started to lead down a rabbit hole of hundreds and hundreds of errors.
    Granted, many of these are probably rooted in a few ancestor issues.
    But I'm not sure this will lead to a solution.
    The problem lies in using a modify statement to create a computed column at run time containing an expression with multiple concatenated values.
    If I look at the pfc_u_tv.of_createkey function from the newer PFC version, I see the same code there:
    ls_rc = ads_obj.Modify("create compute(band=detail x='0' y='0' " + &
      "height='0' width='0' name=pfc_tvi_key " + ls_Exp + ")")
    And the same code above it which creates the expression used in the modify.
    So after doing all the patching for the new PFC version, I somehow suspect I'll still be facing the same datastore.modify problem.
    Not to say that isn't a good thing to do, just not sure it addresses the root of the problem.

  • Using run-time prompts in BRs for Planning 11.1.1

    Hi to all!
    I want to create a run-time prompt for periods for which the calculation is to be done in my business rule. So via Tools>Variables I created a global variable of MemberRange type, then I inserted this variable in the Fix statement of my business rule in Calculation Manager but the validation of the rule fails stating that the BR has a run-time prompt which is not allowed. I have not found anything in the documentation on how to allow runtime prompts in a BR, so I would be very grateful for hints on how to correct it.

    Hi,
    For global variables:
    Run EAS console
    Right click on your Essbase server (e.g. localhost)
    Edit - Variables
    Set names and values of global variables for all apps and all dbs (if you need so)
    These names of global variables you can use in your BRs and CalcMngr scripts.
    For local BR variables:
    Run EAS
    Create new BR
    Go to "Variables" tab
    Add local variables as "Member" type / "Run-time prompt" usage type
    These names of global variables you can use in your BRs scripts.
    For global BR variables:
    Run EAS
    Open BR - Global variables
    Create new global variable as "Member" type / "Run-time prompt" usage type
    These names of global variables you can use in your BRs scripts.
    Edited by: Antony NoFog on 08.02.2010 18:05

  • How to bind chart type at run time

    Hi,
    I want to select chart type at run time using a drop down , i know the class name (CL_WD_BUSINESS_GRAPHICS) which
    has to be bind. but iam unable to bind the class.
    can any one help me.

    Hi,
    **... check view exists
    check me->if_salv_wd_view~r_view is bound.
    *... get wd root uie for adding graphic control uie
      data:
        lr_wd_root type ref to cl_wd_transparent_container.
      lr_wd_root ?= me->if_salv_wd_view~r_view->get_element( if_salv_wd_comp_table_ui=>c_uie_root ).
      check lr_wd_root is bound.
    *... use a group container
      data:
        lr_wd_group type ref to cl_wd_group.
      lr_wd_group ?= me->if_salv_wd_view~r_view->get_element( if_salv_wd_comp_table_ui=>c_uie_graphic_container ).
    *... if wd uie group container does not exist create group container
      if lr_wd_group is not bound.
        lr_wd_group = me->if_salv_wd_comp_table_ui~create_graphic_container( ).
      endif.
    *... get wd uie graphic
      value ?= me->if_salv_wd_view~r_view->get_element( if_salv_wd_comp_table_ui=>c_uie_graphic ).
    *... if wd uie graphic does not exist create graphic
      if value is not bound.
        data:
          l_source_category type string,
          l_source_series   type string,
          l_source_point    type string.
        concatenate if_salv_wd_comp_table_data=>c_name_node_graphic '.'
                    if_salv_wd_comp_table_data=>c_name_node_graphic_category
                    into l_source_category.
        concatenate if_salv_wd_comp_table_data=>c_name_node_graphic '.'
                    if_salv_wd_comp_table_data=>c_name_node_graphic_series
                    into l_source_series.
        concatenate if_salv_wd_comp_table_data=>c_name_node_graphic '.'
                    if_salv_wd_comp_table_data=>c_name_node_graphic_series '.'
                    if_salv_wd_comp_table_data=>c_name_node_graphic_point
                   into l_source_point.
        value = cl_wd_business_graphics=>new_business_graphics(
                  view                 = me->if_salv_wd_view~r_view
                  id                   = if_salv_wd_comp_table_ui=>c_uie_graphic
                  bind_category_source = l_source_category
                  bind_series_source   = l_source_series ).
        data:
          l_bind_value type string.
        data:
          lr_wd_category type ref to cl_wd_category.
        concatenate l_source_category '.' 'LABEL' into l_bind_value.
        lr_wd_category = cl_wd_category=>new_category(
                           view             = me->if_salv_wd_view~r_view
                           bind_description = l_bind_value
                           bind_tooltip     = l_bind_value ).
        value->set_category( lr_wd_category ).
        data:
          lr_wd_series type ref to cl_wd_series.
        concatenate l_source_series '.' 'LABEL' into l_bind_value.
        lr_wd_series = cl_wd_series=>new_series(
                         view              = me->if_salv_wd_view~r_view
                         bind_point_source = l_source_point
                         bind_label        = l_bind_value
                         bind_tooltip      = l_bind_value ).
        value->add_series( lr_wd_series ).
        data:
          lr_wd_point type ref to cl_wd_point.
        concatenate l_source_point '.' 'LABEL' into l_bind_value.
        lr_wd_point = cl_wd_point=>new_point(
                        view              = me->if_salv_wd_view~r_view
                        bind_value_source = l_source_point
                        bind_label        = l_bind_value
                        bind_tooltip      = l_bind_value ).
        lr_wd_series->set_point( lr_wd_point ).
        data:
          lr_wd_value type ref to cl_wd_numeric_value.
        concatenate l_source_point '.' 'VALUE' into l_bind_value.
        lr_wd_value = cl_wd_numeric_value=>new_numeric_value(
                        view       = me->if_salv_wd_view~r_view
                        bind_value = l_bind_value ).
        lr_wd_point->add_value( lr_wd_value ).
        me->if_salv_wd_comp_table_ui~add_child_to_container(
          r_container = lr_wd_group
          r_child     = value ).
      endif.

Maybe you are looking for

  • Swapping Computers and then Restoring

    I'm about to swap computers with a buddy of mine. I have this black macbook and he has the new 15 inch macbook pro. I have been backing up with Time Machine since it came out. He is going to restore his computer to the way it was when it came in the

  • Is there an app for "while you were out" messaging?

    Is there an app for "while you were out" messages?

  • Function Module FI_CURRENCIES_CONVERT

    We are using function module FI_CURRENCIES_CONVERT in our report. When the conversion rate for a Currency is not maintained it throws an error and program aborts. Is there any way to bring the user back to the selection screen of the report.

  • MSS Error messages language changed.

    Hi all, i have MSS on  EP version 6.0 sp15. we have applied sp19 on portal now we are facing issue with the <b>error/warning</b> info messages in MSS applications are displayed in German language. where iview master language is shown as english only.

  • Publish portal page on internet ??

    Hi all ! I have a problem that I need some guide. I assume that I have just finished my portal page, so now I want publish my page on Internet. Which tool that Oracle AS portal support to me solve this problem ??? Thanks alot.