Why I can't pass parameters into CR from VB6

I want to Pass parameters into crystal report from VB6.
But whatever I try, it don't work Fine,
always Show the message "This field name is not known".
Crystal Report::
Parameter: a.@cmpy;
                   b.@p1
formula:
a. If {?@cmpy} ="USA" or {?@cmpy} ="usa" then
      "This is test 1 sentences"
   else if {?@cmpy}="TWD" or {?@cmpy} = "twd"  then
      "This is test 2 sentences"
b. if trim({?@p1})="1" then "This is test 3 sentences"  
VB::
Public oApp As New CRAXDDRT.Application
Public oRpt As CRAXDDRT.Report
oRpt.ParameterFields(1).ClearCurrentValueAndRange
oRpt.ParameterFields(2).ClearCurrentValueAndRange
oRpt.ParameterFields(1).AddCurrentValue ("TWD")
oRpt.ParameterFields(2).AddCurrentValue ("1")  
I had trid to use "IsCurrentValueSet" function to check whether parameter was set or not, and It responsed "Ture",so I so confused about it.
Anyone know about this??
ps. I had trid other way that change the formula indirectly, although it can work fine, but it isn't a right way to solve my problem.
Edited by: DeanLai on Jun 22, 2010 8:54 AM

I Find something.
First I tried to add parameter and wanted to see these value on Report.
So I inserted {?@cmpy} and {?@p1} into report, and used VB code
"oRpt.ParameterFields(1).AddCurrentValue ("TWD")" and "oRpt.ParameterFields(2).AddCurrentValue ("1")",
then ran the process, but it didn't display any value on report,
so why it couldn't pass value into parameter??
then I tried other way which was to add new parameter, and used the same way to pass
value into parameter, then it can display value on report.
So the different between these is {?@cmpy} and {?@p1} which come from
Stores Procedure.
While I set Database in crystal report, set all value into Store Procedure's
parameter(the window about "Enter Parameter Values"), then it automatic come out the DB columns and parameter(SP parameter)
, course include {?@cmpy} and {?@p1}.
Do this problem cause my question?
Can we pass value into parameter which come from SP parameter??
Can we use these parameter into forumla??
Edited by: DeanLai on Jun 30, 2010 11:56 AM

Similar Messages

  • Can't figure out why I can't enter letters into TextField from emulator

    I have a Midlet comprised of a single form containing one TextField. When I run the Midlet using the standard emulator and hit keys on the number pad, I am limited to entering numbers only and cannot enter letters to form words. I.e. numerous presses of the same key only yields another number.
    The TextField's input mode is UCB_BASIC_LATIN and the input constraints is set to ANY.
    Platform Type = CLDC/MIDP
    Emulator Platform = Java(TM) Platform Micro Edition SDK 3.0
    Device = DefaultCldcMsaPhone2
    Device Configuration = CLDC-1.1
    Device Profile = MIDP-2.0
    Mel

    Facepalm
    Menu > Qwerty > { Qwerty, 123, abc, Predict, Symbols, Virtual }.
    Mel

  • Pass parameters into CellRenderer

    Hello!
    I want to pass parameters into CellRenderer.
    How can I do that?

    Found solution!
    Create method, that set my Bean in CellRenderer, in what I keep my values, and call this method when create my CellRenderer. Than Use MyBean inside CellRenderer when it render cell.
    JSP:
    <hbj:tableView id="NewTable" model="LotsBean.ModelLots"
              design="TRANSPARENT"
              headerVisible="false"
              footerVisible="false"
              fillUpEmptyRows="false"
              selectionMode="NONE"
              visibleFirstRow="1"
              rowCount="16"
              width="100%" >
              <%  MyCellRenderer MyCell = new MyCellRenderer();
                     MyCell.setST(MyBean);
                     NewTable.setUserTypeCellRenderer(MyCell); %>
         </hbj:tableView>
    CellRenderer class:
         public void setST(user_registration_bean Bean){
              MyBean = Bean;

  • How can I pass parameters from one process flow to another process flow?

    How can I pass parameters from one process flow to another process flow (sub process) in warehouse builder? let me know the steps I have to do in warehouse builder.
    Thanks in advance,
    Kishan

    Hi Kishan,
    Please post this question to the Warehouse Builder forum:
    Warehouse Builder
    Thanks, Mark

  • How can i pass parameters to every form sucessively or repeatedly

    How can i pass parameters to every form sucessively or repeatedly
    Eg: I have username which is specified in first form
    I want to display and use the username in each and every form after that form
    please tell me how to do
    i have one solution
    i.e., Normal way to pass parameters from one form to another!
    Is any procedure to pass paramters to all form at a time???

    excellent ...
    thanks for adding up to my post ..
    You can make use of parameters
    Every forms shud have same parameter name and u pass on the values of these
    Its one of the best ways

  • Passing parameters into an URL Services portlet

    Hi,
    is there any way to pass parameters into an URL Services portlet ? I want to give the user the ability to set a preference for which sections of an XML file should be displayed. The preference should be passed into the XMLFilter which should add these parameters as XSLT variables to the stylesheet. Is this possible ?
    Cheers,
    Ernst

    As of now we do not have provision to pass parameters to the portlet dynamically. However, if required, at most could be used is headerTrim tag and footerTrim tag. If you want to discard some data from mid of the file, its not supported.
    bye
    Baig
    null

  • OAF: passing parameters to report from OAF page and running concurrent prog

    Hi Everyone,
    i have an OAF page with 10 fields after filling those fields i need to press "Submit" button.
    On pressing Submit button 5 parameters i have to pass to the xml publisher report to run the concurrent program and display the output in pdf format.(Out of 10 fields on the page the first 5 fields will be passed as parameters)
    How can i pass parameters from OAF page to the report(concurrent program)?
    and how can i call concurrent program?
    and how can display the output of the report in pdf format after calling the concurrent program?
    Any answers will be really useful...
    Thanks in advance.
    Thanks.

    Hi kumar ,
    XML report will generate output in PDF format , first you need to try generating report separately , manually submit
    the concurrent program and make sure every thing goes well .
    Once the above step is done you can try to submit the concurrent from controller class . The submitRequest method
    will return the request ID of the concurrent program .
    Now with the help of this request ID you can redirect the page to Oracle standards Request Page( you can monitor
    the status of concurrent program and view output ) this can be done with the following piece of code
    String url = "OA.jsp";
    parameters.put("akRegionApplicationId", "0");
    parameters.put("akRegionCode","FNDCPREQUESTVIEWPAGE");
    String id = "" + return_reqId + "";
    parameters.put("requestMode","DEFERRED");
    parameters.put("requestId", id);
    pageContext.setForwardURL(url,null,OAWebBeanConstants.KEEP_MENU_CONTEXT,null,parameters,true,OAWebBeanConstants.ADD_BREAD_CRUMB_NO ,OAWebBeanConstants.IGNORE_MESSAGES);
    Keerthi

  • How to passing value into Captivate from html?

    How to passing value into Captivate from html?
    Or
    How to communicate between objects in one slides?

    Hi czhao0378 and welcome to the forums!
    Captivate does not natively allow you to communicate your own
    data, either internally or externally. The only way to make this
    happen is to create your own functionality, either via custom-built
    Flash objects or JavaScript code executed in the browser or a
    combination of both.
    The only example I've seen of any "data passing" inside
    Captivate is a custom text input/output solution that was posted on
    the Captivate Developer Exchange:
    http://www.adobe.com/cfusion/exchange/index.cfm?event=extensionDetail&loc=en_us&extid=1253 021
    This solution consists of an input box that takes information
    from the user on one slide and a second box that displays that
    information on another slide. The functionality was built in Flash
    and is embedded in Captivate as a Flash "animation". Unfortunately,
    since this is a custom functionality, the information is not
    included in the user completion results Captivate can pass to a
    Learning Management System.
    Since the solution mentioned above relies on a Flash
    Actionscript variable to hold the information that is displayed,
    you can also pass the information from HTML to Captivate using the
    "SetVariable" command in JavaScript. This would at least allow you
    to display your own HTML-based data inside Captivate.
    Beyond that, I'm not aware of any other way to gather and
    pass data in Captivate.

  • I'm staying at my house in Peru, South America. From my PC laptop I can see my neighbor's wifi service network, but I also have my mini iPad and I can not figure out why I can't get any wifi connection from my area. Is there a setting I need to do?

    I'm staying at my house in Peru, South America. From my PC laptop I can see my neighbor's wifi service network, but I also have my mini iPad and I can not figure out why I can't get any wifi connection from my area. Is there a setting I need to do?

    Yes, I did try to go on my settings>wifi and was waiting for any wifi signals to pick up, but nothing shows up. But on my PC I get a whole list of networks to choose from. Regarding my neighbor, I already have her password that is why I was able to get it on my PC, the problem is that the mini Ipad is not picking any signal neither can it locate me when I go to maps.

  • How can i pass the value one from to another form?

    hi all
    how can i pass the value one from to another form  with out use it when ever i want to needed this value that ican useit?
    like i have two fields U_test1 and U_test2  table name @AUSR
    that i have  four form  A! , A2,A3,A4    please tell me in details....?

    Hi,
    U can assign the values to some variables and access then in ur required forms.
    Vasu Natari.

  • How can I import video into iMovie from a DVD?

    How can I import video into iMovie from a DVD?
    Thanks,
    Doug Davis

    You can do this with a free app called MPEG Streamclip and a $20 quicktime component from Apple.
    See detailed instructions here.
    https://discussions.apple.com/docs/DOC-3951

  • How can I import music into iTunes from other media .I have music which was downloaded from my Sony Ericcson W715 into "Media Go" and I want to transfer it into iTunes.Is this possible ?

    How can I import music into iTunes from another media.
    I have a library downloaded from a Sony Ericsson W715 into "Media Go" and I want to transfer to iTunes and then into my iPhone 4.
    Is this possible ?
    Chris
    <Email Edited by Host>

    chrisfromgoodworth clatford wrote:
    How can I import music into iTunes from another media.
    I have a library downloaded from a Sony Ericsson W715 into "Media Go" and I want to transfer to iTunes and then into my iPhone 4.
    Is this possible ?
    Chris
    Possibly. Media Go supports a variety of music formats, some of which can be imported in to iTunes and then synced on to an iPhone, however some of its formats cannot be imported in to iTunes.
    See http://mediago.sony.com/enu/supported-file-formats/ for a list of formats supported by Media Go. iTunes for Windows supports MP3, AAC, WAV, and can import and convert WMA files as well. However iTunes does not support ATRAC, or FLAC.
    Furthermore, if some of your music has been bought from an Internet music store it might be procted by DRM. If so it cannot be imported in to iTunes.
    To do the importing you would either drag the music files in to iTunes, or tell iTunes to open them. See http://support.apple.com/kb/ht1347

  • HT5622 Why I can't download music and video from my computer to my iphone 5s?

    Why I can't download music and video from my computer to my iphone 5s?

    No idea, since you provide no info at all about your issue.

  • How can I copy movies into iPhone from my PC?

    How can I put movies into Iphone from PC.
    When I'm trying to put video files into library (mp4 format) it not appear in my iTunes library.

    You sync it to your iPad.
    http://i1224.photobucket.com/albums/ee374/Diavonex/Album%204/9d04e8509b150edc93a 9a8b2adc4dc59.jpg

  • HT1338 Why I can not access to yahoo games from my Mackbook Air?

    Why I can not access to yahoo games from my Mackbook Air?. I am using Mac OS X 10.7. 4.

    http://jdk7.java.net/download.html
    u10 fixes yahoo game problem.

Maybe you are looking for

  • Open and closed cursor

    I have some doubts/questions . What is the difference between open and closed cursor? Are library cache locks same as parse locks? What is the difference between latch and mutex? I would be grateful if experts could answer these questions. Regards

  • Flex 4 migration: how to resolve css warnings

    Hi, we are trying to migrate a our flex app to flex 4, and while compiling the app, we are seeing a lot of the following warnings. I was wondering how to resolve these warnings. We are not using flex 3 compatibility flag but are using Halo as the def

  • Filter the SSID for Lobby Admin

    Hi, I've created a sponsor portal on wlc 5508 by using LobbyAdmin account, but I noticed that the person who will have access to this portal is  able to assign any vlan to the visitor because there is a drop down list which displays all SSID which ar

  • Importing jpg files to PSE6

    Whenever I try to get photos from my camera or files on my computer the dialogue box shakes (really) and most of the file names disappear, and I get a message telling me that 'the file could not be copied'. Any ideas?

  • Cannot query tables in remote database

    Hi, I have looked around for similar topics but have not found anything that would be close to my problem. I created a public link to a remote database from my portal database, it is a public link and I can query tables in the remote database just fi