How to setting Content Presenter?
I dont want the message show up when I move the mouse on the link, how to setting Content Presenter?
[https://communities.oracle.com/portal/server.pt/gateway/PTARGS_0_193021_269_216_224_43/http%3B/collaborationrs%3B7005/collab/docman/download/584917/0/0/0/]
Hi Yannick,
Going through the links which you have provided and will come back to you I face any problem.
Before going through the link I would like to know how to get content from ucms from specifying a query rather than getting from the entire folder.
Yes I am aware similar to the folder option you can specify a query but need help on writing a query and what parameters need to be mentioned in the query.
One more doumb question about where content presenter taskflow is present in the jdev so that I can drag and drop on my portal page.
Similar Messages
-
How to set Content Set from 'Parallel' to 'Sequential' in Report Manager?
Dear All,
How to set Content Set from 'Parallel' to 'Sequential' in Report Manager?
Thanks,
JackieSorry, Please ignore, thanks...
-
I download itext for convert jsp to PDF. How to set content type for PDF.
I download itext for convert jsp to PDF. How to set content type for PDF. I try
<%@ page contentType = "application/pdf;charset=TIS-620" %>
, but the page does not PDF.
Thank.PDF files are usually binary files, JSPs are not well-suited for binary content.
(If you download the result of your JSP you'll see that it is not a valid PDF file; it will have probably a lot of whitespace and linefeeds, that will choke your PDF reader.). The first few characters must be
"%PDF-" without whitespace.
You can try using PDF files encoded as text - check if you can use text-encoded PDFs in iText.
Try using a Servlet instead. -
How to configure content presenter taskflow parameters both design time
Hi,
I want to add content presenter taskflow to my portal page and want to configure taskflow parameters at both design and runtime?
So would like to know how to add content presenter taskflow(not content) to my portal page and how to configure parameters at both design and runtime?Hi Yannick,
Going through the links which you have provided and will come back to you I face any problem.
Before going through the link I would like to know how to get content from ucms from specifying a query rather than getting from the entire folder.
Yes I am aware similar to the folder option you can specify a query but need help on writing a query and what parameters need to be mentioned in the query.
One more doumb question about where content presenter taskflow is present in the jdev so that I can drag and drop on my portal page. -
How to set content-type for outbound mail in BCS
Hey everybody,
can anybody please give me a hint how to set the content-type for outbound email in ABAP using BCS to send mail.
By default the content tyoe is set to text/html. I need other.
Best regards
Roman//add related mutip-part to combine parts
MimeMultipart multipart = new MimeMultipart("related");
//attach a pdf
messageBodyPart = new MimeBodyPart();
fds = new FileDataSource("h:/something.pdf");
messageBodyPart.setDataHandler(new DataHandler(fds));
messageBodyPart.setFileName(fds.getName());
multipart.addBodyPart(messageBodyPart);
//add multipart to the message
message.setContent(multipart);
//send message
Transport.send(message); -
How to use content presenter with a multilanguage site
I would you like to know if it's possible to manage a content presenter with multi language ? Normally, if i would show a content with a template view , i choose a UCM content to the parameter interface of the content presenter. Anybody has found a solution to found automatically the right content when i choose a another language. For example, i create a content presenter associated to a English content on UCM , is it possible when the user changes his language to spanish for example to have the related content in spanish or not ?
There are a few options to do this but it requires quite a lot of customizations. Unfortunatly there is no out of the box solutoins to tackle this issue.
First of all you have to make sure the content in UCM is related to each other so when you have a document in english, you can easily find the same document in another language. This can be based upon additional meta fields or by using the related content component.
You probably also want to setup a workflow so when an english (or any language) document is checked in, the workflow kicks in and notify some other users so they know they have to translate that document.
In Webcenter you have to make sure that the content presenter can show content based upon language. Normaly you can't realy build dynamic queries in the content presenter and when you select all the content from a folder, there is no way to add filters based upon language.
In order to solve this issue, you can use the personalization server. By creating a scenario that takes the language as an input parameter (or by just querying the profile) you can build a dynamic CMIS query that can be used to power the content presenter. When you have configured the personalization server and create a scenario, you will be able to select that scenrio in the content presenter instead of selecting items or folder.
It's quite a bit of work to make it multilingual but currently this is the only solution i have found... -
How to set content type while sending an email?
Hello,
I want to set content type text/html while send an email using org.apache.commons.httpclient api. I am using MultipartPostMethod method. and i am set using object of multipartpostmethod like post.
and post.setRequestHeader("Content-Type","text/html").
but it wont work.
so please give me a proper solution.
example::
MultipartPostMethod post = new MultipartPostMethod("url");
post.addParameter("msgbody","html message");
post.setRequestHeader("Content-Type","text/html");
Regards,
Bhavesh KharwaActually, I'm writing a "HashMap" from servlet to applet. I have used your suggested content type "application/octet-stream" and another "appication/x-java-serialized-object" to try it. But in applet side, when I use (HashMap)in.readObject(), it always gives me a exception as:"java.util.HashMap; IllegalAccessException". Why?
Thankd. -
Urgent: How to set content type on upload depending on target folder?
Hi,
i have to set the content type of a file uploaded via SMB depending on the folder the file is placed in. All files placed below a certain root directory have to be of my custom content type. All others should be stored as documents of type "Document". Is there an easy way to accomplish this task? I can't assume any specific file extensions and can therefore not register my custom content type to that extension.
Any hints are welcome.
Thanks.Hi,
i have to set the content type of a file uploaded via SMB depending on the folder the file is placed in.All files placed below a certain root directory have to be of my custom content type.
+++ Use an agent to verify the name and extension using the IfsEvent class and EVENTTYPE_CREATEINSTANCE
All others should be stored as documents of type "Document". Is there an easy way to accomplish this task?
+++ Those that aren't your custom content type move to a different folder using the agent.
I can't assume any specific file extensions and can therefore not register my custom content type to that extension.
+++I've found that registering content type only really affects things like how a browser knows what kind of file it's downloading/looking at (mime type) or how a renderer knows how to render it.
Any hints are welcome.
Thanks. -
How to set content of a dynamically created tab in a dynamically created tabstrip
Hi All,
I have a requirement where the whole layout is determined in run time according to a ztable values. I have created a tabstrip, inserted tabs to it, created elements (link to action) that has to be inserted into the different tabs created dynamically. BUt I am getting a dump when i try to do so.. the problem is with inserting the container to the tab. I get Null object reference. PFB the code. This has to be done urgently. Help is highly appreciated. TIA.
method wddomodifyview .
data lr_uielement_container type ref to cl_wd_uielement_container.
data lr_tabstrip type ref to cl_wd_tabstrip.
data lrs_tabstrip type ref to cl_wd_tabstrip.
data lr_matrix_head_data type ref to cl_wd_matrix_head_data.
data lr_tab type ref to cl_wd_tab.
data lv_caption type ref to cl_wd_caption.
data it_zps_reports_port type standard table of zps_reports_port.
data wa_zps_reports_port like line of it_zps_reports_port.
data lv_flag type c.
data lv_text type string.
data lv_link_text type string.
data lr_linktoaction type ref to cl_wd_link_to_action.
data lr_lta_element type ref to cl_wd_uielement.
data lr_scroll_container type ref to cl_wd_scroll_container.
data lr_trans_cont type ref to cl_wd_transparent_container.
data lr_id type string value 'LNK'.
data lr_count type num value 0.
data lr_id_d type string.
data lo_nd_link_to_action type ref to if_wd_context_node.
data lo_el_link_to_action type ref to if_wd_context_element.
data ls_link_to_action type wd_this->element_link_to_action.
data lv_textt type string.
data lo_node type ref to if_wd_context_node.
data lo_nd_info type ref to if_wd_context_node_info.
data:lt_valueset type wdr_context_attr_value_list ,
l_value type wdr_context_attr_value.
data ld_tabstrip type ref to cl_wd_tabstrip.
data: ld_container type ref to cl_wd_uielement_container,
ld_vc type ref to cl_wd_view_container_uielement.
if first_time eq abap_true.
select * from zps_reports_port into corresponding fields of table it_zps_reports_port order by tabx.
sort it_zps_reports_port.
************creation of tabstrip dynamically
lr_uielement_container ?= view->get_element( id = 'ROOTUIELEMENTCONTAINER' ).
call method cl_wd_tabstrip=>new_tabstrip
exporting
id = 'TBS'
receiving
control = lr_tabstrip.
lr_matrix_head_data = cl_wd_matrix_head_data=>new_matrix_head_data(
element = lr_tabstrip
lr_tabstrip->set_layout_data( the_layout_data = lr_matrix_head_data ).
lr_uielement_container->add_child(* index = index
the_child = lr_tabstrip
lo_node = wd_context->get_child_node( 'LINK_TO_ACTION' ).
lo_nd_info = lo_node->get_node_info( ).
lo_nd_link_to_action = wd_context->get_child_node( name = wd_this->wdctx_link_to_action ).
lo_el_link_to_action = lo_nd_link_to_action->get_element( ).
loop at it_zps_reports_port into wa_zps_reports_port.
*****addition of tab for every new tab.
at new tabx.
lv_flag = abap_true.
endat.
if lv_flag = abap_true.
if wa_zps_reports_port-tabx = 1.
lv_text = 'Billing reports'.
else.
lv_text = 'Monthly closing reports'.
endif.******Addition of new tab
call method cl_wd_caption=>new_caption
exporting
text = lv_text
receiving
control = lv_caption.
call method cl_wd_tab=>new_tab
exporting
enabled = 'X'
has_content_padding = 'X'
receiving
control = lr_tab.
lr_tab->set_header( lv_caption ).
lr_tabstrip->add_tab( the_tab = lr_tab ).
clear lv_flag.
endif.
lr_count = lr_count + 1.
concatenate lr_id lr_count into lr_id_d.
lv_textt = wa_zps_reports_port-trans_code.
call method cl_wd_link_to_action=>new_link_to_action
exporting
id = lr_id_d
on_action = 'ON_ACTION'
text = lv_textt
receiving
control = lr_linktoaction.
lr_matrix_head_data = cl_wd_matrix_head_data=>new_matrix_head_data(
element = lr_linktoaction
lr_linktoaction->set_layout_data( the_layout_data = lr_matrix_head_data ).
lr_linktoaction->set_layout_data( the_layout_data = lr_matrix_head_data ).** lr_uielement_container->add_child(** index = lr_ind* the_child = lr_linktoaction* ).
call method cl_wd_scroll_container=>new_scroll_container
receiving
control = lr_scroll_container
lr_scroll_container->add_child( lr_linktoaction ).
lr_tab->set_content( lr_trans_cont ). "im getting dump after the looping is done and the end method is executed
endloop.
endif.endmethod.HI SAYAN,
this is the dump i am getting.
Category ABAP Programming Error
Runtime Errors OBJECTS_OBJREF_NOT_ASSIGNED
ABAP Program CL_NW7_VIEW_ELEMENT_ADAPTER===CP
Application Component BC-WD-ABA-REN
Date and Time 18.05.2012 15:44:42
|Short text |
| Access via 'NULL' object reference not possible. |
|What happened? |
| Error in the ABAP Application Program |
| |
| The current ABAP program "CL_NW7_VIEW_ELEMENT_ADAPTER===CP" had to be |
| terminated because it has |
| come across a statement that unfortunately cannot be executed. |
|What can you do? |
| Note down which actions and inputs caused the error. |
| |
| |
| To process the problem further, contact you SAP system |
| administrator. |
| |
| Using Transaction ST22 for ABAP Dump Analysis, you can look |
| at and manage termination messages, and you can also |
| keep them for a long time. |
|Error analysis |
| You attempted to use a 'NULL' object reference (points to 'nothing') |
| access a component (variable: " "). |
| An object reference must point to an object (an instance of a class) |
| before it can be used to access components. |
| Either the reference was never set or it was set to 'NULL' using the |
| CLEAR statement. |
|How to correct the error |
| |
| |
| If the error occures in a non-modified SAP program, you may be able to |
| find an interim solution in an SAP Note. |
| If you have access to SAP Notes, carry out a search with the following |
| keywords: |
| |
| "OBJECTS_OBJREF_NOT_ASSIGNED" " " |
| "CL_NW7_VIEW_ELEMENT_ADAPTER===CP" or "CL_NW7_VIEW_ELEMENT_ADAPTER===CM008" |
| "CREATE_NW7_BY_VIEW_ELEMENT" |
| |
| If you cannot solve the problem yourself and want to send an error |
| notification to SAP, include the following information: |
| |
| 1. The description of the current problem (short dump) |
| |
| To save the description, choose "System->List->Save->Local File |
| (Unconverted)". |
| |
| 2. Corresponding system log |
| |
| Display the system log by calling transaction SM21. |
| Restrict the time interval to 10 minutes before and five minutes |
| after the short dump. Then choose "System->List->Save->Local File |
| (Unconverted)". |
| |
| 3. If the problem occurs in a problem of your own or a modified SAP |
| program: The source code of the program |
| In the editor, choose "Utilities->More |
| Utilities->Upload/Download->Download". |
| |
| 4. Details about the conditions under which the error occurred or which |
| actions and input led to the error. |
| |
|System environment |
| SAP Release..... 702 |
| SAP Basis Level. 0008 |
| |
| Application server... "ISVSAPECCDEV" |
| Network address...... "172.25.105.183" |
| Operating system..... "Windows NT" |
| Release.............. "6.1" |
| Hardware type........ "4x AMD64 Level" |
| Character length.... 16 Bits |
| Pointer length....... 64 Bits |
| Work process number.. 18 |
| Shortdump setting.... "full" |
| |
| Database server... "ISVSAPECCDEV" |
| Database type..... "MSSQL" |
| Database name..... "ECD" |
| Database user ID.. "ecd" |
| |
| Terminal.......... "10.66.113.155" |
| |
| Char.set.... "C" |
| |
| SAP kernel....... 720 |
| created (date)... "Mar 4 2012 23:19:29" |
| create on........ "NT 5.2 3790 S x86 MS VC++ 14.00" |
| Database version. "SQL_Server_9.00 " |
| |
| Patch level. 211 |
| Patch text.. " " |
| |
| Database............. "MSSQL 9.00.2047 or higher" |
| SAP database version. 720 |
| Operating system..... "Windows NT 5.0, Windows NT 5.1, Windows NT 5.2, Windows |
| NT 6.0, Windows NT 6.1, Windows NT 6.2" |
| |
| Memory consumption |
| Roll.... 0 |
| EM...... 4189792 |
| Heap.... 0 |
| Page.... 0 |
| MM Used. 3566480 |
| MM Free. 620640 |
|User and Transaction |
| Client.............. 220 |
| User................ 160072 |
| Language key........ "E" |
| Transaction......... " " |
| Transaction ID...... "38D2A0E14277F14BAD090050569F0165" |
| |
| EPP Whole Context ID.... "0050569F01651EE1A89A470EE848AD09" |
| EPP Connection ID....... "0050569F01651EE1A89A47B05E162D09" |
| EPP Caller Counter...... 1 |
| |
| Program............. "CL_NW7_VIEW_ELEMENT_ADAPTER===CP" |
| Screen.............. "SAPMHTTP 0010" |
| Screen Line......... 2 |
| Debugger Active..... "(TPDA)" |
|Server-Side Connection Information |
| Information on Caller of "HTTP" Connection: |
| Plug-in Type.......... "HTTP" |
| Caller IP............. "10.66.113.155" |
| Caller Port........... 8001 |
| Universal Resource ID. "/sap/bc/webdynpro/sap/z160072_dynamic_view_crea" |
| |
| Program............. "CL_NW7_VIEW_ELEMENT_ADAPTER===CP" |
| Screen.............. "SAPMHTTP 0010" |
| Screen Line......... 2 |
| |
| Information on Caller ofr "HTTP" Connection: |
| Plug-in Type.......... "HTTP" |
| Caller IP............. "10.66.113.155" |
| Caller Port........... 8001 |
| Universal Resource Id. "/sap/bc/webdynpro/sap/z160072_dynamic_view_crea" |
|Information on where terminated |
| Termination occurred in the ABAP program "CL_NW7_VIEW_ELEMENT_ADAPTER===CP" - |
| in "CREATE_NW7_BY_VIEW_ELEMENT". |
| The main program was "SAPMHTTP ". |
| |
| In the source code you have the termination point in line 23 |
| of the (Include) program "CL_NW7_VIEW_ELEMENT_ADAPTER===CM008". |
|Source Code Extract (Source code has changed) |
|Line |SourceCde |
| 1|METHOD create_nw7_by_view_element. |
| 2| |
| 3| TYPES c1 TYPE c LENGTH 1. |
| 4| |
| 5| DATA: mappings TYPE STANDARD TABLE OF wdr_elem_apt_map, |
| 6| mapping TYPE wdr_elem_apt_map, |
| 7| elem_defs TYPE SORTED TABLE OF wdy_ui_elem_def WITH UNIQUE KEY definition|
| 8| elem_def TYPE wdy_ui_elem_def, |
| 9| new_entries TYPE STANDARD TABLE OF t_nw7_class_registry, |
| 10| adapters TYPE SORTED TABLE OF wdr_uiel_adapter WITH UNIQUE KEY library_n|
| 11| adapter_def LIKE LINE OF adapters, |
| 12| id_gen_entity TYPE string, |
| 13| l_adapter_lib_name TYPE string, |
| 14| lr_adapter_lib TYPE REF TO if_nw7_adapter_library, |
| 15| l_current_library TYPE string, |
| 16| l_current_id_gen_entity TYPE c1, |
| 17| lt_mapping TYPE if_nw7_adapter_library=>tt_index_map. |
| 18| |
| 19| |
| 20| FIELD-SYMBOLS: <class_registry_entry> TYPE t_nw7_class_registry, |
| 21| <l_mapping> TYPE if_nw7_adapter_library=>t_index_map. |
| 22| |
|>>>>>| READ TABLE m_nw7_class_registry ASSIGNING <class_registry_entry> |
| 24| WITH TABLE KEY view_element_cid = view_element->_cid. |
| 25| IF sy-subrc <> 0. |
| 26| |
| 27|* If not found, maybe we need to load the library first? |
| 28| READ TABLE m_nw7_class_registry TRANSPORTING NO FIELDS |
| 29| WITH KEY mapping-library_name = view_element->_library_name. |
| 30|* No ViewElementAdapter found for ViewElement |
| 31| ASSERT FIELDS view_element->_library_name CONDITION sy-subrc <> 0. |
| 32| |
| 33| SELECT * FROM wdy_ui_elem_def INTO TABLE elem_defs |
| 34| WHERE library_name = view_element->_library_name |
| 35| AND cid <> ''. |
| 36| SELECT * FROM wdr_elem_apt_map INTO TABLE mappings |
| 37| WHERE library_name = view_element->_library_name. |
| 38| SELECT * FROM wdr_uiel_adapter INTO TABLE adapters |
| 39| WHERE library_name = view_element->_library_name. |
| 40| |
| 41| LOOP AT mappings INTO mapping. |
| 42| APPEND INITIAL LINE TO new_entries ASSIGNING <class_registry_entry>. |
|Contents of system fields |
|Name |Val. |
|SY-SUBRC|0 |
|SY-INDEX|2 |
|SY-TABIX|0 |
|SY-DBCNT|220 |
|SY-FDPOS|0 |
|SY-LSIND|0 |
|SY-PAGNO|0 |
|SY-LINNO|1 |
|SY-COLNO|1 |
|SY-PFKEY| |
|SY-UCOMM| |
|SY-TITLE|HTTP Control |
|SY-MSGTY| |
|SY-MSGID| |
|SY-MSGNO|000 |
|SY-MSGV1| |
|SY-MSGV2| |
|SY-MSGV3| |
|SY-MSGV4| |
|SY-MODNO|0 |
|SY-DATUM|20120518 |
|SY-UZEIT|154425 |
|SY-XPROG| |
|SY-XFORM| |
|Active Calls/Events |
|No. Ty. Program Include Line |
| Name |
| 22 METHOD CL_NW7_VIEW_ELEMENT_ADAPTER===CP CL_NW7_VIEW_ELEMENT_ADAPTER===CM008 23 |
| CL_NW7_VIEW_ELEMENT_ADAPTER=>CREATE_NW7_BY_VIEW_ELEMENT |
| 21 METHOD /1WDA/C7STANDARD==============CP /1WDA/C7STANDARD==============CCIMP 1096 |
| CL_SCROLL_CONTAINER=>IF_NW7_VIEW_ELEMENT_ADAPTER~SET_CONTENT |
| 20 METHOD /1WDA/C9STANDARD==============CP /1WDA/C9STANDARD==============CCIMP 4583 |
| CL_TABSTRIP_ITEM=>IF_NW7_VIEW_ELEMENT_ADAPTER~SET_CONTENT |
| 19 METHOD /1WDA/C9STANDARD==============CP /1WDA/C9STANDARD==============CCIMP 3973 |
| CL_TABSTRIP=>IF_NW7_VIEW_ELEMENT_ADAPTER~SET_CONTENT |
| 18 METHOD /1WDA/C8STANDARD==============CP /1WDA/C8STANDARD==============CCIMP 3165 |
| CL_MATRIX_LAYOUT_CELL=>IF_NW7_VIEW_ELEMENT_ADAPTER~SET_CONTENT |
| 17 METHOD /1WDA/C8STANDARD==============CP /1WDA/C8STANDARD==============CCIMP 3357 |
| CL_MATRIX_LAYOUT_ROW=>IF_NW7_VIEW_ELEMENT_ADAPTER~SET_CONTENT |
| 16 METHOD /1WDA/C8STANDARD==============CP /1WDA/C8STANDARD==============CCIMP 2846 |
| CL_MATRIX_LAYOUT=>IF_NW7_VIEW_ELEMENT_ADAPTER~SET_CONTENT |
| 15 METHOD /1WDA/C7STANDARD==============CP /1WDA/C7STANDARD==============CCIMP 1865 |
| CL_TRANSPARENT_CONTAINER=>IF_NW7_VIEW_ELEMENT_ADAPTER~SET_CONTENT |
| 14 METHOD CL_WDR_VIEW_ADAPTER===========CP CL_WDR_VIEW_ADAPTER===========CM003 72 |
| CL_WDR_VIEW_ADAPTER=>IF_WDR_VIEW_ELEMENT_ADAPTER~SET_CONTENT |
| 13 METHOD CL_WDR_VIEW_ADAPTER===========CP CL_WDR_VIEW_ADAPTER===========CM007 28 |
| CL_WDR_VIEW_ADAPTER=>IF_WDR_NW7_DELTA_RENDERER~CALCULATE_DELTA_BLOCKS |
| 12 METHOD CL_WDR_WINDOW_CONTENT_ADAPTER2CP CL_WDR_WINDOW_CONTENT_ADAPTER2CM004 5 |
| CL_WDR_WINDOW_CONTENT_ADAPTER2=>PROCESS_DELTA_BLOCKS |
| 11 METHOD CL_WDR_WINDOW_CONTENT_ADAPTER2CP CL_WDR_WINDOW_CONTENT_ADAPTER2CM001 27 |
| CL_WDR_WINDOW_CONTENT_ADAPTER2=>IF_WDR_NW7_DELTA_RENDERER~CALCULATE_DELTA_BLOCKS |
| 10 METHOD CL_WDR_NW7_INT_WIN_ADAPTER====CP CL_WDR_NW7_INT_WIN_ADAPTER====CM005 66 |
| CL_WDR_NW7_INT_WIN_ADAPTER=>SET_CONTENT |
| 9 METHOD CL_WDR_NW7_MAIN_WIN_ADAPTER===CP CL_WDR_NW7_MAIN_WIN_ADAPTER===CM002 6 |
| CL_WDR_NW7_MAIN_WIN_ADAPTER=>SET_CONTENT |
| 8 METHOD CL_WDR_CLIENT_SSR_LS==========CP CL_WDR_CLIENT_SSR_LS==========CM001 29 |
| CL_WDR_CLIENT_SSR_LS=>IF_WDR_CLIENT~SEND_RESPONSE |
| 7 METHOD CL_WDR_MAIN_TASK==============CP CL_WDR_MAIN_TASK==============CM00I 118 |
| CL_WDR_MAIN_TASK=>EXECUTE |
| 6 METHOD CL_WDR_MAIN_TASK==============CP CL_WDR_MAIN_TASK==============CM00U 6 |
| CL_WDR_MAIN_TASK=>IF_WDR_RUNTIME~EXECUTE |
| 5 METHOD CL_WDR_CLIENT_ABSTRACT_HTTP===CP CL_WDR_CLIENT_ABSTRACT_HTTP===CM01A 100 |
| CL_WDR_CLIENT_ABSTRACT_HTTP=>HANDLE_REQUEST |
| 4 METHOD CL_WDR_MAIN_TASK==============CP CL_WDR_MAIN_TASK==============CM00J 89 |
| CL_WDR_MAIN_TASK=>IF_HTTP_EXTENSION~HANDLE_REQUEST |
| 3 METHOD CL_HTTP_SERVER================CP CL_HTTP_SERVER================CM017 388 |
| CL_HTTP_SERVER=>EXECUTE_REQUEST_FROM_MEMORY |
| 2 FUNCTION SAPLHTTP_RUNTIME LHTTP_RUNTIMEU02 1155 |
| HTTP_DISPATCH_REQUEST |
| 1 MODULE (PBO) SAPMHTTP SAPMHTTP 13 |
| %_HTTP_START |
|Chosen variables |
|Name |
| Val. |
|No. 22 Ty. METHOD |
|Name CL_NW7_VIEW_ELEMENT_ADAPTER=>CREATE_NW7_BY_VIEW_ELEMENT |
|VIEW_ELEMENT |
| {O:initial} |
| F0000000 |
| F0000000 |
| FF00000000000000 |
|PARENT |
| {O:281*\CLASS-POOL=/1WDA/C7STANDARD\CLASS=CL_SCROLL_CONTAINER} |
| E0001000 |
| 60009100 |
| E600000019010000 |
|IGNORE_LIFETIME_WRAPPER |
| |
| 2 |
| 0 |
| 0 |
| 0 |
| 2000 |
|ADAPTER |
| {O:initial} |
| F0000000 |
| F0000000 |
| FF00000000000000 |
|%_SPACE |
| |
| 2 |
| 0 |
| 0 |
| 0 |
| 2000 |
|SYST-REPID |
| CL_NW7_VIEW_ELEMENT_ADAPTER===CP |
| 4454535544554444445544455453334522222222 |
| 3CFE77F6957F5C5D5E4F1410452DDD3000000000 |
| 0000000000000000000000000000000000000000 |
| 0000000000000000000000000000000000000000 |
| 43004C005F004E00570037005F0056004900450057005F0045004C0045004D0045004E0054005F0041004400410050|
|CL_NW7_VIEW_ELEMENT_ADAPTER=>M_NW7_CLASS_REGISTRY |
| Table IT_627[112x256] |
| \CLASS-POOL=CL_NW7_VIEW_ELEMENT_ADAPTER\DATA=CL_NW7_VIEW_ELEMENT_ADAPTER=>M_NW7_CLASS_REGISTRY|
| Table reference: 318 |
| TABH+ 0(20) = 303E3A00DF070000F03E3A00DF07000000000000 |
| TABH+ 20(20) = 3E010000730200007000000000010000FFFFFFFF |
| TABH+ 40(16) = 04E50000B0D6000010000000A425C000 |
| store = 0x303E3A00DF070000 |
| ext1 = 0xF03E3A00DF070000 |
| shmId = 0 (0x00000000) |
| id = 318 (0x3E010000) |
| label = 627 (0x73020000) |
| fill = 112 (0x70000000) |
| leng = 256 (0x00010000) |
| loop = -1 (0xFFFFFFFF) |
| xtyp = TYPE#000018 |
| occu = 16 (0x10000000) |
| accKind = 4 (ItAccessHashed) |
| idxKind = 0 (ItIndexNone) |
| uniKind = 1 (ItUniYes) |
| keyKind = 3 (user defined) |
| cmpMode = 2 (cmpSingleMcmpR) |
| occu0 = 1 |
| stMode = 0 |
| groupCntl = 0 |
| rfc = 0 |
| unShareable = 0 |
| mightBeShared = 0 |
| sharedWithShmTab = 0 |
| isShmLockId = 0 |
| isUsed = 1 |
| isCtfyAble = 1 |
| hasScndKeys = 0 |
| hasRowId = 0 |
| scndKeysOutdated = 0 |
| scndUniKeysOutdated = 0 |
| ----- Shareable Table Header Data ----- |
| tabi = 0xA0B53A00DF070000 |
| pgHook = 0xC0343A00DF070000 |
| idxPtr = 0x90323A00DF070000 |
| id = 536 (0x18020000) |
| shmTabhSet = 0x0000000000000000 |
| refCount = 0 (0x00000000) |
| tstRefCount = 0 (0x00000000) |
| lineAdmin = 112 (0x70000000) |
| lineAlloc = 112 (0x70000000) |
| shmVersId = 0 (0x00000000) |
| shmRefCount = 1 (0x01000000) |
| rowId = 18446744073709551615 |
| scndKeyAdmin = 0x0000000000000000 |
| ----- 1st level extension part -------- |
| regHook = 0xB0763A00DF070000 |
| collHook = 0x0000000000000000 |
| ext2 = 0x0000000000000000 |
| |
| STANDARD RADIOBUTTON_GROUP_BY_IDX RADI|
| 5544445422222222222222222222225444445554454545554554452222222222222222222222222222222222225444|
| 341E412400000000000000000000002149F2544FEF72F50F29F9480000000000000000000000000000000000002149|
| 0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000|
| 0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000|
| 5300540041004E00440041005200440020002000200020002000200020002000200020002000200020002000200020|
| |
| STANDARD RADIOBUTTON RADI|
| 5544445422222222222222222222225444445554422222222222222222222222222222222222222222222222225444|
| 341E412400000000000000000000002149F2544FE00000000000000000000000000000000000000000000000002149|
| 0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000|
| 0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000|
| 5300540041004E00440041005200440020002000200020002000200020002000200020002000200020002000200020|
| -
How to set Content-Disposition to "application/json;"
Using System.Net.Http.Httpclient, I am trying to do a multipart post in C# and with a wp8.
This is a snippet of my code:
varclient =
newHttpClient();
client.DefaultRequestHeaders.TryAddWithoutValidation(
"Content-Type",
"application/json");
MultipartFormDataContent
content = newMultipartFormDataContent();
content.Add(
newStringContent(requestObj,
Encoding.UTF8,
"application/json"),
"request");
but using Fiddler, I noticed that I am sending this:
Content-Type: application/json; charset=utf-8
Content-Dis name=request
while I need to send this (taken from an android device where the call is working):
Content-Dis name="request"
Content-Type: text/plain; charset=UTF-8
- How to achieve the expected result?Your code explicitly sets the incorrect content type. Why are you setting it to "application/json", when you say it requires "text/plain; charset=UTF-8"?
Bret Bentzinger (MSFT) @awehellyeah -
How to set content type in servlet?
Hi, there,
I'm writing a servlet to use ObjectOutputStream to return an object to applet. How can I set this content type in servlet?
Thanks.Actually, I'm writing a "HashMap" from servlet to applet. I have used your suggested content type "application/octet-stream" and another "appication/x-java-serialized-object" to try it. But in applet side, when I use (HashMap)in.readObject(), it always gives me a exception as:"java.util.HashMap; IllegalAccessException". Why?
Thankd. -
How to set content type in SOAP AXIS sender adapter
Hi All,
I am trying to fetch the data from an URL which has special characters(like Ä, ï) using SAP PI - SOAP AXIS adapter. I am facing the below error in the channel.
“error during receive: java.io.UnsupportedEncodingException: charset: utf-8”
I need to set the content type as ISO-9958-1 but there is no such option present in the SOAP AXIS sender Adapter. Please let me know if there is any way to set the content type and fetch the data successfully.
Thanks,
KondaHi Sudha,
I have tried textcodepageconversion, Message
Transformation and Annomizer beans but didn't help and this error is in sender SOAP AXIS adapter.
Thanks,
Konda -
How to set Content-Type of attachment?
Does anyone know how I can set the Content-Type of an attachment of an outgoing mail?
I use Apple Mail, and with one correspondent I have this annoying problem that he never receives any excel or word attachments that I send (and possibly other ones, too).
Our support now says that I should try to set the Content-Type
of the excel attachments to "Content-Type: application/vnd.ms-excel".
Apple Mail seems to set it to
"Content-Type: application/octet-stream"
and they think that attachments with this content-type might get blocked by the mail server of my correspondent.
Any suggestions, ideas, etc., will be appreciated.
Best regards,
Gabriel.Thanks a lot for your test.
Unfortunately, I get
Content-Type: application/octet-stream;
when I try to send an excel attachment to myself.
Below is the beginning of the email (in "source" format).
Any ideas why you get the correct mime-type, but I don't?
Regards,
Gabriel.
---------- beginning of email
Return-Path: <[email protected]>
Received: from [80.128.100.143] (account xxxxxxx HELO [192.168.2.100])
by tu-clausthal.de (CommuniGate Pro SMTP 5.2.4)
with ESMTPSA id 35503032 for [email protected]; Mon, 30 Jun 2008 21:59:05 +0200
Message-Id: <[email protected]>
From: Gabriel Zachmann <[email protected]>
To: Gabriel Zachmann <[email protected]>
Content-Type: multipart/signed; boundary=Apple-Mail-13-325543015; micalg=sha1; protocol="application/pkcs7-signature"
Mime-Version: 1.0 (Apple Message framework v924)
Subject: test
Date: Mon, 30 Jun 2008 21:59:04 +0200
X-Mailer: Apple Mail (2.924)
--Apple-Mail-13-325543015
Content-Type: multipart/mixed;
boundary=Apple-Mail-12-325542957
--Apple-Mail-12-325542957
Content-Disposition: attachment;
filename="Kostenabfrage AVILUS Gesamtinklusive_TPxyz 080606.xls"
Content-Type: application/octet-stream;
x-mac-creator=5843454C;
x-unix-mode=0644;
x-mac-type=584C5338;
name="Gesamt.xls"
Content-Transfer-Encoding: base64 -
How to set content type for a JSF page
Hi,
I want to know is there any way we can specify the content type of a JSF page, like in JSPs we have the page attribute <%@ page contentType="application/vnd.ms-excel" %>
In JSP we can create a html table with values and if we specify the contenType as application/vnd.ms-excel, we would get an excel file generated.
But do we have something similar to this is JSF, as I am using Facelets I cannot use page directive in the xhtml file.
I tried setting the content type in MangedBean's action as follows
((HttpServletResponse)FacesContext.getCurrentInstance().getExternalContext().getResponse()).setContentType("application/vnd.ms-excel"); but it did'nt work.
Thanks in advance.//add related mutip-part to combine parts
MimeMultipart multipart = new MimeMultipart("related");
//attach a pdf
messageBodyPart = new MimeBodyPart();
fds = new FileDataSource("h:/something.pdf");
messageBodyPart.setDataHandler(new DataHandler(fds));
messageBodyPart.setFileName(fds.getName());
multipart.addBodyPart(messageBodyPart);
//add multipart to the message
message.setContent(multipart);
//send message
Transport.send(message); -
TextField in Master/Detail. How to set content master dependend?
Hey guys,
I have a Master/Detail App. In the Master view I have different delivery-items. If I click on one Item I get the detail view loaded with information (among others a TextField for notes).
If I enter some Text in this TextField it is shown in every delivery-items. How can I set it dependend on the selected item?
Thanks
ChrisIn that case the behavior is as expected : since the textfield is not bound to one of the delivery items, it is simply part of the detail view. Any changes to the selection (which changes the selected delivery item) would thus not change the value of the textfield.
I would rather bind the textfield to the delivery item nodes as well, so your notes are being kept there as well
Maybe you are looking for
-
IPhone Bluetooth not working after upgrading to iOS 6.1.2
I used to pair my iPhone with my Blue&Me system in my Fiat Car and it was working perfectly hitherto. Recently I have been experiencing problems with Pairing my phone with my car Bluetooth system (Which I sometimes use for receiving calls).. The phon
-
Power Manager Setting To Preserve Battery Life When Using A Docking Station
I have a Lenovo Thinkpad X220 which is about 19 months old. When at work, the computer is in a Lenovo docking station. At the end of the day, it is removed and any further evening use is typically on the battery. Yesterday, the battery symbol in th
-
Creative Cloud stopped working...on Windows 8
Creative Cloud has stopped working on my Windows 8 laptop. As of last week the CC app was working perfectly. Yesterday I opened the app and nothing appeared in the apps area. All I get is a CC app window and the options under the dropdown menu at the
-
How do I change the resolution of my photos on my iBookG4?
I have iPhoto 6 and post things regularly on craigslist. With my older camera I never had any problems uploading photos to the web. Now, with my new 6 megapixel camera, CL won't always take the photos all at once. Is there a way to downsize the pixel
-
Hi All, I want to print a report in the following manner: DATE: CLASS GROUP : MATNR CLASS ADSIZE 123 c col1 124 c col2 156 c col2 DATE: CLASS GROUP : MATNR CLASS ADSIZE 125