How to pass another attribute with the attributes in the select
i have multi select that will be generated from the database but how do a pass a parameter associated on of the selected item other then the one selected:
for instance if I wanted to pass the capital of the state as hidden if a select any of these selected states..
<html:select property="state" multiple="true">
<option value="Arizona">Arizona</option>
<option value="Colorado">Colorado</option>
<option value="Idaho">Idaho</option>
<option value="Oregon">Oregon</option>
</html:select>
You are right, I changed the code to what you said but how do I pass another value through my fonction so I can get Result1 and Result2?
is it
var a = this.getField("OPE003.EVEN.1.MIP");
var b = this.getField("OPE003.EVEN.2.MIP");
var result1 = Mip(a);
var result2 = Mip(b);
var c = new Array[result1, result2]
Similar Messages
-
How to send an email with an attachment to the customers email address.
Hi friends,
How to send an email with an attachment to the customers email address.
the attachment will be in doc format.
Having an Header
the data which i am sending must be in a TABLE format
with 5 columns.
and each column must have a column heading
Please guide me.
Thanks in Advance,
Ganesh.*& Report ZEMAIL_ATTACH *
*& Example of sending external email via SAPCONNECT *
REPORT ZEMAIL_ATTACH .
TABLES: ekko.
PARAMETERS: p_email TYPE somlreci1-receiver .
*Here get the values of mail from the table adn6 for the customer address.
TYPES: BEGIN OF t_ekpo,
ebeln TYPE ekpo-ebeln,
ebelp TYPE ekpo-ebelp,
aedat TYPE ekpo-aedat,
matnr TYPE ekpo-matnr,
END OF t_ekpo.
DATA: it_ekpo TYPE STANDARD TABLE OF t_ekpo INITIAL SIZE 0,
wa_ekpo TYPE t_ekpo.
TYPES: BEGIN OF t_charekpo,
ebeln(10) TYPE c,
ebelp(5) TYPE c,
aedat(8) TYPE c,
matnr(18) TYPE c,
END OF t_charekpo.
DATA: wa_charekpo TYPE t_charekpo.
DATA: it_message TYPE STANDARD TABLE OF solisti1 INITIAL SIZE 0
WITH HEADER LINE.
DATA: it_attach TYPE STANDARD TABLE OF solisti1 INITIAL SIZE 0
WITH HEADER LINE.
DATA: t_packing_list LIKE sopcklsti1 OCCURS 0 WITH HEADER LINE,
t_contents LIKE solisti1 OCCURS 0 WITH HEADER LINE,
t_receivers LIKE somlreci1 OCCURS 0 WITH HEADER LINE,
t_attachment LIKE solisti1 OCCURS 0 WITH HEADER LINE,
t_object_header LIKE solisti1 OCCURS 0 WITH HEADER LINE,
w_cnt TYPE i,
w_sent_all(1) TYPE c,
w_doc_data LIKE sodocchgi1,
gd_error TYPE sy-subrc,
gd_reciever TYPE sy-subrc.
*START_OF_SELECTION
START-OF-SELECTION.
Retrieve sample data from table ekpo
PERFORM data_retrieval.
Populate table with detaisl to be entered into .xls file
PERFORM build_xls_data_table.
*END-OF-SELECTION
END-OF-SELECTION.
Populate message body text
perform populate_email_message_body.
Send file by email as .xls speadsheet
PERFORM send_file_as_email_attachment
tables it_message
it_attach
using p_email
'Example .xls documnet attachment'
'DOC'
'filename'
changing gd_error
gd_reciever.
Instructs mail send program for SAPCONNECT to send email(rsconn01)
PERFORM initiate_mail_execute_program.
*& Form DATA_RETRIEVAL
Retrieve data form EKPO table and populate itab it_ekko
FORM data_retrieval.
SELECT ebeln ebelp aedat matnr
UP TO 10 ROWS
FROM ekpo
INTO TABLE it_ekpo.
ENDFORM. " DATA_RETRIEVAL
*& Form BUILD_XLS_DATA_TABLE
Build data table for .xls document
FORM build_xls_data_table.
CONSTANTS: con_cret TYPE x VALUE '0D', "OK for non Unicode
con_tab TYPE x VALUE '09'. "OK for non Unicode
*If you have Unicode check active in program attributes thnen you will
*need to declare constants as follows
*class cl_abap_char_utilities definition load.
*constants:
con_tab type c value cl_abap_char_utilities=>HORIZONTAL_TAB,
con_cret type c value cl_abap_char_utilities=>CR_LF.
CONCATENATE 'EBELN' 'EBELP' 'AEDAT' 'MATNR'
INTO it_attach SEPARATED BY con_tab.
CONCATENATE con_cret it_attach INTO it_attach.
APPEND it_attach.
LOOP AT it_ekpo INTO wa_charekpo.
CONCATENATE wa_charekpo-ebeln wa_charekpo-ebelp
wa_charekpo-aedat wa_charekpo-matnr
INTO it_attach SEPARATED BY con_tab.
CONCATENATE con_cret it_attach INTO it_attach.
APPEND it_attach.
ENDLOOP.
ENDFORM. " BUILD_XLS_DATA_TABLE
*& Form SEND_FILE_AS_EMAIL_ATTACHMENT
Send email
FORM send_file_as_email_attachment tables pit_message
pit_attach
using p_email
p_mtitle
p_format
p_filename
p_attdescription
p_sender_address
p_sender_addres_type
changing p_error
p_reciever.
DATA: ld_error TYPE sy-subrc,
ld_reciever TYPE sy-subrc,
ld_mtitle LIKE sodocchgi1-obj_descr,
ld_email LIKE somlreci1-receiver,
ld_format TYPE so_obj_tp ,
ld_attdescription TYPE so_obj_nam ,
ld_attfilename TYPE so_obj_des ,
ld_sender_address LIKE soextreci1-receiver,
ld_sender_address_type LIKE soextreci1-adr_typ,
ld_receiver LIKE sy-subrc.
ld_email = p_email.
ld_mtitle = p_mtitle.
ld_format = p_format.
ld_attdescription = p_attdescription.
ld_attfilename = p_filename.
ld_sender_address = p_sender_address.
ld_sender_address_type = p_sender_addres_type.
Fill the document data.
w_doc_data-doc_size = 1.
Populate the subject/generic message attributes
w_doc_data-obj_langu = sy-langu.
w_doc_data-obj_name = 'SAPRPT'.
w_doc_data-obj_descr = ld_mtitle .
w_doc_data-sensitivty = 'F'.
Fill the document data and get size of attachment
CLEAR w_doc_data.
READ TABLE it_attach INDEX w_cnt.
w_doc_data-doc_size =
( w_cnt - 1 ) * 255 + STRLEN( it_attach ).
w_doc_data-obj_langu = sy-langu.
w_doc_data-obj_name = 'SAPRPT'.
w_doc_data-obj_descr = ld_mtitle.
w_doc_data-sensitivty = 'F'.
CLEAR t_attachment.
REFRESH t_attachment.
t_attachment[] = pit_attach[].
Describe the body of the message
CLEAR t_packing_list.
REFRESH t_packing_list.
t_packing_list-transf_bin = space.
t_packing_list-head_start = 1.
t_packing_list-head_num = 0.
t_packing_list-body_start = 1.
DESCRIBE TABLE it_message LINES t_packing_list-body_num.
t_packing_list-doc_type = 'RAW'.
APPEND t_packing_list.
Create attachment notification
t_packing_list-transf_bin = 'X'.
t_packing_list-head_start = 1.
t_packing_list-head_num = 1.
t_packing_list-body_start = 1.
DESCRIBE TABLE t_attachment LINES t_packing_list-body_num.
t_packing_list-doc_type = ld_format.
t_packing_list-obj_descr = ld_attdescription.
t_packing_list-obj_name = ld_attfilename.
t_packing_list-doc_size = t_packing_list-body_num * 255.
APPEND t_packing_list.
Add the recipients email address
CLEAR t_receivers.
REFRESH t_receivers.
t_receivers-receiver = ld_email.
t_receivers-rec_type = 'U'.
t_receivers-com_type = 'INT'.
t_receivers-notif_del = 'X'.
t_receivers-notif_ndel = 'X'.
APPEND t_receivers.
CALL FUNCTION 'SO_DOCUMENT_SEND_API1'
EXPORTING
document_data = w_doc_data
put_in_outbox = 'X'
sender_address = ld_sender_address
sender_address_type = ld_sender_address_type
commit_work = 'X'
IMPORTING
sent_to_all = w_sent_all
TABLES
packing_list = t_packing_list
contents_bin = t_attachment
contents_txt = it_message
receivers = t_receivers
EXCEPTIONS
too_many_receivers = 1
document_not_sent = 2
document_type_not_exist = 3
operation_no_authorization = 4
parameter_error = 5
x_error = 6
enqueue_error = 7
OTHERS = 8.
Populate zerror return code
ld_error = sy-subrc.
Populate zreceiver return code
LOOP AT t_receivers.
ld_receiver = t_receivers-retrn_code.
ENDLOOP.
ENDFORM.
*& Form INITIATE_MAIL_EXECUTE_PROGRAM
Instructs mail send program for SAPCONNECT to send email.
FORM initiate_mail_execute_program.
WAIT UP TO 2 SECONDS.
SUBMIT rsconn01 WITH mode = 'INT'
WITH output = 'X'
AND RETURN.
ENDFORM. " INITIATE_MAIL_EXECUTE_PROGRAM
*& Form POPULATE_EMAIL_MESSAGE_BODY
Populate message body text
form populate_email_message_body.
REFRESH it_message.
it_message = 'Please find attached a list test ekpo records'.
APPEND it_message.
endform. " POPULATE_EMAIL_MESSAGE_BODY
regards,
venkat. -
How I pass a cluster with array of various data type (double, I32, string)
I have to pass from a VI to a Microsoft Visual C++ DLL, a cluster with some arrays of various data type. The problem is with Double array, that during Visual C debug is incorrect:the dimension is correct passed, but not array data. In the DLL I have inserted the C code genereted by LabVIEW. I tried to pass a cluster of only one array of double, and the results is the same. Then, I tried to pass a cluster with scalar number and the result is correct in only one case. If the double data is the first in the cluster, the result is correct; if the first is another data type, such as integer or boolean, the double data is incorrect during the debug of the DLL.
This is the code of my DLL:
// LabViewP
aram.cpp : Defines the entry point for the DLL application.
#include "stdafx.h"
#include "LabViewParam.h"
#include "extcode.h"
BOOL APIENTRY DllMain( HANDLE hModule,
DWORD ul_reason_for_call,
LPVOID lpReserved
switch (ul_reason_for_call)
case DLL_PROCESS_ATTACH:
case DLL_THREAD_ATTACH:
case DLL_THREAD_DETACH:
case DLL_PROCESS_DETACH:
break;
return TRUE;
typedef struct {
long dimSize;
double elt[1];
} TD2;
typedef TD2 **TD2Hdl;
typedef struct {
TD2Hdl elt1;
} TD1;
// This is an example of an exported variable
LABVIEWPARAM_API int nLabViewParamPass=0;
// This is an example of an exported function.
LABVIEWPARAM_API int LabViewParamPass(TD1 *pparam)
double parametro;
int i;
for (i=0;i<(**(*pparam).elt1).dimSize;i++)
parametro=(**(*pparam).elt1).elt[i];
return 42;
// This is the constructor of a class that has been exp
orted.
// see LabViewParam.h for the class definition
CLabViewParam::CLabViewParam()
return;
I use LabVIEW 7.0 and Windows XP.
Sorry for my english.
Thanks to every one for your suggestions.
Filippo> I have to pass from a VI to a Microsoft Visual C++ DLL, a cluster with
> some arrays of various data type. The problem is with Double array,
> that during Visual C debug is incorrect:the dimension is correct
> passed, but not array data. In the DLL I have inserted the C code
> genereted by LabVIEW. I tried to pass a cluster of only one array of
> double, and the results is the same. Then, I tried to pass a cluster
> with scalar number and the result is correct in only one case. If the
> double data is the first in the cluster, the result is correct; if the
> first is another data type, such as integer or boolean, the double
> data is incorrect during the debug of the DLL.
It is hard tell for sure, but you might have alignment problems. The
key symptom
is that you can pass a cluster of big and small fine, but
small big doesn't pass correctly. You might also test this by seeing
what the size of your struct is. For Boolean and Double, sizeof()
should return nine bytes no matter what order the array is in. If you
are getting different sizes, you have two options. You can either order
them such that the sizes work, or you can build the EXE or a wrapper DLL
so that the alignment matches LV's native alignment.
Greg McKaskle -
How can I start anew with Photos and clear the (minimal) stuff it has uploaded
I've about had it up to here with this new Photos scheme. I reorganised my Aperture libraries on both my iMac and MBA in preparation for this, delayed turning Photos on for a couple of days until I thought everything was ready based upon the limited advice that was out there, and then got stuck in an endless loop of "uploading" and "preparing" every time I opened Photos. There are 19,975 images in my Aperture library on the iMac. I was stuck at Uploading at anywhere between that number and 19,000 with no progress after hours of waiting. I tried all the tricks mentioned here including re booting, restarting the app, repairing/rebuilding the database, killing the "cloudd" process, etc.today Today when I restarted Photos, it now said I had 23,775 images to upload- 4000
more than I have-and of course it got stuck there, like it has for the last week.
I copied the previous Aperture library (pre Photos migration)back to my iMac and opened it in Aperture. Thankfully, all the photos I had taken on my iPhone this week during this Photos clusterphuck transition were in the Aperture Stream so I didn't lose any of those. I'm willing to give this whole thing one more shot. So i need some advice. How can I start anew with Photos and clear the (minimal) stuff it has uploaded (about 6000 of 19,000 images in the last 7 days) ? If I simply delete the Photos.photolibrary file will that do the trick and lt me start a new fresh library using?
<Re-Titled By Host>How can I start anew with Photos and clear the (minimal) stuff it has uploaded (about 6000 of 19,000 images in the last 7 days) ? If I simply delete the Photos.photolibrary file will that do the trick and lt me start a new fresh library using?
It is hard to say from your post, why the migration did not succeed in your case.
by "stuck on upload" do you mean, you opened the Aperture library in Photos, and Photos converted it to a Photo Library, and then the upload to iCloud Photo Library did hang? Or did already the upgrade to the Photo Library fail?
If you want the Aperture library to upload to iCloud Photo Library, it needs to be on a disk formatted MacOS Extended (Journaled) and the original image files must not be referenced. Referenced originals will not upload.
Also, the upload may hang, if you do not have enough free iCloud storage, orr if one of the videos or photos in your library is in an unsupported format or corrupted.
To start over, try to repair and rebuild the Aperture library before opening it in Photos. Try all Aperture Library First Aid options - starting with repairing the permissions. (Repairing and Rebuilding Your Aperture Library: Aperture 3 User Manual)
If I simply delete the Photos.photolibrary file will that do the trick and lt me start a new fresh library using?
You will have to delete the photos that are already in icloud too; otherwise you are risking duplicates.
Can you launch Photos at all? If yes, delete all photos in Photos and empty the Recently Deleted album. Wait for the deletion to sync to iCloud. Then delete the Photos.photolibrary. -
How can i share documents with different users on the same mac?
How can i share documents with different users on the same mac?
Shared how? The other users can read the documents or you all can read and write the documents?
The first is easy just place the documents in /Users/Shared anyone can access the files there and the other users will be able to read them.
The second is a bit trickier. -
How do i share music with 2 iphones using the same apple id?
how do i share music with 2 iphones using the same apple id?
Sync them both to the same iTunes music library. You can also automatically download purchased music to both by going to Settings>iTunes & App Stores and turning Music to On under Automatic Downloads. If you music is in multiple computers, you can enable Home sharing to share your music library across multiple devices (see http://support.apple.com/kb/HT3819).
-
How can I add "Edit with Photoshop CS5" to the Edit With options?
How can I add "Edit with Photoshop CS5" to the Edit With options?
I think it has something to do with the order in which the PSE and PS are installed on your machine.
For me, I can see option for editing in photoshop both in edit menu and from the action bar. I probably had Photoshop installed on my system before PSE -
How do I split pages with Adobe CreatePDF, is the funtionality part of the software?
How do I split pages with Adobe CreatePDF, is the funtionality part of the software?
No, it is not.
-
How to pass a value to path attribute of jpf:forward at run time.
Hi all,
I have a public variable in my controller and I am getting a value from my jsp
and assigning it to that variable.
Now the question is how to pass that variable value to path attribute of jpf:forward.
@jpf:forward name="success" path="promoLink"
Here in this case promoLink is a public variable in my controller.
Pls suggest.
Thanks.Hi Vijay,
You posted this a while ago -- not sure if you've found a solution already,
but in case you haven't...
If you want to construct the Forward dynamically, you can do it without
annotations. There are constructors that take URI and URL, which you can
use like this:
* @jpf:action
public Forward goSomewhere()
return new Forward( new URI( promoLink ) );
Does this address your question?
Rich
"Vijay Bijjargi" <[email protected]> wrote in message
news:3f5739f8$[email protected]..
>
Hi all,
I have a public variable in my controller and I am getting a value from myjsp
and assigning it to that variable.
Now the question is how to pass that variable value to path attribute ofjpf:forward.
>
@jpf:forward name="success" path="promoLink"
Here in this case promoLink is a public variable in my controller.
Pls suggest.
Thanks. -
How to query a dimension with mulilingua attributes
I have creates a dimension having multilingual attributes. I would like to know how can I access these attributes.
For Example: the dimension name is EMPLOYEE, and the attribute is EMP_NAME both in English as well as ARABIC or FRENCH. Now how can I populate these columns in my application through quering these vies.The database returns values based on the language of the client. E.g., if the client is Arabic and Arabic is a language of the analytic workspace (AW), then the DB will automatically return the Arabic attribute values.
You add a language to the analytic workspace from the Languages node on the object tree. After than is done, you can provide translated versions of the model (e.g., the short label, long table and description of all the dimension, levels, attributes, cubes, measures, etc) in the languages table.
Attributes are made multilingual by choosing the "Attribute values are multilingual" option on the attribute and mapping the attribute to columns in dimension tables with the appropriate language. -
How to pass a function with the same argument multiple times and return values in variables?
The problem I have is I created a function which really is some kind of database. Basically a bunch of:
if (a.value == "this number"){
b.value = "this expression";
Inside the form are 2 dropdown lists that return numerical values which I want to process through that function and put the return value inside separate variables.
var a = this.getField("OPE003.EVEN.1.MIP");
Mip(a);
var result1 = Mip();
I tried to overwriting *a* to process the second field
a = this.getField("OPE003.EVEN.2.MIP");
Mip(a);
var result2 = Mip();
result1 and result2 are put in an array, joined as a string.
Doing so, I always get the last processing twice as the final result.
Can I use a function as a batch processing tool that way?You are right, I changed the code to what you said but how do I pass another value through my fonction so I can get Result1 and Result2?
is it
var a = this.getField("OPE003.EVEN.1.MIP");
var b = this.getField("OPE003.EVEN.2.MIP");
var result1 = Mip(a);
var result2 = Mip(b);
var c = new Array[result1, result2] -
How to genrate AUditLog Report with custom Attribute
Hi,
I would like to a add a custom search parameter in audit Log report.Please suggest solution for the same.
Thanks in AdvanceIt's unclear exactly what you are asking for, but you can set up an auditlog report to find specific kinds of data changes.
Internally, attribute changes are saved in the format:
BEFORE: ATTRIBUTE="ORIG VALUE"
AFTER: ATTRIBUTE="FINAL VALUE"
As long as you know the ATTRIBUTE name and the value transition you are looking for, you can set up the report to check for attribute changes. E.g.,
[x] Attribute Changes [contains] BEFORE: ASSIGNEDLHPOLICY="POLICY1"as the condition will find all cases where account policies changed from being "POLICY1" to some other policy. (Attributes are only listed in the logs if they changed).
Not sure if that's the kind of custom search parameter you are looking for though. -
How to pass a value from jspx page to the managed bean
hi,
i have created a jspx page and manages bean with page flow scope..
in my jspx page i am searching a employee record from the data base . and getting entire employee details including 'status' as a search result.
here i want to pass the value of 'status ' field to the managed bean variable called 'stval'.
can anybody suggest any solution?.......As per the details provided in the post above, when the user clicks on the search in the af:query, the results are populated in the table. And you are interested in getting the value of particular column. This could be done by having the custom row selection listener to get the value of the current row (selected row in the table).
1) Have a custom selection listener:
<af:table value="#{bindings.EmpDeptVO.collectionModel}" var="row"
rows="#{bindings.EmpDeptVO.rangeSize}"
emptyText="#{bindings.EmpDeptVO.viewable ? 'No data to display.' : 'Access Denied.'}"
fetchSize="#{bindings.EmpDeptVO.rangeSize}"
rowBandingInterval="0"
rowSelection="single" id="t1"
partialTriggers=":::qryId1 ::ctb1 ::commandToolbarButton1"
columnStretching="column:c1"
styleClass="AFStretchWidth" columnSelection="multiple"
first="0" contentDelivery="immediate" autoHeightRows="10"
binding="#{pageFlowScope.ExampleBean.searchResultsTable}"
*selectionListener="#{pageFlowScope.ExampleBean.rowSelected}">*
2) In the method, set the current row programmatically:
ADFUtil.invokeEL("#{bindings.EmpDeptVO.collectionModel.makeCurrent}",
new Class[] { SelectionEvent.class },
new Object[] { selectionEvent });
3) Get the current row and get the required attribute values and set it in any of the variables in the managed bean:
Row selectedRow =
(Row)ADFUtil.evaluateEL("#{bindings.EmpDeptVOIterator.currentRow}");
String status = selectedRow.getAttribute("Status");
Thanks,
Navaneeth -
How to use AttributeHierarchyOptimizedState property with Primary Key of the Dimension?
I'm reading the article about increasing SSAS performance. http://www.mssqltips.com/sqlservertip/2567/ssas--best-practices-and-performance-optimization--part-3-of-4/
I would like to increase processing performance of Customer Dimension with CustomerID as the primary key. It is a good practice to set AttributeHierarchyOptimizedState to NotOptimized to CustomerID attribute. What are the implications to the query
performance?
Please advise.Hi,
Since the CustomerID is the primary key (surrogate key) and the usual practice is to hide the surrogate keys in client tools. It is the best practice to set the AttributeHierarchyOptimizedState to NotOptimized to CustomerID attribute. As specified
in the article SSAS will not create Bitmap indexes on top of that attribute and it saves a lot of processing time and decreases the cube size.
Regards,
Venkata Koppula -
How to pass tag name and value dynamically in the output of PCo notification?
Hi,
I have a requirement to develop such a scenario where there can be multiple no of tags in PCo (Say 10) but there will be single notification to push the tag name when the value got changed and the changed value to MII. for any value change for any of the tag, the notification will be trigger. So As per my knowledge I have to pass the tag name and value dynamically in the "output" tab of the notification. But need your support to find out how to pass them dynamically.
Thanks in advance.
Regards,
SumanHi Suman/Jeedesh,
As per Pco notification, it will trigger whenever any of the tag value changes in Agent instance subscription items.
For above issue, My suggestion
1. Create DB table name TAGLIST with 200 tags as rows in columns (Tagname, TagValue)
2. Based on notification trigger, create a transaction and update values w.r.t TagNames in above table
3. Next time, when notification trigger with fresh value for any of the tag, cross check with existing TagName with Value and update in DB table.
4. And in the mean time, send those Tag details vie mail trigger or as per requirement
Instead of creating 200 notification, above is a just alternate way suggestion to achieve dynamic tag value change notification.
Hope it might solve your problem
Regards,
Praveen Reddy
Maybe you are looking for
-
How to "save" custom objects in keynote
I've created custom art / objects in keynote that I'd like to reuse and quickly insert into presentations. Is there a way to "store" or "save" the custom artwork in my version of keynote for quick recall?
-
Hi We are trying to do an Security groups import using LCM, but getting the following errors and the accessing permissions are not updating. Errors occured during syncrhonization: [com.hyperion.planning.HspRuntimeException: Cannot delete the followin
-
I have four email accounts in Mac Mail. Yesterday, two of the accounts on the same server quit working. The account names were grayed-out and there was a tilde (~) to the right. I checked the settings and password and everything was as before -- but
-
I just upgraded to Aperture 3.3.1 and the setting to set the white balance to a certain temperature in K has gone... This is how it used to look: http://documentation.apple.com/en/aperture/usermanual/index.html#chapter=18%26se ction=8%26tasks=true bu
-
Can't find CD, didn't register
I have a computer with Acrobat 9 Standard installed and want to deactivate it and install it on another computer. Problem is I have many computers and never registered my Software and S/N with Adobe. Therefore I can't go to the website and look up m