How to pass a parameter with more than one value to a report? (urgent)
Hi, all
I try to pass a parameter from a search form to a report in
which I would like to print out my search result. My problem is
I can pass the parameter to report but only one value which my
cursor points to. could anyone tell me how to pass a list of
value to the report? my trigger in form like this:
declare
PL_ID PARAMLIST;
sc_no books.c_no%type;
begin
PL_ID := GET_PARAMETER_LIST('parametername');
IF NOT ID_NULL(PL_ID) THEN
DESTROY_PARAMETER_LIST(PL_ID);
END IF;
PL_ID := CREATE_PARAMETER_LIST('parametername');
IF ID_NULL(PL_ID) THEN
MESSAGE('PL/SQL held against Button failed to execute');
RAISE FORM_TRIGGER_FAILURE;
END IF;
ADD_PARAMETER(PL_ID, 'PARAMFORM', TEXT_PARAMETER,'NO');
sc_no := :searchlist.c_no; --(c_no is the value I want to pass
but not only one.)
ADD_PARAMETER(PL_ID, 'pamametername', TEXT_PARAMETER, sc_no);
RUN_PRODUCT(REPORTS, 'reportpathname.rep', SYNCHRONOUS, RUNTIME,
FILESYSTEM, PL_ID, NULL);
end;
Thank you in advance
Diana
Is it your values in parameter NO separated by coma? And is it
parameter in where clause?
Do you want something like :
from table
where s_no in (NO) ?
If is answer "yes" you can create lexical parameter in report.
You can write in report sowething like:
select a.field1, a.field2,.....
from table a
&COND /* this is if is condition only one line after "from".
if you have more lien after where then you will put this &COND
in line where you want to have your multivalue.
Then in your trigger in form you should write:
sc_no := 'where a.sc_no in ('||:searchlist.c_no||')';
ADD_PARAMETER(PL_ID, 'pamametername', TEXT_PARAMETER, sc_no);
/* again this is if you have only one line with WHERE ili
conditions */
or you will write:
sc_no := 'and a.sc_no in ('||:searchlist.c_no||')';
ADD_PARAMETER(PL_ID, 'pamametername', TEXT_PARAMETER, sc_no);
It will substitute line in which is your conditions with
multivalue.
Similar Messages
-
Passing Enum Parameter , with More than one value ?
Hi, Good day
in the fallowing example ,should I replace the enum Parameter with what ? how can i make that work ?
Module Module1
Enum Tables as integer
Table1 = 0
Table2 = 2
Table3 = 4
Table4 = 6
End Enum
Public Sub CallTables(byval Tbl as Tables)
if tbl = Tables.Table1 then msgbox ("Table1")
if tbl = Tables.Table2 then msgbox ("Table2")
if tbl = Tables.Table3 then msgbox ("Table3")
if tbl = Tables.Table4 then msgbox ("Table4")
end sub
end module
Class myClass1
private sub mySub()
CallTables(Tables.Table1 and Tables.Table2)
CallTables(Tables.Table1 and Tables.Table2 and Tables.Table3)
end sub
end class
since the Tbl parameter will take one value only , so one statement only will execute , how can I make it work with Enum Parameter ?
ThanksThanks guys for you reply , [Cor Ligthert] I post this in Visual basic section, I appreciate your solution [dbasnett],
Thanks for that idea of attribute <Flags> [Blackwood] ,
Dictionary will not work in IF Statement as I want it , also ParamArray tbl() , thanks guys.
Here is the code
Module myModule
<Flags()>
Enum Table As Integer
Table1 = 2
Table2 = 4
Table3 = 8
Table4 = 16
Table5 = 32
End Enum
Public Sub MySub(ByVal Table As Table)
If (Table And Table.Table1) = Table.Table1 Then
MsgBox((Table And Table.Table1))
End If
If (Table And Table.Table2) = Table.Table2 Then
MsgBox((Table And Table.Table2))
End If
If (Table And Table.Table3) = Table.Table3 Then
MsgBox((Table And Table.Table3))
End If
If (Table And Table.Table4) = Table.Table4 Then
MsgBox((Table And Table.Table4))
End If
If (Table And Table.Table5) = Table.Table5 Then
MsgBox((Table And Table.Table5))
End If
End Sub
End Module
Class Myclass
Private sub CallTables()
MySub(Table.Table1 Or Table.Table2)
MySub(Table.Table2 Or Table.Table3 Or Table.Table4)
MySub(Table.Table1 Or Table.Table4 Or Table.Table5)
MySub(Table.Table1 Or Table.Table2 Or Table.Table4 Or Table.Table5)
MySub(Table.Table1 Or Table.Table2 Or Table.Table3 Or Table.Table4 Or Table.Table5)
end sub
end Class -
Fill BEx Variable with more than one value via Custom Exit
Dear SDN comunity,
I want to fill a BEx Variable via a custom exit. My problem is, I don't know how to fill this variable with more than one value.
I try to give you some background info based on an exaple:
<u><b>Variable-Details</b></u>
<b>Type of Variable:</b> Characteristic Value
<b>Variable Name:</b> ZCCD
<b>Description:</b> Company Code Selection
<b>Processing by:</b> Custom Exit
<b>Characteristic:</b> Company Code
<b>Variable Represents:</b> Multiple Single Values
<u><b>This is the used ABAP code:</b></u>
WHEN 'ZCCD'.
CLEAR l_s_range.
l_s_range-low = '2002;2004'.
l_s_range-sign = 'I'.
l_s_range-sign = 'EQ'.
APPEND l_s_range TO e_t_range.
<u><b>The system returns this message:</b></u>
Value "2002;2004" is too long for variable ZCCD
appreciate your help!
//michaelEugene, Marcus
it works now, thx a lot!
Please find attached the final code:
CLEAR l_s_range.
l_s_range-low = '2002'.
l_s_range-sign = 'I'.
l_s_range-<b>opt</b> = 'EQ'.
APPEND l_s_range TO e_t_range.
CLEAR l_s_range.
l_s_range-low = '2004'.
l_s_range-sign = 'I'.
l_s_range-<b>opt</b> = 'EQ'.
APPEND l_s_range TO e_t_range.
(Delta to Marcus's code is bold) -
Call Transaction and fill a select-options field with more than one value?
Hello everybody,
how can I fill a select-options field with more than one value.
Here is the code example:
CLEAR: GT_BDCDATA, GS_BDCDATA.
GS_BDCDATA-program = 'RHALEINI'.
GS_BDCDATA-DYNPRO = '1000'.
GS_BDCDATA-DYNBEGIN = 'X'.
APPEND GS_BDCDATA TO GT_BDCDATA.
CLEAR: GS_BDCDATA.
GS_BDCDATA-FNAM = 'PCHOTYPE'.
GS_BDCDATA-FVAL = 'P'.
APPEND GS_BDCDATA TO GT_BDCDATA.
CLEAR: GS_BDCDATA.
LOOP AT gt_hrobjinfty INTO gs_hrobjinfty.
GS_BDCDATA-FNAM = 'PCHOBJID-LOW'.
GS_BDCDATA-FVAL = gs_hrobjinfty-objid.
APPEND GS_BDCDATA TO GT_BDCDATA.
CLEAR: GS_BDCDATA.
ENDLOOP.
CALL TRANSACTION 'PFAL' USING GT_BDCDATA MODE 'A'
MESSAGES INTO GT_MESSAGES.
THX.Hi,
Please refer the code below:
*Code used to populate 'select-options' & execute report
DATA: seltab type table of rsparams,
seltab_wa like line of seltab.
seltab_wa-selname = 'PNPPERNR'.
seltab_wa-sign = 'I'.
seltab_wa-option = 'EQ'.
* load each personnel number accessed from the structure into
* parameters to be used in the report
loop at pnppernr.
seltab_wa-low = pnppernr-low.
append seltab_wa to seltab.
endloop.
SUBMIT zreport with selection-table seltab
via selection-screen.
Thanks,
Sriram Ponna. -
How to create a theme with more than one master-slide size defined?
I would like to create a Keynote theme that has more than one size of page defined - for example one for on-screen show, and one for printing.
I noticed that the stock themes, and those from theme vendors, come with multiple page dimensions, and that the master slide layouts for the 'same' master slide appear to be designed differently for the different sizes.
How do I create themes like this in Keynote? I cannot find any information about this in the Keynote manual. I have worked out how to change the master slide dimensions, but not how to tell Keynote that the layout I've created for a slide is for a particular set of dimensions. So when I look at my theme in the theme browser, I only see the dimensions I had selected last time I saved my theme showing.
Any help most appreciated.The same reason that Apple and 3rd Party vendors put multi-size templates in one file I expect. I am trying to construct an in-house standard template for use in our company, and it is easier to manage if there is only one file to send to people rather than many - both initially and for subsequent edits / updates to the template.
Of course it would be possible to create several templates (one for each size). But since it is clear that templates can be combined, it appears sensible to do this - unless the doing of it is horridly complicated -
How to create new user with more than one default folder
hi
A new user created in OCS has only one default folder(Inbox).
I want to create new user with customized default folder.
for example:
a new user has more than one default folder(Inbox,Outbox,Draft,Dustbin...)
And also I want to automaticly enable the functions:
When sending messages, place a copy in Outbox
Keep message drafts in Draft
Move deleted messages to Dustbin
who know that?
thanksThe same reason that Apple and 3rd Party vendors put multi-size templates in one file I expect. I am trying to construct an in-house standard template for use in our company, and it is easier to manage if there is only one file to send to people rather than many - both initially and for subsequent edits / updates to the template.
Of course it would be possible to create several templates (one for each size). But since it is clear that templates can be combined, it appears sensible to do this - unless the doing of it is horridly complicated -
How to create Dynamic Table with more than one column?
Hi,
I'm trying to learn Dreamweaver. I'm trying to display 2 units from my database in the same row then I would like go to next row.
By default DW shows single record in each row. Is it possible to display more than one?
Thank youOf course. You will not name the divs differently, they will all be <div class="RowContainer"> (in the example below) and the reason they will look like
1 2
3 4
5 6
is because they will "stack themselves up". That is, the first will float to the top left, the next will float up next to it. The third will not fit on the top line floating next to two, so it will start a new row. Four will float up next to it, and five will start the new row.
Think of the string of divs (don't put wordspaces between them...) as a continuous ribbon or chain of divs. That is a slightly poor analogy, since the second and third won't be next to each other, as a chain or a ribbon might be. But you should be able to have as many divs as you have records... you define the div in the CSS and in your page markup really only show one div.
Here's a modified example from one of my files:
<div spry:region="ds1" class="...">
<div spry:repeat="ds1" class="RowContainer"> <!--this is the div that you would style to float -->
{category} {title} {medium}<br>
{price} {sold} {date}<br>
{sold_to_purchase_price}
</div>
</div>
Beth -
How to retrieve unique records with more than one column
I have a table sps_prod as described below -
POGNAME VARCHAR2(1500)
INDEX#VERSION VARCHAR2(200)
POG_MODEL_STATUS VARCHAR2(100)
POG_LAYOUT_TYPE VARCHAR2(500)
POG_MARKET_SPECIFIC VARCHAR2(500)
POG_CONTACT_NUMBER VARCHAR2(100)
AREA_SUPPORTED VARCHAR2(500)
POG_COMMENTS VARCHAR2(1500)
POG_FOOTER_COMMENTS VARCHAR2(1500)
POG_ELECTRICAL_LIST_1 VARCHAR2(1500)
POG_ELECTRICAL_LIST_2 VARCHAR2(1500)
POG_CARPENTRY_1 VARCHAR2(1500)
POG_CARPENTRY_2 VARCHAR2(1500)
INSTALLATION_INSTRUCTION_1 VARCHAR2(1500)
INSTALLATION_INSTRUCTION_2 VARCHAR2(1500)
FIXTURE_REORDER_NUMBER VARCHAR2(200)
FIXTURE_ID VARCHAR2(200)
FIXTURE_NAME VARCHAR2(500)
FIXTURE_IMAGE VARCHAR2(500)
PART_REORDER_NUMBER_9 VARCHAR2(500)
PART_FIXTURE_ID_9 VARCHAR2(500)
PART_FIXTURE_NAME_9 VARCHAR2(500)
PART_FIXTURE_IMAGE_9 VARCHAR2(500)
UPC VARCHAR2(50)
ITEM_NUMBER VARCHAR2(50)
DESCRIPTION VARCHAR2(700)
MERCH_TYPE VARCHAR2(20)
HEIGHT VARCHAR2(100)
WIDTH VARCHAR2(100)
DEPTH VARCHAR2(100)
CREATE_TS DATE
There are 4 millions records in it and many with the same combination of POGName,Index#Version,POG_Model_Status,POG_Layout_Type,POG_Market_Specific, POG_Contact_Number and Fixture_Name. How do I retrive records with all the columns above but with unique fixture_name and reorder_number combination. There are no keys defined on the table.
I guess this is a simple problem but the fact that I am trying to retrieve all the columns is stumbling me.
Thanks in advance.Hi,
Sanders_2503 wrote:
... There are 4 millions records in it and many with the same combination of POGName,Index#Version,POG_Model_Status,POG_Layout_Type,POG_Market_Specific, POG_Contact_Number and Fixture_Name. How do I retrive records with all the columns above but with unique fixture_name and reorder_number combination. I don't see a column called reorder_number. Do you mean fixture_reorder_number or part_reorder_number_9?
So you want only one row for each distinct combination of fixture_name and some other column (I'll assume that's fixture_reorder_number). Does it matter which row? They won't necessarily have the same values for the other columns.
The query below returns the one with the first pogname (in sort order):
WITH got_r_num AS
SELECT pogname, index#version, pog_model_status, pog_layout_type
, pog_market_specific, pog_contact_number, fixture_name
, ROW_NUMBER () OVER ( PARTITION BY fixture_name
, fixture_reorder_number
ORDER BY pogname
) AS r_num
FROM sps_prod
SELECT pogname, index#version, pog_model_status, pog_layout_type
, pog_market_specific, pog_contact_number, fixture_name
FROM got_r_num
WHERE r_num = 1
;If there happens to be a tie (that is, two or more rows with the same fixture_name, fixture_number, and first pogname) then one of the will be chosen arbitrarily.
Instead of "ORDER BY pogname", you can ORDER BY any other columns or expressions, but you must have an analytic ORDER BY clause. You can make it "ORDER BY NULL" if you really want to pcik an arbitrary row.
I hope this answers your question.
If not, post a little sample data (CREATE TABLE and INSERT statements, relevant columns only), and also post the results you want from that data (or a couple of examples of acceptable results).
Explain, using specific examples, how you get those results from that data.
Always say which version of Oracle you're using. -
How to remove calendar syncing with more than one calendar?
I have no idea how I did it, but my Blackberry Curve 8310 somehow synced with TWO calendars. I always had it syncing with my Outlook one and that still works fine, but somehow it also synced to my Hotmail calendar somewhere along the way - but I haven't used that calendar in a very long time and don't even use my Hotmail account anymore, so it's just confusing everything. I never meant to tell it to sync to that one and for the life of me I can't figure out how to get it to remove all that calendar info that it added! Can someone help with instructions? I'm fairly technically savvy, I just can't figure out how to do it on my own.
Do you want to remove the hotmail account all together? If so you can delete it from either your carrier's BIS page, or from the personal email setup icon on your device.
If you just want to remove the calendar try going to Options | Advanced Options | Service Book. Find your Hotmail account's CICAL service book and delete it
If someone has been helpful please consider giving them kudos by clicking the star to the left of their post.
Remember to resolve your thread by clicking Accepted Solution. -
Search Help with more than one value back
Dear Experts,
We added two customer fields to the SC.
For the first customer field we created Search Help.
When picking any option from the search help we need TWO values back u2013 one value to the first customer (the field with the search help) and the second value to the second customer field (the field without the search help).
Can you please advice how can we have TWO values back from the search help?
Thanks in advance,
KerenHello Keren,
See if the below thread answers your question..
How to create a search help
Thanks
Arshad -
How to invoke a WebService with more than 1 value in parameter?
I have a webservice, with a request parameter as an Array of String.
In an invoing xml it should looks like:
<GetPersonsData_Request>
<request>
<PersonIdList>
<string> 111 </string>
<string> 222 </string>
<string> 333 </string>
</PersonIdList>
A problem i have:
How I can to assign a differents values to this list?
i assigned first element directly and then tried to add a new one with append:
<bpelx:append>
<bpelx:from>'12345'</bpelx:from>
<bpelx:to>$GetPersonsData_Request.parameters/ns2:request/ns5:PersonIdList</bpelx:to>
</bpelx:append>
I receive:
<GetPersonsData_Request>
<request>
<PersonIdList>
<string> 111 </string>
'12345'
</PersonIdList>
</request>
Its added as a single string, no as a Structure Element.
What i missed???ok, i tried.
add a new string type variable:
<variable name="string" element="ns6:string"/>
next assigned to $string my text and tried to append it to list:
<bpelx:append>
<bpelx:from>$string</bpelx:from>
<bpelx:to>$GetPersonsData_Request.parameters/ns2:request/ns5:PersonIdList</bpelx:to>
</bpelx:append>
and as a result i receive a correct structure:
<GetPersonsData_Request>
<request>
<PersonIdList>
<string> 111 </string>
<string> 12345 </string>
</PersonIdList>
</request>
BUT!!! When i next use a countNode:
<assign name="ac">
<copy>
<from>ora:countNodes('GetPersonsData_Request','parameters','ns2:request/ns5:PersonIdList/ns8:string') - it shows me 1 !!!
<to>$counter</to>
</copy>
In EM:
Updated variable "counter"
<payload>
<counter>
<counter xsi:type="def:int">1</counter>
</counter>
Why???
Is it really correct example and it should to work? -
BizTalk:How to share customized pipeline with more than one BizTalk Application
I have a new BizTalk application which will use a customize generic pipeline . This pipeline has been used in an existing BizTalk application.
When I use BizTalk Server Administration to add this pipeline assembly as a resource for a new BizTalk application, it shows error message: "this biztalk assembley has already in store and is either associated with another application or another type".
My questions is how to share the generic pipeline component with many BizTalk application?
Many Thanks.Hi,
If you plan on using the deployed pipeline across multiple applications in BizTalk you have two options:
1) The Current Application (in BizTalk Server Administration Console) should have the other application [where the pipeline
is deployed] as reference.
right click the "Current Application" and select "Properties"
on the "Properties" page, left hand side, select "References"
On the right-hand side, use "Add" to add the "Other Application" as a reference.
Refer: How
to Add a BizTalk Assembly to an Application
Doing so will ensure that ALL resources (maps, schemas, orchestrations, send ports, receive locations, rules, etc.) deployed
for "Other Application" are available/reprehensible in "Current Application".
2) Create a common BizTalk application on BizTalk Admin Console and add your custom pipeline assembly in that new application
as a resource. With this, you don't need any other application to be started apart from this common application. Any other application who wants to use this pipeline will refer this common application.
Rachit
Please mark as answer or vote as helpful if my reply does -
Dynamic select list with more than one value?
I am creating a simple CRUD component for our company's Joomla site. This component allows our users to create discount bundles for our cart according to shopper group and products. I've been using Dreamweaver to author the administrator forms and have run into a bit of a problem. All of my forms work properly, but I need to be able to collect two values from each chosen multi-select listing.
Right now, when a user chooses an item under 'products', the site pushes back product_id, one of the variables I need. I would also like product_parent_id to return with each result as well. I need to be able to insert product_parent_id after the user has chosen their desired products. product_parent_id is located in the same table as product_id.
In the end, I need those two values to be pushed to another table, essentially creating a new entry for each product in the bundle. Referenced by ID and parent ID.
Pasted below is the administrator form code. Any suggestions would be wonderful.
Thanks!
<?php require_once('Connections/SQLTest.php'); ?>
<?php
if (!function_exists("GetSQLValueString")) {
function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "")
if (PHP_VERSION < 6) {
$theValue = get_magic_quotes_gpc() ? stripslashes($theValue) : $theValue;
$theValue = function_exists("mysql_real_escape_string") ? mysql_real_escape_string($theValue) : mysql_escape_string($theValue);
switch ($theType) {
case "text":
$theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
break;
case "long":
case "int":
$theValue = ($theValue != "") ? intval($theValue) : "NULL";
break;
case "double":
$theValue = ($theValue != "") ? doubleval($theValue) : "NULL";
break;
case "date":
$theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
break;
case "defined":
$theValue = ($theValue != "") ? $theDefinedValue : $theNotDefinedValue;
break;
return $theValue;
$editFormAction = $_SERVER['PHP_SELF'];
if (isset($_SERVER['QUERY_STRING'])) {
$editFormAction .= "?" . htmlentities($_SERVER['QUERY_STRING']);
if ((isset($_POST["MM_insert"])) && ($_POST["MM_insert"] == "form1")) {
$insertSQL = sprintf("INSERT INTO jos_vm_related_products (product_id, related_product_id) VALUES (%s, %s)",
GetSQLValueString($_POST['products'], "int"),
GetSQLValueString($_POST['products'], "int"));
mysql_select_db($database_SQLTest, $SQLTest);
$Result1 = mysql_query($insertSQL, $SQLTest) or die(mysql_error());
if ((isset($_POST["MM_insert"])) && ($_POST["MM_insert"] == "form1")) {
$insertSQL = sprintf("INSERT INTO jos_vm_relations (discount_type, discount, shopper_group_id) VALUES (%s, %s, %s)",
GetSQLValueString($_POST['amount_off_total'], "text"),
GetSQLValueString($_POST['dollar_amount'], "int"),
GetSQLValueString($_POST['shoper_group'], "int"));
mysql_select_db($database_SQLTest, $SQLTest);
$Result1 = mysql_query($insertSQL, $SQLTest) or die(mysql_error());
if ((isset($_POST["MM_insert"])) && ($_POST["MM_insert"] == "form1")) {
$insertSQL = sprintf("INSERT INTO jos_vm_relations_messages (discount_message) VALUES (%s)",
GetSQLValueString($_POST['discount_message'], "text"));
mysql_select_db($database_SQLTest, $SQLTest);
$Result1 = mysql_query($insertSQL, $SQLTest) or die(mysql_error());
$maxRows_Products = 10;
$pageNum_Products = 0;
if (isset($_GET['pageNum_Products'])) {
$pageNum_Products = $_GET['pageNum_Products'];
$startRow_Products = $pageNum_Products * $maxRows_Products;
mysql_select_db($database_SQLTest, $SQLTest);
$query_Products = "SELECT * FROM jos_vm_product";
$query_limit_Products = sprintf("%s LIMIT %d, %d", $query_Products, $startRow_Products, $maxRows_Products);
$Products = mysql_query($query_limit_Products, $SQLTest) or die(mysql_error());
$row_Products = mysql_fetch_assoc($Products);
if (isset($_GET['totalRows_Products'])) {
$totalRows_Products = $_GET['totalRows_Products'];
} else {
$all_Products = mysql_query($query_Products);
$totalRows_Products = mysql_num_rows($all_Products);
$totalPages_Products = ceil($totalRows_Products/$maxRows_Products)-1;
mysql_select_db($database_SQLTest, $SQLTest);
$query_shopper_group = "SELECT * FROM jos_vm_shopper_group";
$shopper_group = mysql_query($query_shopper_group, $SQLTest) or die(mysql_error());
$row_shopper_group = mysql_fetch_assoc($shopper_group);
$totalRows_shopper_group = mysql_num_rows($shopper_group);
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
</head>
<body>
<form id="form1" name="form1" method="POST" action="<?php echo $editFormAction; ?>">
<p>
<label for="products"></label>
Choose the product(s) you would like to add to your new discount bundle.</p>
<p>
<select name="products" size="1" multiple="MULTIPLE" id="products">
<option value=""></option>
<?php
do {
?>
<option value="<?php echo $row_Products['product_id']?>"><?php echo $row_Products['product_name']?></option>
<?php
} while ($row_Products = mysql_fetch_assoc($Products));
$rows = mysql_num_rows($Products);
if($rows > 0) {
mysql_data_seek($Products, 0);
$row_Products = mysql_fetch_assoc($Products);
?>
</select>
</p>
<p>
<input type="hidden" name="hiddenField" id="hiddenField" />
</p>
<p>Choose the subscriber group that you would like this discount to apply to.</p>
<p>
<select name="shoper_group">
<?php
do {
?>
<option value="<?php echo $row_shopper_group['shopper_group_id']?>"><?php echo $row_shopper_group['shopper_group_name']?></option>
<?php
} while ($row_shopper_group = mysql_fetch_assoc($shopper_group));
$rows = mysql_num_rows($shopper_group);
if($rows > 0) {
mysql_data_seek($shopper_group, 0);
$row_shopper_group = mysql_fetch_assoc($shopper_group);
?>
</select>
</p>
<p>Please enter the dollar amount that you would like to adjust.
<label for="dollar_amount"><br />
</label>
<input type="text" name="dollar_amount" id="dollar_amount" />
</p>
<p>
<input name="amount_off_total" type="hidden" id="amount_off_total" value="amount_off_total" />
</p>
<p>Enter any message you would like the shopper to view during shopping and checkout when this discount is applied.</p>
<p>
<label for="discount_message"></label>
<textarea name="discount_message" id="discount_message" cols="45" rows="5"></textarea>
</p>
<p>
<input type="hidden" name="MM_insert" value="form1" />
</p>
<p>
<input type="submit" name="submit" id="submit" value="Submit" />
</p>
</form>
<br />
</body>
</html>
<?php
mysql_free_result($Products);
mysql_free_result($shopper_group);
?>Thanks guys for you reply , [Cor Ligthert] I post this in Visual basic section, I appreciate your solution [dbasnett],
Thanks for that idea of attribute <Flags> [Blackwood] ,
Dictionary will not work in IF Statement as I want it , also ParamArray tbl() , thanks guys.
Here is the code
Module myModule
<Flags()>
Enum Table As Integer
Table1 = 2
Table2 = 4
Table3 = 8
Table4 = 16
Table5 = 32
End Enum
Public Sub MySub(ByVal Table As Table)
If (Table And Table.Table1) = Table.Table1 Then
MsgBox((Table And Table.Table1))
End If
If (Table And Table.Table2) = Table.Table2 Then
MsgBox((Table And Table.Table2))
End If
If (Table And Table.Table3) = Table.Table3 Then
MsgBox((Table And Table.Table3))
End If
If (Table And Table.Table4) = Table.Table4 Then
MsgBox((Table And Table.Table4))
End If
If (Table And Table.Table5) = Table.Table5 Then
MsgBox((Table And Table.Table5))
End If
End Sub
End Module
Class Myclass
Private sub CallTables()
MySub(Table.Table1 Or Table.Table2)
MySub(Table.Table2 Or Table.Table3 Or Table.Table4)
MySub(Table.Table1 Or Table.Table4 Or Table.Table5)
MySub(Table.Table1 Or Table.Table2 Or Table.Table4 Or Table.Table5)
MySub(Table.Table1 Or Table.Table2 Or Table.Table3 Or Table.Table4 Or Table.Table5)
end sub
end Class -
Send email from SAP with more than one attachment
Hi all,
How can i send email with more than one attachment and different types of document(doc,pdf,etc.) from SAP to external?
Besr regards,
MunurHi,
I use :
CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'
the main problem with different attachemts is to genereate the packing_list.
the packing list is a kind of description of the data table... where ist the start of an image, end, size...
"Creation of the entry for the compressed attachment
objpack-transf_bin = 'X'. " it could be an image
objpack-head_num = lv_head_num_count . " inital 1 each att add 1
objpack-head_start = 1. " fix
objpack-body_start = gv_startnum. " table with attachments 1. line one
objpack-body_num = tab_lines. " how many lines are in the table of attachment
objpack-doc_size = tab_lines * 255. " size of the attachment...
objpack-doc_type = lv_typ . " 'JPG'.
objpack-obj_name = 'ATTACHMENT'.
objpack-obj_descr = lv_stripped_name " name of the JPG
APPEND objpack.
APPEND LINES OF lt_goscontent TO gt_maildata. " data Table...
bestreg
robert -
Function with more than one return value
Hi
Please let me know how to write a function with more than one return value and in what scenario should we go for this option.
Thank youuser12540019 wrote:
Please let me know how to write a function with more than one return value and in what scenario should we go for this option.Yes. And the following is the correct approach (using OUT variables is not!) - you deal with the multiple values as a data structure. This example uses an custom (user-defined) SQL data type as the structure.
SQL> create or replace type TXYcoord is object(
2 x number,
3 y number
4 );
5 /
Type created.
SQL>
SQL>
SQL> create or replace function fooCoordinate( someParam number ) return TXYCoord is
2 begin
3 -- doing some kind of calculation using input parameters
4 -- etc..
5
6 -- returning the multiple return values as a proper data structure
7 return(
8 TXYcoord( 0, 0 )
9 );
10 end;
11 /
Function created.
SQL>
SQL> -- selecting the data structure
SQL> select
2 sysdate,
3 fooCoordinate(123) as XY
4 from dual;
SYSDATE XY(X, Y)
2010-02-01 08:49:23 TXYCOORD(0, 0)
SQL>
SQL> -- selecting the properties/fields of the data structure
SQL> select
2 sysdate,
3 treat( fooCoordinate(123) as TXYcoord).x as X,
4 treat( fooCoordinate(123) as TXYcoord).y as Y
5 from dual;
SYSDATE X Y
2010-02-01 08:49:23 0 0
SQL>
Maybe you are looking for
-
When I tried to deploy the wsp's using managment shell (power shell scripts) everything looks good. When I go and take a look the "manage farm solutions" thru sharepoint central admin, I see the deployment failed in two servers. Error is Could not lo
-
IPod touch 5th generation deleted over 2000 of my songs
Hi. I rarely resort to forums like this to fix a problem but I can't seem to find anyone who's had the same issue. Today I connected my iPod touch 5th generation to my Windows 8.1 PC to sync some songs onto it. I ripped some of them from a CD, others
-
The Question about stock transfer between HU-Management and WM-Management
Hi, There is a scenario about stock transfer between HU-Management and WM-Management storage location. I use transaction MB1B , movement type 313 , 315. After Good issue from WM-management storage location, outbound delivery will genarated, then Pack
-
hi, I have installed apex 2.2.1. Now it says: The structure of the link to the Application Express administration services is as follows: http://host:port/pls/apex/apex_admin from where i can get this port number? kindly help.. Regards, Saad.
-
Validity start and Validity End date in PO
HI gurus can you plz tell me how to activate validity start and Validity End date in PO Neha