Behaviour of updateObject and writeObject in toplink and eclipse link
Hi all ,
Please let us know if there is any difference between updateobject and writeobject being used in toplink and eclipselink.jar ?
It would be greatly helpful if someone can say the scenarios to use both the objects in eclipselink.jar .
Thanks in advance.
Regards
Mythili
In general you should not use either of these, but either use JPA, or use the UnitOfWork.
updateObject and writeObject are only defined in a single user DatabaseSession.
updateObject will just update the object, it assumes the object exists
writeObject can either insert or update an object, it first performs a doesExist check to see if an insert or an update should be done.
James : http://www.eclipselink.org
Similar Messages
-
EJB Service and Eclipse Link marshalling error.
Hi all. I have a problem with using EJB Service in BPEL.
I have two JPA entities linked with @OneToMany association
// RegistryItemBuffer
@Entity
@NamedQueries( { @NamedQuery(name =
"RegistryItemBuffer.findRegItemsBufByRegId",
query =
"select o from RegistryItemBuffer o where o.registry.registryId = :registryId") })
@Table(name = "PP_PERSON_ST_RG_ITEM_B")
public class RegistryItemBuffer implements Serializable {
private Long registryItemId;
private Registry registry;
private static final long serialVersionUID = 7526471155622776147L;
public RegistryItemBuffer() {
*@ManyToOne*
*@JoinColumn(name = "PP_PERSON_ST_RG_ID")*
*public Registry getRegistry() {*
return registry;
*public void setRegistry(Registry registry) {*
this.registry = registry;
//Registry
@Entity
@Table(name = "PP_PERSON_ST_RG")
public class Registry implements Serializable {
private Long registryId;
private Set<RegistryItemBuffer> registryItemBufferSet;
private static final long serialVersionUID = 7526471155622776100L;
public Registry() {
*@OneToMany(mappedBy = "registry", fetch = FetchType.EAGER)*
*public Set<RegistryItemBuffer> getRegistryItemBufferSet() {*
return registryItemBufferSet;
*public void setRegistryItemBufferSet(Set<RegistryItemBuffer> registryItemBufferSet) {*
this.registryItemBufferSet = registryItemBufferSet;
In my stateless session bean I have a method which fetches registry items by registry id using named query:
@SuppressWarnings("unchecked")
public List<RegistryItemBuffer> getRegistryItems(Long registryId) {
Query query =
em.createNamedQuery("RegistryItemBuffer.findRegItemsBufByRegId");
query.setParameter("registryId", registryId);
List<RegistryItemBuffer> items = query.getResultList();
return items;
If I call this method from EJB Client it works fine.
In my composite application I've add EJB Service. I have add a jar with EJB Remote Interface to SCA-INF/lib and specified JNDI path and remote interface in EJB Service Reference.
When I invoking getRegistryItems method from BPEL it fetches all items by the EclipseLink Exception throws at the end:
javax.xml.bind.MarshalException
- with linked exception:
[Exception [EclipseLink-7242] (Eclipse Persistence Services - 2.0.2.v20100323-r6872): org.eclipse.persistence.exceptions.Val
idationException
Exception Description: An attempt was made to traverse a relationship using indirection that had a null Session. This often
occurs when an entity with an uninstantiated LAZY relationship is serialized and that lazy relationship is traversed after
serialization. To avoid this issue, instantiate the LAZY relationship prior to serialization.]
at org.eclipse.persistence.jaxb.JAXBMarshaller.marshal(JAXBMarshaller.java:375)
at org.eclipse.persistence.jaxb.JAXBMarshaller.marshal(JAXBMarshaller.java:401)
Why EclipseLink cannot serialize fetched registry items ?
I would be grateful to any advice.
P.S. Sorry, If there is more appropriate forum.Any clues to this one?
-
JDeveloper ADF and eclipse link
All,
I have created employee hierarchy and executed the application with the integrated weblogic with jDeveloper. It's works fine.
After creating the deployent profile, I have deployed to a standalone weblogic server. i keep getting the below error
<java.lang.NoSuchMethodError: org.eclipse.persistence.queries.ReadAllQuery.setHierarchicalQueryClause(Lorg/eclipse/persistence/expressions/Expression;Lorg/eclipse/persistence/expressions/Expression;Ljava/util/Vector;)V>
The error was due to the line "*databaseQuery.setHierarchicalQueryClause(connectBy,startExpr,order)*" from the below code. I have copied the eclipselink.jar explictly to the weblogic/domain/lib directory and weblogic module directory. Still i am getting java.lang.NoSuchMethodError: org.eclipse.persistence.queries.ReadAllQuery.setHierarchicalQueryClause
Could you anyone Please help me to resolve the error.
ReadAllQuery databaseQuery = new ReadAllQuery(Employee.class);
ExpressionBuilder builder = new ExpressionBuilder();
Expression startExpr =
builder.get("emplyeNbr").equal(new Integer(employeeId));
Expression connectBy = builder.get("employees");
Vector order = new Vector();
order.addElement(builder.get("firstName"));
databaseQuery.setHierarchicalQueryClause(connectBy,startExpr,order);
Query query =
((JpaEntityManager)em.getDelegate()).createQuery(databaseQuery);
List<DEmplye> employees = query.getResultList();Paulo,
of course you can do using the Java APIs of XML Publisher. Furthermore there are plans to make XML Publisher the reporting framework for ADF.
Juergen -
Working with Object Relational model and Eclipse
Hello,
I have mad some types and typed tables in a schema on oracle 10g.
My database respects the Object Relational model, in which I work with VARRAY, TYPES, NESTED TABLES, PL/SQL,...
I have already install Enterprise Pack for Eclipse, and also have the Weblogic server, And I can generate tables. But the problem is that it gives to me this tables with wrong types, until they contains in fact other tables as Objet column, and also the types are not supported.
Please need a help !
Thank's in advance :)nhauge wrote:
Hi,
I want to make sure I understand the problem but will try to give you some information as well. So you have an Oracle 10g database in which you are using the object-relational database model with VARRAY's, etc. You say you are also trying to generate tables, but the generation is not working correctly. Are you using the "Generate tables from entities..." functionality? What is the source of the generated tables? I assume you generating from some type of JPA entity? Could you give a small example of the source you are generating from?
In order to generate proper tables of this type, you would need to be using special TopLink/EclipseLink annotations such as @Array so the persistence provider would know that they are "special" and not just regular entities that would create standard relational tables.
Neil
Thank you for your replay,
well I'm generating that with "Generate tables from entities" of eclipse link.
this is an example of what I have in the database:
[DB-SCRIPT|http://www.mediafire.com/view/?n3knwz1o4ggk50n]
and this is what is generated(eclipselink-orm.xml):
<?xml version="1.0" encoding="UTF-8"?>
<entity-mappings version="1.2" xmlns="http://www.eclipse.org/eclipselink/xsds/persistence/orm" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.eclipse.org/eclipselink/xsds/persistence/orm http://www.eclipse.org/eclipselink/xsds/eclipselink_orm_1_2.xsd">
<entity class="model.Chefterritoire" access="VIRTUAL">
<attributes>
<id name="idChef" attribute-type="long">
<column name="ID_CHEF"/>
</id>
<basic name="lesterritoires" attribute-type="Object">
</basic>
<basic name="nomChef" attribute-type="String">
<column name="NOM_CHEF"/>
</basic>
<basic name="tel" attribute-type="java.math.BigDecimal">
</basic>
</attributes>
</entity>
<entity class="model.Client" access="VIRTUAL">
<attributes>
<id name="idClient" attribute-type="long">
<column name="ID_CLIENT"/>
</id>
<basic name="adresseClient" attribute-type="String">
<column name="ADRESSE_CLIENT"/>
</basic>
<basic name="dateP" attribute-type="java.util.Date">
<column name="DATE_P"/>
<temporal>DATE</temporal>
</basic>
<basic name="lescommandes" attribute-type="Object">
</basic>
<basic name="nomClient" attribute-type="String">
<column name="NOM_CLIENT"/>
</basic>
<basic name="profession" attribute-type="String">
</basic>
<basic name="refrepresentant" attribute-type="Object">
</basic>
<basic name="telClient" attribute-type="java.math.BigDecimal">
<column name="TEL_CLIENT"/>
</basic>
</attributes>
</entity>
<entity class="model.Commande" access="VIRTUAL">
<attributes>
<id name="idCommande" attribute-type="long">
<column name="ID_COMMANDE"/>
</id>
<basic name="dateCommande" attribute-type="java.util.Date">
<column name="DATE_COMMANDE"/>
<temporal>DATE</temporal>
</basic>
<basic name="dateLivraison" attribute-type="java.util.Date">
<column name="DATE_LIVRAISON"/>
<temporal>DATE</temporal>
</basic>
<basic name="refreleve" attribute-type="Object">
</basic>
<basic name="refrepresentant" attribute-type="Object">
</basic>
<basic name="refvehicule" attribute-type="Object">
</basic>
<basic name="reprise" attribute-type="String">
</basic>
</attributes>
</entity>
<entity class="model.Constructeur" access="VIRTUAL">
<attributes>
<id name="idConstructeur" attribute-type="long">
<column name="ID_CONSTRUCTEUR"/>
</id>
<basic name="adresseConstructeur" attribute-type="String">
<column name="ADRESSE_CONSTRUCTEUR"/>
</basic>
<basic name="lesreleves" attribute-type="Object">
</basic>
<basic name="nomConstructeur" attribute-type="String">
<column name="NOM_CONSTRUCTEUR"/>
</basic>
<basic name="refvehucule" attribute-type="Object">
</basic>
</attributes>
</entity>
<entity class="model.LesccommandesN" access="VIRTUAL">
<table name="LESCCOMMANDES_N"/>
<attributes>
</attributes>
</entity>
<entity class="model.LescommandessN" access="VIRTUAL">
<table name="LESCOMMANDESS_N"/>
<attributes>
</attributes>
</entity>
<entity class="model.LescommandesN" access="VIRTUAL">
<table name="LESCOMMANDES_N"/>
<attributes>
</attributes>
</entity>
<entity class="model.LesoptionsN" access="VIRTUAL">
<table name="LESOPTIONS_N"/>
<attributes>
</attributes>
</entity>
<entity class="model.LesrepresentantsN" access="VIRTUAL">
<table name="LESREPRESENTANTS_N"/>
<attributes>
</attributes>
</entity>
<entity class="model.LessclientsN" access="VIRTUAL">
<table name="LESSCLIENTS_N"/>
<attributes>
</attributes>
</entity>
<entity class="model.LesscommandesN" access="VIRTUAL">
<table name="LESSCOMMANDES_N"/>
<attributes>
</attributes>
</entity>
<entity class="model.LesterritoiresN" access="VIRTUAL">
<table name="LESTERRITOIRES_N"/>
<attributes>
</attributes>
</entity>
<entity class="model.LesvehiculesN" access="VIRTUAL">
<table name="LESVEHICULES_N"/>
<attributes>
</attributes>
</entity>
<entity class="model.Modele" access="VIRTUAL">
<attributes>
<id name="idModele" attribute-type="long">
<column name="ID_MODELE"/>
</id>
<basic name="couleurExterieure" attribute-type="String">
<column name="COULEUR_EXTERIEURE"/>
</basic>
<basic name="couleurInterieure" attribute-type="String">
<column name="COULEUR_INTERIEURE"/>
</basic>
<basic name="lesoptions" attribute-type="Object">
</basic>
<basic name="lesvehicules" attribute-type="Object">
</basic>
<basic name="prix" attribute-type="double">
</basic>
</attributes>
</entity>
<entity class="model.Option" access="VIRTUAL">
<table name="OPTIONS"/>
<attributes>
<id name="idOption" attribute-type="long">
<column name="ID_OPTION"/>
</id>
<basic name="nomOption" attribute-type="String">
<column name="NOM_OPTION"/>
</basic>
<basic name="refmodele" attribute-type="Object">
</basic>
</attributes>
</entity>
<entity class="model.Rapportvisite" access="VIRTUAL">
<attributes>
<id name="idRapport" attribute-type="long">
<column name="ID_RAPPORT"/>
</id>
<basic name="dateVisite" attribute-type="java.util.Date">
<column name="DATE_VISITE"/>
<temporal>DATE</temporal>
</basic>
<basic name="frais" attribute-type="double">
</basic>
<basic name="refclient" attribute-type="Object">
</basic>
<basic name="refrepresentant" attribute-type="Object">
</basic>
<basic name="resultat" attribute-type="String">
</basic>
</attributes>
</entity>
<entity class="model.Releve" access="VIRTUAL">
<attributes>
<id name="idReleve" attribute-type="long">
<column name="ID_RELEVE"/>
</id>
<basic name="dateDebut" attribute-type="java.util.Date">
<column name="DATE_DEBUT"/>
<temporal>DATE</temporal>
</basic>
<basic name="dateFin" attribute-type="java.util.Date">
<column name="DATE_FIN"/>
<temporal>DATE</temporal>
</basic>
<basic name="lescommandes" attribute-type="Object">
</basic>
<basic name="refconst" attribute-type="Object">
</basic>
</attributes>
</entity>
<entity class="model.RelevesN" access="VIRTUAL">
<table name="RELEVES_N"/>
<attributes>
</attributes>
</entity>
<entity class="model.Remise" access="VIRTUAL">
<attributes>
<id name="idRemise" attribute-type="long">
<column name="ID_REMISE"/>
</id>
<basic name="remise" attribute-type="double">
</basic>
</attributes>
</entity>
<entity class="model.Representant" access="VIRTUAL">
<attributes>
<id name="idRepresentant" attribute-type="long">
<column name="ID_REPRESENTANT"/>
</id>
<basic name="lesclients" attribute-type="Object">
</basic>
<basic name="lescommandes" attribute-type="Object">
</basic>
<basic name="nomRepresentant" attribute-type="String">
<column name="NOM_REPRESENTANT"/>
</basic>
<basic name="refterritoire" attribute-type="Object">
</basic>
<basic name="typeRep" attribute-type="String">
<column name="TYPE_REP"/>
</basic>
</attributes>
</entity>
<entity class="model.Territoire" access="VIRTUAL">
<attributes>
<id name="idTerritoire" attribute-type="long">
<column name="ID_TERRITOIRE"/>
</id>
<basic name="lesrepresentants" attribute-type="Object">
</basic>
<basic name="nomTerritoire" attribute-type="String">
<column name="NOM_TERRITOIRE"/>
</basic>
<basic name="refchef" attribute-type="Object">
</basic>
</attributes>
</entity>
<entity class="model.Vehicule" access="VIRTUAL">
<attributes>
<id name="idVehicule" attribute-type="long">
<column name="ID_VEHICULE"/>
</id>
<basic name="lescommandes" attribute-type="Object">
</basic>
<basic name="nomVehicule" attribute-type="String">
<column name="NOM_VEHICULE"/>
</basic>
<basic name="refavoir" attribute-type="Object">
</basic>
<basic name="refmodele" attribute-type="Object">
</basic>
</attributes>
</entity>
<entity class="model.Visiteav" access="VIRTUAL">
<attributes>
<id name="idVisiteav" attribute-type="long">
<column name="ID_VISITEAV"/>
</id>
<basic name="dateDebut" attribute-type="java.util.Date">
<column name="DATE_DEBUT"/>
<temporal>DATE</temporal>
</basic>
<basic name="dateFin" attribute-type="java.util.Date">
<column name="DATE_FIN"/>
<temporal>DATE</temporal>
</basic>
<basic name="refclient" attribute-type="Object">
</basic>
<basic name="refrepresentant" attribute-type="Object">
</basic>
</attributes>
</entity>
</entity-mappings> -
Luakit and magnet links - "Unable to load page"
Hi,
I've got luakit with working magnet links handling, but there's one annoying issue. Everytime I open magnet link luakit opens transmission and goes to "Unable to load page" page. Is there any chance to disable this behaviour? It also spawns new tab to execute transmission. It would be nice to make it "more in the background".
webview.init_funcs.magnet_hook = function (view, w)
view:add_signal("navigation-request", function (v, uri)
if string.match(uri, "^magnet:") then
local cmd = string.format("%s %q", "transmission-gtk", uri)
luakit.spawn(cmd)
return false
end
end)
end
Thanks in advance.Also try changing your code to the following and it'll open magnet links and mailto links using xdg-open. * Note I haven't really tested this, as I have been modifying the webview.lua file.
webview.init_funcs.navigation_request_decision = function (view, w)
view:add_signal("navigation-request", function (v, uri)
if string.match(string.lower(uri), "^magnet:") then
luakit.spawn(string.format("%s %q", "xdg-open", uri))
return false
elseif string.match(string.lower(uri), "^mailto:") then
luakit.spawn(string.format("%s %q", "xdg-open", uri))
return false
end
end)
end
Edit: Any queries about luakit should probably be directed to its main thread in Community Contributions. The project isn't particularly active but occasionally the devs check there.
Last edited by zoqaeski (2014-06-03 17:00:44) -
BRI and Serial link are up at the same time
Hello,
Got a question about BRI interface
Is there any way to disable BRI interface manually when primary link is up?
I had a situation where both BRI and Serial link were up and running
i reset the primary BRI0/1/0 and now BRI sub-interfaces are showing down..but still primary bri int showing up up (spoofing).
what does spoofing means?
RouterA(config-if)#do sh int BRI0/1/0
BRI0/1/0 is up, line protocol is up (spoofing) >>>>>>>>>>>
Hardware is GT96K BRI with U interface (3086)
Description: circuit id 50.ibsd.515307
MTU 1500 bytes, BW 64 Kbit, DLY 20000 usec,
reliability 255/255, txload 1/255, rxload 1/255
Encapsulation PPP, loopback not set
Keepalive set (10 sec)
Last input 00:00:28, output never, output hang never
Last clearing of "show interface" counters 6w3d
Input queue: 0/75/115/0 (size/max/drops/flushes); Total output drops: 0
Queueing strategy: weighted fair
Output queue: 0/1000/64/0 (size/max total/threshold/drops)
Conversations 0/1/16 (active/max active/max total)
Reserved Conversations 0/0 (allocated/max allocated)
Available Bandwidth 48 kilobits/sec
5 minute input rate 0 bits/sec, 0 packets/sec
5 minute output rate 0 bits/sec, 0 packets/sec
296542 packets input, 1320737 bytes, 0 no buffer
Received 0 broadcasts, 0 runts, 0 giants, 0 throttles
115 input errors, 113 CRC, 0 frame, 0 overrun, 0 ignored, 104 abort
329534 packets output, 1582923 bytes, 0 underruns
0 output errors, 0 collisions, 2 interface resets
0 output buffer failures, 0 output buffers swapped out
RouterA(config-if)#do sh ip int brie
Interface IP-Address OK? Method Status Protocol
GigabitEthernet0/0 10.X.160.1 YES NVRAM up up
GigabitEthernet0/1 unassigned YES NVRAM administratively down down
Serial0/0/0 unassigned YES NVRAM up up
Serial0/0/0.1 10.X.252.21 YES NVRAM up up
BRI0/1/0 unassigned YES NVRAM up up
BRI0/1/0:1 unassigned YES unset down down >>> >>>
BRI0/1/0:2 unassigned YES unset down down >>>>>>
Dialer0 unassigned YES IPCP up up
Loopback0 10.X.3.169 YES NVRAM up up
RouterA(config-if)#
Really appreaciate anyone's explanation.
Thanks in advance
SiraJTo begin with the last question: The status as observed is in fact normal behaviour.
Spoofing is in other words "faked up". An interface that's inactive normally goes down which also causes all routes running over it to be dropped from the routing table. This status was implemented to allow dialers to keep their static routes also when the dialer was inactive. Check with the command "show dialer" to see if there is any undesired calling action.
Use an access-list to allow traffic to activate the dialer.
regards,
Leo -
Why text and button links on a PDF do not work in the iPad
I have Acrobat Pro 9.2.3 and InDesign CS5.
I've tried creating both button and text links directly from InDesign (Window > Interactive > Hyperlinks). I then export the multi-page PDF with "Acrobat 6 and Above" selected as well as the "Hyperlinks" and "Interactive Elements" checked. When I open the PDF in my iPad, none of the text or button links work.
Then . . .
I tried opening the same multi-page PDF in Acrobat Pro, and manually created the link boxes (Tools > Advanced Editing > Link Tool). The iPad still can't interprete these two interactive elements.
Any clues what I'm doing wrong?Try exporting as ePub - now test inside Digital Editions and if OK - drag the file into iTunes and synch to iPhone/iPad.
It's probably a Preview issue as mentioned but exporting to ePub is good fun!
J. -
How to display URL images and URL link (html) from Smartforms?
Hi Gurus,
I'm having difficulty on how to display targeted URL images and URL link from the smartforms, after i sending it out as html mail. The mail i sent just can be preview as a plain text, which can't execute the html code that i put inside the smartforms itself. I follow a few step from this very useful blog.. Hopefully, you guys can give me some solutions or ideas on this.
/people/pavan.bayyapu/blog/2005/08/30/sending-html-email-from-sap-crmerp -thanks to Pavan for his useful blog.
My code is like this..
<--- Start Code.
FORM call_smartforms.
DATA : lv_subject TYPE so_obj_des,
lc_true(1) VALUE 'X',
lw_control_parameters TYPE ssfctrlop,
lw_output_options TYPE ssfcompop,
lc_graphics(8) VALUE 'GRAPHICS',
lw_xsfparam_line TYPE ssfxsfp,
lc_extract(7) VALUE 'EXTRACT',
lc_graphics_directory(18) VALUE 'GRAPHICS-DIRECTORY',
lc_mygraphics(11) VALUE 'mygraphics/',
lc_content_id(10) VALUE 'CONTENT-ID',
lc_enable(6) VALUE 'ENABLE',
lw_job_output_info TYPE ssfcrescl,
lw_html_data TYPE trfresult,
lw_graphics TYPE ssf_xsf_gr,
lt_graphics TYPE tsf_xsf_gr,
lv_html_xstr TYPE xstring,
lw_html_raw LIKE LINE OF lw_html_data-content,
lv_incode TYPE tcp00-cpcodepage VALUE '4110',
lv_html_str TYPE string,
lv_html_len TYPE i,
lc_utf8(5) VALUE 'utf-8',
lc_latin1(6) VALUE 'latin1',
lv_offset TYPE i,
lv_length TYPE i,
lv_diff TYPE i,
lt_soli TYPE soli_tab,
lw_soli TYPE soli,
lc_mime_helper TYPE REF TO cl_gbt_multirelated_service,
lv_name TYPE mime_text VALUE 'sapwebform.htm',
lv_xstr TYPE xstring,
lw_raw TYPE bapiconten,
lt_solix TYPE solix_tab,
lw_solix TYPE solix,
lv_filename TYPE string,
lv_content_id TYPE string,
lv_content_type TYPE w3conttype,
lv_obj_len TYPE so_obj_len,
lv_bmp TYPE so_fileext VALUE 'BMP',
lv_description TYPE so_obj_des VALUE 'Graphic in BMP format',
lc_doc_bcs TYPE REF TO cl_document_bcs,
lc_bcs TYPE REF TO cl_bcs,
lc_send_exception TYPE REF TO cx_root,
lw_adsmtp TYPE lty_adsmtp,
lv_mail_address TYPE ad_smtpadr,
lc_recipient TYPE REF TO if_recipient_bcs,
lc_send_request TYPE REF TO cl_bcs,
lv_sent_to_all TYPE os_boolean.
DATA : v_language TYPE sflangu VALUE 'E',
v_e_devtype TYPE rspoptype.
v_form_name = 'ZTEST_EMAIL'.
CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
EXPORTING
formname = v_form_name
IMPORTING
fm_name = v_namef
EXCEPTIONS
no_form = 1
no_function_module = 2
OTHERS = 3.
IF sy-subrc = 0.
break mhusin.
ENDIF.
starting here. ***
Set title for the output
lv_subject = 'Smartforms.'.
Set control parameters to "no dialog"
lw_control_parameters-no_dialog = lc_true.
IF lw_service_subject-code = lc_fm1.
*--- To get output device type
CALL FUNCTION 'SSF_GET_DEVICE_TYPE'
EXPORTING
i_language = v_language
i_application = 'SAPDEFAULT'
IMPORTING
e_devtype = v_e_devtype.
lw_output_options-tdprinter = v_e_devtype.
lw_control_parameters-getotf = 'X'.
IF sy-subrc = 0.
break mhusin.
ENDIF.
Set output options
lw_output_options-xsf = lc_true.
lw_output_options-xsfcmode = lc_true.
lw_output_options-xsfoutmode = 'A'.
lw_output_options-xsfoutdev = space.
lw_output_options-xsfformat = lc_true.
lw_xsfparam_line-name = lc_graphics.
lw_xsfparam_line-value = lc_extract.
APPEND lw_xsfparam_line TO lw_output_options-xsfpars.
lw_xsfparam_line-name = lc_graphics_directory.
lw_xsfparam_line-value = lc_mygraphics.
APPEND lw_xsfparam_line TO lw_output_options-xsfpars.
lw_xsfparam_line-name = lc_content_id.
lw_xsfparam_line-value = lc_enable.
APPEND lw_xsfparam_line TO lw_output_options-xsfpars.
Get the smartform content
CALL FUNCTION v_namef
EXPORTING
control_parameters = lw_control_parameters
output_options = lw_output_options
*pass other application specific parameters (eg order number, items ).
IMPORTING
job_output_info = lw_job_output_info
TABLES
tt_tabh = tt_tabh
tt_tabb = tt_tabb
tt_tabf = tt_tabf
EXCEPTIONS
formatting_error = 1
internal_error = 2
send_error = 3
user_canceled = 4
OTHERS = 5.
IF sy-subrc = 0.
break mhusin.
ENDIF.
lw_html_data = lw_job_output_info-xmloutput-trfresult.
lt_graphics[] = lw_job_output_info-xmloutput-xsfgr[].
CLEAR lv_html_xstr.
LOOP AT lw_html_data-content INTO lw_html_raw.
CONCATENATE lv_html_xstr lw_html_raw INTO lv_html_xstr IN BYTE MODE.
ENDLOOP.
lv_html_xstr = lv_html_xstr(lw_html_data-length).
CALL FUNCTION 'SCP_TRANSLATE_CHARS'
EXPORTING
inbuff = lv_html_xstr
incode = lv_incode
csubst = lc_true
substc_space = lc_true
IMPORTING
outbuff = lv_html_str
outused = lv_html_len
EXCEPTIONS
OTHERS = 1.
*HACK THE HTML CODE GENERATED BY SMARTFORM TO MAKE THE
*EXTERNAL IMAGES APPEAR AS <IMG> TAG IN HTML
REPLACE ALL OCCURRENCES OF '<IMG' IN lv_html_str WITH '<IMG' IGNORING CASE.
REPLACE ALL OCCURRENCES OF '/>' IN lv_html_str WITH '/>' IGNORING CASE.
REPLACE ALL OCCURRENCES OF '</A>' IN lv_html_str WITH '' IGNORING CASE.
REPLACE ALL OCCURRENCES OF '<' IN lv_html_str WITH '<' IGNORING CASE.
REPLACE ALL OCCURRENCES OF '>' IN lv_html_str WITH '>' IGNORING CASE.
CALL METHOD html_control - >load_mime_object
EXPORTING
object_id = 'ZWN'
object_url = 'ZWN.GIF'
EXCEPTIONS
OTHERS = 1.
REPLACE ALL OCCURRENCES OF lc_utf8 IN lv_html_str WITH lc_latin1.
REPLACE ALL OCCURRENCES OF lc_utf8 IN lv_html_str WITH 'iso-8859-1'.
break mhusin.
lv_html_len = STRLEN( lv_html_str ).
lv_offset = 0.
lv_length = 255.
WHILE lv_offset < lv_html_len.
lv_diff = lv_html_len - lv_offset.
IF lv_diff > lv_length.
lw_soli-line = lv_html_str+lv_offset(lv_length).
ELSE.
lw_soli-line = lv_html_str+lv_offset(lv_diff).
ENDIF.
APPEND lw_soli TO lt_soli.
ADD lv_length TO lv_offset.
ENDWHILE.
CREATE OBJECT lc_mime_helper.
CALL METHOD lc_mime_helper->set_main_html
EXPORTING
content = lt_soli
filename = lv_name
description = lv_subject.
LOOP AT lt_graphics INTO lw_graphics.
CLEAR lv_xstr.
LOOP AT lw_graphics-content INTO lw_raw.
CONCATENATE lv_xstr lw_raw-line INTO lv_xstr IN BYTE MODE.
ENDLOOP.
lv_xstr = lv_xstr(lw_graphics-length).
lv_offset = 0.
lv_length = 255.
CLEAR lt_solix[].
WHILE lv_offset < lw_graphics-length.
lv_diff = lw_graphics-length - lv_offset.
IF lv_diff > lv_length.
lw_solix-line = lv_xstr+lv_offset(lv_length).
ELSE.
lw_solix-line = lv_xstr+lv_offset(lv_diff).
ENDIF.
APPEND lw_solix TO lt_solix.
ADD lv_length TO lv_offset.
ENDWHILE.
CONCATENATE lc_mygraphics lw_graphics-graphics text-001 INTO lv_filename.
CONCATENATE lc_mygraphics lw_graphics-graphics text-001 INTO lv_content_id.
lv_content_type = lw_graphics-httptype.
lv_obj_len = lw_graphics-length.
*Add images to the email
CALL METHOD lc_mime_helper->add_binary_part
EXPORTING
content = lt_solix
filename = lv_filename
extension = lv_bmp
description = lv_description
content_type = lv_content_type
length = lv_obj_len
content_id = lv_content_id.
ENDLOOP.
TRY.
lv_subject = lv_subject.
lc_doc_bcs = cl_document_bcs=>create_from_multirelated(
i_subject = lv_subject
i_multirel_service = lc_mime_helper ).
CATCH cx_document_bcs INTO lc_send_exception.
CATCH cx_bcom_mime INTO lc_send_exception.
CATCH cx_gbt_mime INTO lc_send_exception.
ENDTRY.
Create send request
TRY.
lc_bcs = cl_bcs=>create_persistent( ).
CATCH cx_send_req_bcs INTO lc_send_exception.
ENDTRY.
TRY.
lc_bcs->set_document( i_document = lc_doc_bcs ).
CATCH cx_send_req_bcs INTO lc_send_exception.
ENDTRY.
Set-up email receiver
lv_mail_address = '[email protected]'.
TRANSLATE lv_mail_address TO UPPER CASE.
TRY.
lc_recipient = cl_cam_address_bcs=>create_internet_address(
i_address_string = lv_mail_address ).
CATCH cx_address_bcs INTO lc_send_exception.
ENDTRY.
TRY.
lc_bcs->add_recipient( i_recipient = lc_recipient ).
CATCH cx_send_req_bcs INTO lc_send_exception.
ENDTRY.
Send smartforms as HTML email
TRY.
lc_bcs->send( ).
CATCH cx_send_req_bcs INTO lc_send_exception.
ENDTRY.
COMMIT WORK.
WRITE:/ 'Mail sent'.
ENDFORM. "call_smartforms
End Code --->
Thanks and Regards.1- put your images in a directory under the web app directory. Example: app/images/
2- in your jsp, use: String file = application.getRealPath("/images/"); to get the images directory. See http://java.sun.com/j2ee/sdk_1.3/techdocs/api/javax/servlet/ServletContext.html#getRealPath(java.lang.String)
3- it's not the right forum to post this kind of question. Post them in the JSP/Servlet JSTL forum instead -
I pre ordered a album and got songs then it came out so itunes sent me a confirmation and it said to go to available downloads and gave link so I did and it did nothing for me and when I went to the album I wanted it said it was purchased so how do I get my music and don't even see available downloads in the iTunes Store
Check this link, http://www.apple.com/support/itunes/ and go to the contact page.
Sorry, here you go https://ssl.apple.com/emea/support/itunes/contact.html
Message was edited by: ChrisJ4203 -
I'm using FF 34.0.5 (I like it). I use to be able to right click on a link, within an e-mail, and the link would open in a new tab. Now when I click on the link it opens in the same tab replacing my e-mail.
Example - a friend sends me an e-mail containing a link to a web site he thinks I'd like. I click on the link and go to the web site and then go back to the e-mail tab and reply to him. Now, when clicking that link, my e-mail disappears and is replaced by the new site.
How can I fix this? When this happened once before I was told to change the 'value' for a specific 'preference name' through the about:config page.
Can anyone help jog my memory?
Thanks!Is this about clicking a link in an external program?
You can check this pref on the about:config page for external links.
* browser.link.open_newwindow.override.external (-1)
If this pref has the default value -1 then browser.link.open_newwindow is used.
* http://kb.mozillazine.org/browser.link.open_newwindow
*1: current tab; 2:new window; 3:new tab;
You can open the <b>about:config</b> page via the location/address bar.
You can accept the warning and click "I'll be careful" to continue.
*http://kb.mozillazine.org/about:config -
Using firefox 14.0.1. Loading a link using right-click and "Open Link In New Window", results in new window opening but address bar does not show URL. However, if I right click on a link and select "Open Link In New Tab", the Tab shows URL in address bar. So it's working when it's a New Tab but not a New Window.
The Reset Firefox feature can fix many issues by restoring Firefox to its factory default state while saving your essential information.
Note: ''This will cause you to lose any Extensions, Open websites, and some Preferences.''
To Reset Firefox do the following:
#Go to Firefox > Help > Troubleshooting Information.
#Click the "Reset Firefox" button.
#Firefox will close and reset. After Firefox is done, it will show a window with the information that is imported. Click Finish.
#Firefox will open with all factory defaults applied.
Further information can be found in the [[Reset Firefox – easily fix most problems]] article.
Did this fix your problems? Please report back to us! -
How to remove connect and workbook link after pressing Save as,Print,Export
I have to remove the connect link and workbook link which appear AFTER pressing Save as,Printable Page,Export in a discoverer viewer report. I had already removed the link in the report itself with changing the uix files, but after pushing the link for export, save as or print the link Connect and Workbook still appear.
I know that I have to change something in UIX Files, but which one and what I have to change...? Have anyone an idea? Thanx for fast reply, it´s a urgent problem.
in addition: In metalink,otn and google were no solution...If the tone really is a single (or at least narrow band) frequency like the picture shows, I'd try the Notch Filter on the Audition/Effects/Filter and EQ menu. It might take some playing around to get the exact frequency and tweak the amount of cut you apply vs. the effect it will have on surrounding frequencies--but if you can get the right balance, you can then easily apply this to the whole of every file.
Sorry, can't help on the Premiere Pro question since I only use Audition. -
When I click on an active link from another application, it opens the firefox application, but won't open open the page - it just opens Firefox or takes me to Firefox. No new tab or window is opened and the link is not displayed.
Firefox sent an email to me to confirm that I had asked the above question. The email had a link to click. When I clicked it from Firefox, nothing happened. Then I opened IE, signed into Comcast, opened the email, clicked the link, and it brought me here.
-
Can't find the storage and backup link to start an icloud backup
Why is it that when you create an icloud account the Storage and Backup link isn't always there. I need to create an icloud account and then create an icloud backup right away so that I can setup multiple ipads using the icloud backup. How do I force an icloud backup?
ThanksYou can check your Junk/Spam folders, sometimes the e-mail gets sent there. Also, double check that the primary e-mail address in your Apple ID account is hers. If none of this works, I suggest to wait it out, sometimes it can take up to 24 hours!
-
How do I include Facebook and website links on my feedback form?
Hi;
You can insert a link into your form using the "link" feature, there is a link button on the toolbar to insert a link:
If however you are asking about the "Social", "Like" buttons like many web sites have - that is not something FormsCentral includes/supports, but you can use the "Link" feature above for adding links of your own.
Thanks,
Josh
Maybe you are looking for
-
Include structure in smartform
I am trying to define types in smartform Global->Types. 1---types: BEGIN OF tvbdpr1. INCLUDE STRUCURE vbdpr.---- vbdpr is view types: END OF tvbdpr1. it gives error: "." or "IF FOUND." expected after "STRUCURE". BUT when i define below
-
N81 8GB Firmware V20.0.056 APAC
I would like to ask when will Nokia release the firmware for APAC region? I've seen the APAC firmware leaked in certain forum however NSU do not have the latest firmware for it yet. It still showing me the latest firmware as V11.0.045 This is what I
-
Getting out of full screen mode in Messages
I'm using mountain lion and I'm stuck in full screen mode in Messages. How can I get out of that? thanks for any suggestions.
-
Version 9.1.8 compatible with Mountain Lion Really?
I keep reading conflicting information about the compatibility issue. If 10.8.3 isn't going to work, should I roll back and if so, to what version. I could not find an answer on this forum, it's probably there . . .
-
Hello everybody, at the Web Service Navigator of the NWDS, the Web Services point to the wrong host. They do point to http://erp04:50000/ but should point to http://erp04.xxx.de:50000 where the J2EE Engine is installed. Thus i cant use the NWDS to te