Setting TextViewSemanticColor on runtime

I dont have NV04s , so I know that the only way to change the color in a table is trought the property SemanticColor.
I want to set this property depending the value that is in the table.
I created a Value Attribute in the context with type:
com.sap.tc.webdynpro.clientserver.uielib.standard.api.WDTextViewSemanticColor
I wanna bind the semanticColor property to this value Atrribute and change his value in the wdDoModifyView depening a certain conditions. But when I hit the "..." button I found that the value attribute that I created is not compatible.
what is wrong ?
BTW, some1 could tell me some links to also change the cells design in xml format (I export this table to Excel 2003 using the method of XML-Binary cache)

You don't need to "run through the table" etc.
Example: Say you have a context node "Stock" with an attribute "Available" of type "integer", and you want to mark  a stock item with a red color if there are less than 3 available.
Define a new context attribute "Color" of type TextViewSemanticColor (as I wrote before) under the node "Stock", set readOnly=true, calculated=true.
Then there will appear a new method
WDTextViewSemanticColor getColor(IPrivate<View>.IStockElement element)
in the view controller.
Write the following code inside the //@@begin ... //@@end block (aka. user coding area):
return element.getAvailable() < 3
  ? WDTextViewSemanticColor.CRITICAL
  : WDTextViewSemanticColor.STANDARD;
If you bind the cell editor's "semanticColor" property to attribute "Color", exactly those cells will be red, where the available stock is less than 3.
Armin
Message was edited by: Armin Reichert

Similar Messages

  • CRM 5.2,  how to define an assignment set in the runtime depository?

    We are using CRM 5.2. I have created a new component and view and the view is exposed as an interface view. Now i have to include this in the overview page of BP_HEAD component. I have enhanced BP_HEAD component and enhanced the view required as well( View Name BPHeadOverview). I have added my new component as the used components in BP_HEAD.
    But when i open the enhanced view, i don't see any available assignment blocks. Standard overview page of BP_HEAD had some available assignment blocks but the enhanced one doesn't. Also following message is shown  "Define an assignment set in the runtime depository". How can i add my new component and interface view to the available assignment blocks of the overview page of BP_HEAD? Thanks for your help.
    Regards
    Hari

    Hi Sudipta,
    Thanks for your help. I am making good progress.
    I believe i am quite close to completion now. Need your help with following questions though -
    1) I have a context node BUILACTIVITY. Now i need to only display partial list from this context node? Is there a way i can do this directly with the context node or i have to create a new node and manipulate? If so any tips there?
    2) When i create new view it doesn't have graphical representation option any more? Is it that way only? If so can i just create table view and use it?
    3) When i create a form view and try to insert a table using <crmic:tableView> tag, i am getting an error messge saying "//BUILACTIVITY/Table" is not a table? What could be the issue?
    Thanks a lot for your help again.
    Regards
    Hari

  • Error in View configuration "Define an assignment set in the runtime rep.."

    I have enhanced a standard component u2018BP_HEADu2019 and have enhanced the view u2018BP_HEAD_OVERVIEWu2019 in it to work on the configuration. But when I go to the configuration tab it says, "Define an assignment set in the runtime repository" and I do not see any blocks on the left side of the configuration.
    Am I missing anything in the runtime repository?

    HI,
    You cannot modify the SAP default views. You have to define a role key at:
    IMG -> CRM -> UI Framework -> Define Role Configuration Key.
    Once you have defined the role configuration key you need to assign your role configuration key to your business role at:
    IMG -> CRM -> Business Roles -> Define Business Roles
    Select your business role and click on "Details" icon and you would need to assign your role key there.
    In the Web UI configuration you need to first copy the configuration and in the next step you would do the necessary modification. During copying of the configuration you would need to mention your Role Key.
    Regards,
    Deepak

  • Message error "Define an assignment set in the runtime repository"

    Hello Experts,
    I'm creating a new component and when I'll assign the view created to be displayed in the screen the follow message appears "Define an assignment set in the runtime repository".
    Best regards,
    Caíque Escaler

    Hi,
    I am sure that when you Click on your view in component workbench, this message must be flashing up.
    Correct me if i am wrong.
    Now first thing is its not an error but an info message.
    There is nothing wrong in your developments. It just the fact that just creating a view does not mean we can use it. To use it, you must assign it to either a Window or a View Set or an Overview page in Runtime repository and thats why system tell you that you must do the view assignment.
    Go to the runtime repositoy and assign the view. Now whether it to be assigned to a viewset, overviewpage or window, depends upon your requirement. If your view is Assignement Block, you will attach it to an overviewpage . If its a separate edit/display view then you may attach it in existing viewset or Main Window.
    You can also create an empty window and attach your view to it..Ultimately view assignment completely depends upon what you want the view to be used as.
    Hope it solves your problem.
    Regards,
    Suchita

  • How to set database information runtime with delphi 2007 vcl11

    hi
    i'm trying to set database information runtime. I'm using mssql express 2005 and doing the following to set database information at runtime.
    for x  := 1 to crpe1.Tables.Count do
    begin
      crpe1.LogOnInfo.Items[x].ServerName := server.text;
      crpe1.logoninfo.items[x].DatabaseName := database.text;
      crpe1.logoninfo.items[x].UserID:=username.text;
      crpe1.logoninfo.items[x].Password := pass.text;
    end;
    is above code correct to set the database information?
    Thanks in advance,
    Parv

    hi all,
    i resolved it somehow. thanks.
    Parv

  • Problem setting up separate runtime environment on OWB 11g

    We're trying to set up an environment similar to this: [Split Repositories Implementation|http://download.oracle.com/docs/cd/B28359_01/owb.111/b31280/reqs01.htm#BGBIHAHE]
    The server OS is Windows Server 2003 x64 ed, database version is 11.1.0.7
    The database/warehouse server was installed with a single database where the default design repository is installed. There is a "control center service" running on the default instance.
    We're running OWB clients on separate XP workstations and are able to access the minimal default design repository.
    We've set up another database on the same server, this one is to be used for the runtime environment, as described in the references Oracle diagram referenced above.
    However we're not able to find much useful documentation on how to set up the second database with the runtime environment and control center service.
    Whenever we try to dig deeper into the Oracle documentation, we always end up with hints on how to set up a "remote runtime" on a server without database. This is not what we want to achieve.
    A simple step-by-step guide on how to set up a runtime control center repository with audit tables & packages in a database separate from the design repository database is very difficult to find.
    Is there anyone who've succeded in doing this that could give us any information on how to implement it?
    Regards,
    -Haakon-

    Thanks again Oleg.
    I've now managed to configure up a separate runtime target environment in addition to our design environment.
    For others who might struggle with this; here's what I did:
    - log on to the Windows server console
    - open a command window
    - set ORACLE_SID to the newly created runtime target database
    - set ORACLE_HOME
    to same home as previous OWB default home installation (initial design database)
    - run >sqlplus "/as sysdba"
    - run %OWB_HOME%/owb/UnifiedRepos/clean_owbsys.sql
    to remove all previous OWBSYS setup
    - edit %OWB_HOME%/owb/UnifiedRepos/cat_owb.sql
    and comment out the 'LOCK USER OWBSYS' statement at the end, then run the script
    - run %OWB_HOME%/owb/UnifiedRepos/reset_owbcc_home.sql : this will prompt for "the full path of the Oracle home for the OWB Control Center install:"
    . Enter your '<drive>:\Oracle\product\11.1.0\db_1\owb'
    - after running reset_owbcc_home.sql one needs to set a known password on the OWBSYS user:
    ALTER USER owbsys IDENTIFIED BY password
    - finally run the Repository Assistant locally on your server and set up a new repository workspace in the new database. This time (after running the above sql-scripts, the Assistant did not crash halfway through).
    We're now able to create a new Control Center from the OWB client installation and deploy tables & mappings and execute mappings on the runtime target system.

  • FTP Adapter setting filename at runtime not working

    Hi,
    I am facing an issue SOA 11.1.1.5 with FTP Adapter setting the filename at runtime. I have a process that reads a file from local server and puts it over to a remote FTP Server.
    I want to use the same filename that is picked up locally and placed on the ftp location. Below is the snippet of FTP Invoke and the filename is read from a variable which is set before the invoke
    <invoke name="Invoke_PutFile"
    inputVariable="Invoke_PutFile_PutFile_InputVariable"
    partnerLink="PutFile" portType="ns2:PutFile_ptt"
    operation="PutFile" bpelx:invokeAsDetail="no">
    <bpelx:inputProperty name="jca.file.TargetFileName" variable="targetFileName"/>
    </invoke>
    Here is the FTP jca file snippet
    <endpoint-interaction portType="PutFile_ptt" operation="PutFile">
    <interaction-spec className="oracle.tip.adapter.ftp.outbound.FTPInteractionSpec">
    <property name="LogicalDirectory" value="FtpDir"/>
    <property name="FileType" value="ascii"/>
    <property name="Append" value="false"/>
    <property name="TargetFileName" value="setAtRunTime"/>
    <property name="NumberMessages" value="1"/>
    </interaction-spec>
    </endpoint-interaction>
    But when I test I am getting an error, it's complaining Cannot set JCA WSDL Property. Error while setting JCA WSDL Property. Property setTargetFileName is not defined for oracle.tip.adapter.ftp.outbound.FTPInteractionSpec Please verify the spelling of the property. ".
      Fault Details : com.oracle.bpel.client.BPELFault: faultName: {{http://schemas.oracle.com/bpel/extension}bindingFault} messageType: {{http://schemas.oracle.com/bpel/extension}RuntimeFaultMessage} parts: {{ summary=Exception occured when binding was invoked.
    Exception occured during invocation of JCA binding: "JCA Binding execute of Reference operation 'PutFile' failed due to: Exception occured when binding was invoked. Exception occured during invocation of JCA binding: "Could not instantiate InteractionSpec oracle.tip.adapter.ftp.outbound.FTPInteractionSpec due to: Cannot set JCA WSDL Property.
    Error while setting JCA WSDL Property. Property setTargetFileName is not defined for oracle.tip.adapter.ftp.outbound.FTPInteractionSpec Please verify the spelling of the property. ".
    The invoked JCA adapter raised a resource exception. Please examine the above error message carefully to determine a resolution. ".
    The invoked JCA adapter raised a resource exception. Please examine the above error message carefully to determine a resolution. ,detail=Cannot set JCA WSDL Property.
    Error while setting JCA WSDL Property. Property setTargetFileName is not defined for oracle.tip.adapter.ftp.outbound.FTPInteractionSpec Please verify the spelling of the property. ,code=null}
      If I use *<property name="FileNamingConvention" value="%yyMMddHHmmssSS%_%SEQ%.txt"/>* inside the jca file it works but I want to use the filename at runtime and be the same name as it's picked up.
    Any idea what I am doing wrong.
    Thanks

    .bpel file
    <?xml version = "1.0" encoding = "UTF-8" ?>
    <!--
      Oracle JDeveloper BPEL Designer
      Created: Mon Jun 03 10:33:49 CDT 2013
      Author: 
      Type: BPEL 1.1 Process
      Purpose: Empty BPEL Process
    -->
    <process name="SharedServiceFtpFileMove"
                   targetNamespace="http://xmlns.oracle.com/SOALocal/SharedServiceFtpFileMove/SharedServiceFtpFileMove"
                   xmlns="http://schemas.xmlsoap.org/ws/2003/03/business-process/"
                   xmlns:client="http://xmlns.oracle.com/SOALocal/SharedServiceFtpFileMove/SharedServiceFtpFileMove"
                   xmlns:ora="http://schemas.oracle.com/xpath/extension"
                   xmlns:bpws="http://schemas.xmlsoap.org/ws/2003/03/business-process/"
             xmlns:ns1="http://xmlns.oracle.com/pcbpel/adapter/file/SOALocal/SharedServiceFtpFileMove/FilePoller"
             xmlns:ns2="http://xmlns.oracle.com/pcbpel/adapter/ftp/SOALocal/SharedServiceFtpFileMove/PutFile"
             xmlns:bpelx="http://schemas.oracle.com/bpel/extension"
             xmlns:xsd="http://www.w3.org/2001/XMLSchema"
             xmlns:xp20="http://www.oracle.com/XSL/Transform/java/oracle.tip.pc.services.functions.Xpath20"
             xmlns:bpel="http://docs.oasis-open.org/wsbpel/2.0/process/executable"
             xmlns:oraext="http://www.oracle.com/XSL/Transform/java/oracle.tip.pc.services.functions.ExtFunc"
             xmlns:hwf="http://xmlns.oracle.com/bpel/workflow/xpath"
             xmlns:ids="http://xmlns.oracle.com/bpel/services/IdentityService/xpath"
             xmlns:bpm="http://xmlns.oracle.com/bpmn20/extensions"
             xmlns:xdk="http://schemas.oracle.com/bpel/extension/xpath/function/xdk"
             xmlns:xref="http://www.oracle.com/XSL/Transform/java/oracle.tip.xref.xpath.XRefXPathFunctions"
             xmlns:ns5="http://xmlns.oracle.com/SharedServiceEmailNotification/xsd/V1"
             xmlns:ns4="http://xmlns.oracle.com/pcbpel/adapter/opaque/"
             xmlns:ldap="http://schemas.oracle.com/xpath/extension/ldap">
      <!--
         ORCHESTRATION LOGIC                                              
         Set of activities coordinating the flow of messages across the   
         services integrated within this business process                 
      -->
      <partnerLinks>
        <partnerLink name="FilePoller" partnerLinkType="ns1:ReadFile_plt"
                     myRole="ReadFile_role"/>
        <partnerLink name="PutFile" partnerLinkType="ns2:PutFile_plt"
                     partnerRole="PutFile_role"/>
      </partnerLinks>
      <variables>
        <variable name="Receive_ReadFile_InputVariable"
                  messageType="ns1:ReadFile_msg"/>
        <variable name="sourceFileName" type="xsd:string"/>
        <variable name="targetFileName" type="xsd:string"/>
        <variable name="Invoke_PutFile_PutFile_InputVariable"
                  messageType="ns2:PutFile_msg"/>
        <variable name="FtpJndi" type="xsd:string"/>
      </variables>
      <faultHandlers>
        <catchAll>
          <sequence name="Sequence1">
            <terminate/>
          </sequence>
        </catchAll>
      </faultHandlers>
      <sequence name="main">
        <receive name="Receive" createInstance="yes"
                 variable="Receive_ReadFile_InputVariable"
                 partnerLink="FilePoller" portType="ns1:ReadFile_ptt"
                 operation="ReadFile">
          <bpelx:property name="jca.file.FileName" variable="sourceFileName"/>
        </receive>
        <assign name="Assign_Data">
          <copy>
            <from variable="sourceFileName"/>
            <to variable="targetFileName"/>
          </copy>
          <copy>
            <from expression="'eis/Ftp/FtpAdapter'"/>
            <to variable="FtpJndi"/>
          </copy>
        </assign>
        <assign name="Assign_Invoke">
          <copy>
            <from variable="Receive_ReadFile_InputVariable" part="opaque"/>
            <to variable="Invoke_PutFile_PutFile_InputVariable" part="opaque"/>
          </copy>
        </assign>
        <invoke name="Invoke_PutFile"
                inputVariable="Invoke_PutFile_PutFile_InputVariable"
                partnerLink="PutFile" portType="ns2:PutFile_ptt"
                operation="PutFile" bpelx:invokeAsDetail="no">
          <bpelx:inputProperty name="jca.ftp.TargetFileName" variable="targetFileName"/>
          <bpelx:inputProperty name="jca.jndi" variable="FtpJndi"/>
        </invoke>
      </sequence>
    </process>File Adapter Poller jca
    <adapter-config name="FilePoller" adapter="File Adapter" wsdlLocation="FilePoller.wsdl" xmlns="http://platform.integration.oracle/blocks/adapter/fw/metadata">
      <connection-factory location="eis/FileAdapter" UIincludeWildcard="*-*.txt"/>
      <endpoint-activation portType="ReadFile_ptt" operation="ReadFile">
        <activation-spec className="oracle.tip.adapter.file.inbound.FileActivationSpec">
          <property name="DeleteFile" value="true"/>
          <property name="LogicalArchiveDirectory" value="FtpLocalArchive"/>
          <property name="MinimumAge" value="0"/>
          <property name="Recursive" value="true"/>
          <property name="PollingFrequency" value="15"/>
          <property name="LogicalDirectory" value="FtpLocalFiles"/>
          <property name="IncludeFiles" value=".*-.*\.txt"/>
          <property name="UseHeaders" value="false"/>
        </activation-spec>
      </endpoint-activation>
    </adapter-config>Ftp Adapter put jca
    <adapter-config name="PutFile" adapter="FTP Adapter" wsdlLocation="PutFile.wsdl" xmlns="http://platform.integration.oracle/blocks/adapter/fw/metadata">
      <connection-factory location="eis/Ftp/FtpAdapter"/>
      <endpoint-interaction portType="PutFile_ptt" operation="PutFile">
        <interaction-spec className="oracle.tip.adapter.ftp.outbound.FTPInteractionSpec">
          <property name="LogicalDirectory" value="FtpDir"/>
          <property name="FileType" value="ascii"/>
          <property name="Append" value="false"/>
          <property name="TargetFileName" value="setAtRunTime"/>
          <property name="NumberMessages" value="1"/>
        </interaction-spec>
      </endpoint-interaction>
    </adapter-config>Thanks

  • HELP: How to set WSDL at runtime (in Flex 4)?

    Hi,
    My flex application needs to communicate with a Web Service whose location is not known until after deployment; the service's location is known and static during development.  This means that my application should be able to communicate with the service whose wsdl url will be different from the "wsdl" value embedded in the Flex-generated code. 
    I can compute the wsdl url of the deployed service in the application at runtime.  However, I am unable to get the application to talk to the service running at the new location.
    Specifically, in application_creationCompleteHandler(), I do:
    var wsdl:String = hostString+"axis2/myService?wsdl";
    myWSvc = new MyWSvc(wsdl);
    In the constructor of MyWSvc(), which is the subclass of the auto-generated class for the My Web Service, I do:
    public function MyWSvc(runtimeWSDL:String=null) {
         super();
         if (runtimeWSDL != null) {
              wsdl = runtimeWSDL;
              _serviceControl.loadWSDL(wsdl);
              //model_internal::loadWSDLIfNecessary();
    This does not work; the auto-generated code always uses the WSDL value embedded in the auto-generated class for the My Web Service. 
    I would greatly appreciate your expert help in solving or getting around this issue.
    Much thanks,
    --Hyong

    Here is what I did.
    I set the settings for each environment in separate settings.xml files in SVN under seperated directories (dev,qa,prod).
    Here is the syntax of the settings.xml files. Each will have its respective URLs.
    <flex-config>
    <compiler>
        <define>
            <name>CONFIG::webServiceURL</name>
            <value>'http://www.xxxxxx.com/webservice_test/echocf7remote.cfc?wsdl'</value>
        </define>
    </compiler>
    </flex-config>
    The deploy.sh script asks for the environment value (dev,qa or prod) among other params, and then passes that in to the Ant like this (note there are extra params for our setup):
    ant -v -f build.xml -Dprojectname=${PROJECTNAME} -Dbranchname=${BRANCHNAME} -Dversion=${VERSION} -Denvironment=${ENV} -Dbuilddir=${BUILD_DIR} >> ${LOG_FILE}
    These params are used inside the build.xml
    After the Ant script checks the code out from SVN in to a staging directory, we load the proper settings.xml from the proper directory based on the user specified environment (in the deploy.sh).
    <load-config filename="${staging.conf}/${settings.conf}/${environment}/settings.xml"/>
    ${staging.conf} is defined in the build.properties and ${environment} is passed in the Ant call in the deploy.sh based on user provided input.
    So if the user specifies 'dev' during the deploy.sh execution, then we would load the /build/staging/config/dev/settings.xml
    Then in the pre-generates stabs I set the var at the top:
    private static const wsdlURL:String = CONFIG::webServiceURL;
    and modify the code bellow from hardcoded:
    //wsdl = "http://www.xxxxxx.com/webservice_test/echocf7remote.cfc?wsdl";
    to using the var:
    wsdl = wsdlURL;
    The nice thing is that all of the settings.xml 's are stored in the SVN and the correct version is used based on the environment provided by the user input during deployment script execution.
    Perhaps there is a more elegant way of doing this but this works and we already use Ant, SVN and a deployment shell script so it fits right in for us.

  • Receiver SOAP - How to set URL at runtime?

    I have configured a Receiver SOAP adapter for sending a cXML message to a vendor in no-soap, keep-headers mode. If I want to extend this to other vendors, I want to set the target URL at runtime. In order to do this, I am able to set the TServerLocation in the Mapping. But in the communication channel, I am not able to select this indicator. I am able to select the 'Use Adapter specific message attributes' and 'Variable Transport Binding' indicators but thats it. I am not displayed any form for selecting the target URL as the field to substitute during runtime. I am using SAP Basis 7.00 for the Adapter Metadata. Does anybody know a work around or patch I need?

    Hello James,
    I don't know whether this question is still open, but I have faced the same problem now, so here is my solution:
    It is right, that the "Target URL" field has to be filled with some "dummy" value to be able to save+activate the communication channel.
    In any other communication channels (e.g. like file adapter) you can fill in the <dummy> value. But at the SOAP receiver it doesn't work.
    Instead of <dummy>, if you fill in a real URL address, it will always take it instead of the dynamic one.
    My solution is, to fill in only the "http://" value, and it will take your dynamic URL from your UDF. (from the variable TServerLocation)
    I hope it helps!
    Best regards,
    Andras

  • Database Adapter Polling - Setting arguments in runtime

    Hi!
    I have a bpel-process with a DB-adapter that polls a table for new records every 10 second. I have a Where clause for the Select query, that reacts on all new records where the first argument (a field in the table) is equal to the second argument that is a literal value that will be hardcoded in the adapter.
    But in the future it might be possible that the second argument might change and I want to be able to edit that without redeploying the process. Is there anyway I could set the second argument as a parameter and change it in run-time, as a property in the BPEL console for example?

    DB Adapter does not have possibility to change toplink mappings in runtime :-(
    But maybe you can move this adapter to separate process (or even to ESB flow)which will be responsible just for receiving the data from DB and this process will call your main process. In future you will change just this small process and not the main one. Could be a workaround.

  • Set timeout on Runtime workbench in PI 7.1

    Hi guys,
    anybody who knows where to set the timeout value of a Runtime workbench session in SAP PI 7.1?
    Thanks in advance
    Mikkel

    Hello Mikkel
    You will need to take 2 actions:
    1) Set the [Session Manager property|http://wiki.sdn.sap.com/wiki/display/JSTSG/(JSTSG)(P4-IIOP)Ses-P002] "session.invalidation.timeout" in the Config tool.
    2) Go to the NWA
    -> Configuration Management
    -> Infrastructure
    -> Application Modules
    -> Search for mdt (com.sap.xpi.mdt)
    -> Context
    -> Define as Local Property
    -> Set required timeout
    -> Extend Global Property
    -> Session Timeout
    See http://help.sap.com/saphelp_nwpi71/helpdata/EN/b9/665b42cfca5542e10000000a1550b0/content.htm for more details.
    The value of "session.invalidation.timeout" property is in miliseconds and the value of "session timeout" property is in minutes.
    Regards
    Mark

  • Setting Romanian regional runtime error

    Setting Romanian regional items at install time makes you unable to login in vista: LogonUI.exe runtime error
    Model: Satelite Pro u400 -13k .
    Problem steps : 
    Start preinstalled vista setup,ftom a u400-13k,
    when prompted change to Romanian Regional settings
    result : after completing vista setup, LogonUI.exe crashes with Microsoft C++ Runtime exception dialog. 
    Solution:
    Reboot in safe mode then burn the recovery media.
    Restrat setup then do not change regional settings.
    Hope this helps other customers until it is fixed.
    To Toshiba QA Team :  I spent almost 4 hours to workaround your untested product. Please at least fix this bug for other customers, as time is important for anyone.  I guess this may be related to fingerprint logon application not being localized correctly .
    Regards . 
    sandi_ro.

     >>Purchased in Bucharest, Romania.
    You may want to also post a message in the Toshiba Europe forum.
    Jim

  • Set header at runtime on Interactive Report

    I have an interactive report that displays twelve months across the report. The user can then choose a start year and month for the first column of the report. So, at runtime, I would like to populate the header with the appropriate year/month.
    On a regular report region, you can set the header using a Function returning colon delimited headings. I do not see this functionality on the interactive report. Am I overlooking something or is there another method where I can set the headers for these columns at runtime?
    Thanks,

    Andy,
    Thanks for the info. Unfortunately, I am having trouble implementing. When I place &P1_MONTH1. in my header, my header displays &P1_MONTH1. Hopefully, I am just implementing incorrectly. I am opening the Interactive Report and just entering &P1_MONTH1. in the Heading column for the appropriate column. Is this correct?
    NOTE: I placed the &P1_MONTH1. on a SQL Report and it worked. However, when trying to use on an Interactive Report it does not.
    Thanks,
    Edited by: Brian H on Feb 18, 2009 9:40 AM

  • Set location in runtime..

    Hi
    usually i used to save file like this
    String retreive = textarea.getText();
              RandomAccessFile logfile = new RandomAccessFile("c:\\saved.txt","rw");
              logfile.writeBytes(retreive);
              JOptionPane.showMessageDialog(null,"Saved ..","Saved...",JOptionPane.WARNING_MESSAGE);
              catch(IOException e)
              System.out.println("cannot write on to log file....");
              }But it works correctly , i set location inside that and it will save file as i set the location..
    How can i save and decide where to save the file at runtime...
    i mean when i press save button i want to select the drives and save it to the folder as i wish...
    is there any suitable solution.???

    Use a JFileDialog to get the location from the user and use that instead of hardcoding c:\\saved.txt.

  • Setting classpath during Runtime

    hi,
    here's what i want to archive:
    i have a directory (not! the starting dir) containing classes
    the location of that directory i don't know until runtime
    the classes have to be accessible by the Class.forName("class").newInstance(); method
    no, i can not write a classloader instead of the forName() <- this is fix
    i tried with System.setProperty("java.class.path", newclasspath);
    and with a classloader, that loads the classes, before the forName() method is invoked (i hoped forName() would find already loaded classes)
    didn't work
    i'm deeply thankful for every hint

    It's not exactly Pure Java (not at all, really).. But
    couldn't you do a:
    String myOldClasspath,myNewClasspath;
    myOldClasspath =
    System.getProperty("java.class.path");
    Runtime.getRuntime().exec("SET
    CLASSPATH="+myNewClasspath);
    // Perform Operations
    Runtime.getRuntime().exec("SET
    CLASSPATH="+myOldClasspath);Probably not.
    First 'set' is a shell command so the program wouldn't run at all. You would need to provide a shell.
    Second anytime you use exec() it starts another process space. Anything that happens to the environment in that process only affects that process. So this solution would only work if it was acceptable to have two running java applications. The first sets up the environment and the second does the real work.

Maybe you are looking for

  • How do I define my web application path in Tomcat6

    Hi friends, Can anybody tell me how to define and where to define my web-application path in tomcat 6 server? I absolutely don't want to change any files inside tomcat6\conf\ folder (like its server.xml or context.xml) My problem comes in the followi

  • Whi isn't my Wi-Fi working on my iPod Touch 4th generation?

    So yesterday I was using the internet and the apps that require internet on the iPod and everything was fine. Comes later on that night thw Wi-Fi cut out. I didn't understand why and I still don't understand. I turned the wi-fi off, unplugged the rou

  • EHS : Creating new report parameter/ symbol for MSDS cover sheet

    Hi, I am working on the SAP EHS module. I have a requirement in which I need to have the country name (description) on the MSDS cover sheet instaed of the country key which is presently coming in there. As per the standard settings, the report parame

  • OC4J and Charactersets

    I am deploying a Struts based application to an OC4J standalone instance. An Apache Web Server ( that is an Oracle HTTP server ) is handling the trafic through the firewall. In all JSP header files I have <meta http-equiv="Content-Type" content="text

  • Importing lessons for Lightroom 4: Classroom in a Book

    I am using Adobe's Lightroom 4: Classroom in a Book.  I followed the instructions to created a file that contains the lessons 1` through 11) for working w/ Classroom in a Book.  I named the file LR4 CIB as instructed.  I also created a folder which I