SRMSUS: Need a BSP MVC application example to upload file on to the server
I need to modify view item_edit.inc in the BSP application SRMSUS to add a fileupload option. Also I need to change the filename before uploading on to a specific location on the server. Does anyone have an example that I can look at. Your help is greatly appreciated.
Thanks
Krishna
[email protected]
did it myself.
Similar Messages
-
How to clear the variables before closing a BSP MVC application
I am calling a custom stateful BSP MVC application to display additional PO information as a popup window inside SAP BSP. When I close this popup window and open it later on a different PO, it still displays the old PO information. I am clearing the variables in the DO_HANDLE_EVENT.
I am using the javascript
<htmlb:button id = "Close"
text = "Close window"
onClientClick="javascript:window.close()" />
to close the window.
Could someone tell me what do I need to do before closing so that I can clear all the variables.Hi Krishana,
Other neater way could be..
instead of calling java script.. raise a server event.. in DO_HANDLE_EVENT set a flag <b>lv_close_window</b> to 'X'.
on the page call the script to close the window if flag <b>lv_close_window</b> is set to 'X'.
just before setting rhe flag to 'X' you can clear all unnecessary data.
rememebr: javascript wont take you to DO_HANDLE_EVENT.
<htmlb:button id = "Close"
text = "Close window"
onClick="close_window" />
i would to this way if i am willing to go to DO_HANDLE_EVENT.
A. -
Hi,
I have an applet application that i want to deploy on the Oracle cloud.
So i have created a jar file for the applet application and i am using this jar to call the applet on a jsp page.
But when i am delpoying my application on the java cloud, its giving me the below error:
2014-10-28 03:16:41 CDT: Starting action "Virus Scan"
2014-10-28 03:16:41 CDT: Virus Scan started
2014-10-28 03:16:49 CDT: ----------------------------------------------------------------------
2014-10-28 03:16:49 CDT: File Scanned: "Application7.ear".
2014-10-28 03:16:49 CDT: File Size: "106698122".
2014-10-28 03:16:49 CDT: File Status: "INFECTED".
2014-10-28 03:16:49 CDT: ----------------------------------------------------------------------
2014-10-28 03:16:49 CDT: Virus scan failed.
2014-10-28 03:16:49 CDT: "Virus Scan" complete: status FAILED
Can't we deploy any application having applet or swing component's onto the cloud?
Or do we need to request for any extra permissions for the same?
Thanks,
ManojI don't see applets mentioned in the supported features nor in the unsupported features so not sure if they are supported you would likely need to contact the operations team to confirm.
Jani Rautiainen
Fusion Applications Developer Relations
https://blogs.oracle.com/fadevrel/ -
Need a VB-Script that read a txt-file and only the lines that are new since last time
Hi,
I need help to write a VB script that read all new lines since the last time.
For example: The script reads the textfile at specific time, then 10 minutes later the script read the file again, and it should now only read the lines that are new since last time. Anyone that has such a script in your scriptingbox?
cheers!
DocHo
DocBased on the excellent idea by Pegasus, where is a VBScript solution. I use a separate file to save the last line count read from the file, then each time the file is read I update the line count. Only lines after the last count are output by the program:
Option Explicit
Dim strFile, objFSO, objFile, strCountFile, objCountFile, strLine, lngCount, lngLine
Const ForReading = 1
Const ForWriting = 2
Const OpenAsASCII = 0
Const CreateIfNotExist = True
' Specify input file to be read.
strFile = "c:\Scripts\Example.log"
' Specify file with most recent line count.
strCountFile = "c:\Scripts\Count.txt"
' Open the input file for reading.
Set objFSO = CreateObject("Scripting.FileSystemObject")
Set objFile = objFSO.OpenTextFile(strFile, ForReading)
' Check if the line count file exists.
If (objFSO.FileExists(strCountFile) = False) Then
' Initial count is 0, so all lines are read.
lngCount = 0
Else
' Open the line count file.
Set objCountFile = objFSO.OpenTextFile(strCountFile, ForReading)
' Read the most recent line count.
Do Until objCountFile.AtEndOfStream
lngCount = CLng(objCountFile.ReadLine)
Loop
End If
' Read the input file.
lngLine = 0
Do Until objFile.AtEndOfStream
' Count lines.
lngLine = lngLine + 1
strLine = objFile.ReadLine
If (lngLine >= lngCount) Then
' Output the line.
Wscript.Echo strLine
End If
Loop
' Close all files.
objFile.Close
If (lngCount > 0) Then
objCountFile.Close
End If
' Ignore last line of the file if it is blank.
If (strLine = "") Then
lngLine = lngLine - 1
End If
' Save the new line count.
Set objCountFile = objFSO.OpenTextFile(strCountFile, _
ForWriting, CreateIfNotExist, OpenAsASCII)
objCountFile.WriteLine CStr(lngLine + 1)
objCountFile.Close
Richard Mueller - MVP Directory Services -
Cisco application networking manager license file - unable copy to server
Hi all
We tried all the options like ftp,tftp,scp,etc., to copy cisco application networking manager license file from my pc to its server which has CISCO ADE OS .But unable to copy .can anybody know correct method to copy ??
Thanks & Regards
SanjeeviAdrian,
In order to install the license you must have a license file on the ANM server and install it through the command line:
http://www.cisco.com/en/US/docs/app_ntwk_services/data_center_app_services/application_networking_manager/4.1/installation/guide/IG_config.html#wpmkr1120937
No other way to do it.
License file can either be copied to the ANM file system, or you can create a new empty license file on it and copy paste the license file content.
If you have no access to the ANM server through CLI, then a workaround might be:
- install a new VMWARE machine where you have CLI access.
- install ANM on it
- copy license (other you copy the file through any means or you create a file and edit by copy pasting the license file content)
- install license with the command /opt/CSCOanm/bin/anm-license install /path/ANMxxxxxxxxxxxxxxxxx.lic as described in the link above
- save the VMware image
- deploy the same VMWare image to the ESX where it has to be installed and where you have no access to CLI neither you can copy a file.
Hope this helps,
Domenico. -
Apparently, Apple has recently changed their appstore upload procedures and now require developers to use their Application Loader software to upload the binary files to appstore - which is only available on a MAC. is there any way a Windows developer and upload an app using a PC?
The change was over ten months ago. Prior to that the first part of the review process would involve checking for incorrect use of private API calls, and so on. Now the Application Loader does a good amount of verifying of the app, and can tell you what's wrong with it, which has to be better than you waiting a couple of weeks to only find that you had something wrong in the file.
Some people are using VM setups on WIndows to run OSX, just to run Application Uploader. See pages like this one:
http://lifehacker.com/5583650/run-mac-os-x-in-virtualbox-on-windows
Or, check amongst all of your colleagues and family, there is a chance that someone within not too bad commuting distance from you uses a Mac.
Another option would be to spend $700 to get one of these:
http://www.apple.com/macmini/
That may seem like a small fortune, but you could easily spend more than that you to get a decent Android tablet to test on. -
Build an application installer and include files referenced in the code
I want to make an application installer of my project, and I need to include a picture that I'm using in the code.
This picture is used both in the vision assistant and in a low level color pattern match.
What I need is some way to reference this picture in my code, so that when I create the installer and the project is installed on another computer, this file will always get referenced.
Can someone please tell me how to do this?
Thanks in advance!Your installer should be putting everything in the data folder you need. So it should be fine.
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines -
My iphone is no longer activated, It worked for three weeks. I can't get the server to work. On hold with Verizon for almost an hour and half and got disconnected.
You have a bit of a mess on your hands, but you can try doing this:
Download the iOS 6 update (ipsw) file to your computer from here: http://osxdaily.com/2012/09/19/ios-6-ipsw-direct-download-links/, being careful to download the version for your model.
Put your phone in DFU mode, as explained here: https://discussions.apple.com/thread/2648467?threadID=2648467&tstart=0
Restore you phone in iTunes using the ipsw file you downloaded in step 1, as described here: http://osxdaily.com/2010/11/23/how-to-use-ipsw-files/.
If you get a 1014, 1013, 1638 or 3194 error, you access to Apple's servers is being blocked by your Hosts file. You'll have to edit your Hosts file to remove this block, then try restoring again. You can use Google to find out how to do this. -
BSP/MVC: Naming of Class Atributes
Hi there
developing BSP/MVC applications, I wonder which is a good naming standard for new class attributes of a controller or model class. saw in the examples that most attributes start with "M_" not only the inherited ones but also newly added.
as far as I remember, attributes starting with "M_" have a special meaning, can't fracking remember which one, though
So my questions:
1. what kind of attributes start or shout start with "M_"
2. what's a useful naming standard for attributes in classes
thanks in advance
Geraldyou just create a constructor method for this class and pass the column definition from your application to this class while instantiating the same .
sample.
CALL FUNCTION 'TR_NAMETAB_GET'
EXPORTING
iv_tabname = 'SFLIGHT'
iv_get_lengths_in_charmode = ' '
iv_get_texts = 'X'
IMPORTING
et_dfies = lt_dfies
EXCEPTIONS
not_found = 1
OTHERS = 2.
IF sy-subrc <> 0.
*--- Do nothing in this particular case
ENDIF.
LOOP AT lt_dfies INTO ls_dfies.
wa_pers_tab-field_name = ls_dfies-fieldname.
wa_pers_tab-text = ls_dfies-reptext.
wa_pers_tab-colpos = sy-tabix.
wa_pers_tab-invisible = ' ' .
APPEND wa_pers_tab TO pers_tab.
ENDLOOP.
ENDIF .
SORT pers_tab BY colpos .
CREATE OBJECT iterator TYPE ycl_tv_iterator
EXPORTING
col_def = pers_tab .
and in the column definition method you can use this to build the columns
LOOP AT m_col_def INTO wa_col_def .
APPEND INITIAL LINE TO p_column_definitions ASSIGNING <def>.
<def>-columnname = wa_col_def-field_name.
<def>-title = wa_col_def-text .
ENDLOOP . -
Uploaded text file has a new line added at the top using BSP MVC applicatio
I have a BSP MVC application that uploads data on to the application server. When I open the uploaded text file, the very first line on the file looks like the line below. ->
htmlb:button:click:nullhtmlb_form_1UploadUpload0htmlbdfsdf
But the rest of the file looks okay. This is causing other than .txt files to get corrupted.
Here is the code from my DO_HANDLE_EVENT.
data: entity type ref to if_http_entity,
name type string,
content type xstring,
content_type type string,
idx type i value 1,
v_root(26) value '
houappl131\SRM_Download\',
v_unxfile(100),
v_transfer type xstring,
v_type(6),
v_len type i,
v_dirfile type zfileinfo,
v_ofile(80),
v_guid type guid_32.
class cl_htmlb_manager definition load.
data: v_asn(10) type n.
data: fu type ref to cl_htmlb_fileupload,
file_id type string value 'batchfile'.
data: o_page_context type ref to if_bsp_page_context.
data: parent type ref to cl_bsp_controller2,
lo_model type ref to cl_sus_m_asn_detail.
o_page_context = me->get_page_context( ).
cl_htmlb_manager=>dispatch_event_ex( request = request
page_context = o_page_context
event_handler = me ).
refresh z_batch->message.
if htmlb_event->server_event = 'Upload'.
fu ?= cl_htmlb_manager=>get_data( request = request id = file_id name
= 'fileUpload' ).
if fu->file_name gt space.
z_batch->parameters-fpath = fu->file_name.
v_len = strlen( z_batch->parameters-fpath ).
if v_len gt 4.
v_len = v_len - 3.
endif.
v_type = z_batch->parameters-fpath+v_len(3).
search z_batch->parameters-fpath for '.'.
if sy-fdpos gt 0 and v_len gt 0.
v_len = v_len - sy-fdpos.
v_type = z_batch->parameters-fpath+sy-fdpos(v_len).
endif.
clear v_asn.
v_asn = z_batch->parameters-asnhdr.
concatenate v_asn
z_batch->parameters-asnitem
z_batch->parameters-batch
v_type
into v_unxfile separated by '.'.
concatenate v_root v_unxfile into v_unxfile.
condense v_unxfile no-gaps.
open dataset v_unxfile for output in binary mode.
while idx <= request->num_multiparts( ).
entity = request->get_multipart( idx ).
name = fu->file_name .
if name is not initial.
content_type = entity->get_header_field( 'Content-Type' ).
clear content.
content = entity->get_data( ).
v_transfer = content.
transfer content to v_unxfile.
append content to z_batch->filetab.
endif.
idx = idx + 1.
endwhile.
close dataset v_unxfile.
endif.
endif.
Here is my fileupload button in the view
<htmlb:page title="File Upload " >
<htmlb:form method = "post"
encodingType = "multipart/form-data" >
<htmlb:label id = "Batchnum"
design = "Label"
for = "Batchnumber"
text = "Batch" />
<htmlb:inputField id = "Batchinput"
value = "//zbatch/parameters.batch" />
<htmlb:fileUpload id="batchfile" />
<htmlb:button id = "Upload"
text = "Upload"
onClick = "Upload" />
<htmlb:button id = "Close"
text = "Close window"
onClick = "Close" />
Any of you gurus know why this is happening?I solved it myself
-
Searching for the template / application example of campaign weighing
Hello,
refering to the documentation / help files for ECC60 - ehp4 there should be an application example of campaign weighing available in the SDN under https://www.sdn.sap.com/irj/sdn/downloads.
Unfortunately i cannot find this example.
Can anybody tell me, where i can find this example or a similar one explaining the weighing of material components?
Thanks
Thorsten StrebelHi Thorsten,
You are correct. The application template for Campaign Weighing was developed on SAP MII 11.5 in 2006 and was uploaded in SCN->Manufacturing Downloads that time. It has been mentioned in the [SAP Help documentation|http://help.sap.com/erp2005_ehp_04/helpdata/EN/45/cbd605c99b5590e10000000a1553f7/frameset.htm] as well as in the [ERP EhP2 Documentation|https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/c03226ef-e108-2b10-01bc-dc41e9ba8980]. But strangely it's not available in the SCN download section anymore and sadly no one in SAP has any clue on it. I'm also looking for this template for a client who is interested in it.
Thanks,
Dipankar -
Query all applications that are connected to database in the current time
Dears,
I need to query all applications that are connected to database in the current time. I tried using v$session but i could not reach through it to the application that are logged now to database.
As example, i connect to DB through Web Application and tried to search in v$session to can see Web Application session but i did not see it :(
From searching in google, found that there is a package named "DBMS_APPLICATION_INFO". I expected that it can help me in my request but i could not use it.
Please, advise me. Is this package help cover my requirements or there is another method ?
Thanks & Best regards,sybrand_b,
I think that i appreciated you once you replied me and what i wanted exactly from you "Provide me Link help me more for investigation" and you did not provide something.
Where is the documentation that i could not read it !!!!!!
FYI, you are not the only one that have information_
Anyway ,as usual i will reply you in polite way.
Thanks and i will not have more input here with you !!!
Dear All,
Sorry for wasting your time to read this but i had to reply.
Please, if any one have more information regarding my issue, it will be highly appreciated.
Really , thanks all for support.
Thanks & Regards, -
I need help starting the server
Hello!
I am trying to do the HelloWorld rmi-example and I can't get the server started. Can anyone tell me if there's something wrong what I am trying to do.
At command prompt I type:
java -Djava.rmi.server.codebase="file:///C:/temp/Jaana/aa/examples_hello/examples/hello/" -Djava.security.policy=c:/temp/Jaana/aa/examples_hello/policy/ examples.hello.HelloImpl
I get "Exception in thread "main" java.lang.NoClassDefFoundError: examples/hello/HelloImpl
My .java files are in the directory C:/temp/Jaana/aa/examples_hello
and all my .class files are in the directory C:/temp/Jaana/aa/examples_hello/examples/hello
java.policy -file is in the directory C:/temp/Jaana/aa/examples_hello/policy
Hopefully someone can help me, JaanaHi!
I am trying to use my computer as a server. So the server and the application is physically on same computer.
Jaana
(Did I answer your question...) -
Deploying properties files outside of the web application in WebLogic 8.1
Hi
I am wondering if it is possible to deploy a web application and place configuration files (properties files, log4j xml files etc...) in a folder somewhere within WebLogic that is on the Server instance classpath. This would allow me to edit the config files and restart the server without having to hack into the web application .war file and then redeploy.
I am really looking for an equivalent of the /applib folder in Oracle 10gAS (each OC4J server instance has an /applib folder which is on the classpath of the server).
Is there an equivalent for a weblogic server instance?? (i.e. not just for the entire weblogic server but for individual sever instances).
thanks
WillWLS 9.2 includes pretty advanced features in this area. Both deployment plans and application libraries could be used. There's also a domain/lib directory where jar files can be placed and are visible throughout the server instance.
Unfortunately 8.1 has none of these features. In 8.1, your choices are to either add these into the $CLASSPATH, or package them in the application.
-- Rob
WLS Blog http://dev2dev.bea.com/blog/rwoollen/ -
Good MVC-based Struts modular application example
I am searching for some good modular applications in Struts as a reference for the applications we are making. It is hard to find really good examples. Most are too simple with only 2 struts-config.xml files. Also validation, tiles and MessagesResources.properties should be included.
Even in this URL: http://sourceforge.net/projects/struts I am not able to find a good example.
We developed several rather complex modular applications in Struts, but we would like to have a good modular application reference...silvousplait wrote:
I am seeking a recommendation to a website, book, etc. that gives an extensive example of building, from scratch, a desktop application (controlling of frames, panels, exceptions, DB).
I would like it to follow the MVC convention if possible.I'm using two books; The JFC Swing Tutorial for technical reference and Filthy Rich Clients for inspiration.
Maybe you are looking for
-
Can't get column to total! PLEASE HELP!
I have a very simple "calculation" scenario. I have 11 fields stacked on top of each other. 10 are "cost" fields and the "total" field is the 11th field. I would like to enter $ amounts in fields 1-10 and have them total out in field 11. I can get th
-
Cannot connect to internet anymore...
IBook G4 OS 10.4.11 Ethernet, DSL modem connected by wire (PPoE) For the past 3 days, I have been trying to figure out what happened inside my IBook and I am going nowhere. I hope this rings a bell for someone out there. I was connected to the Intern
-
My i pod classic will not turn off
I have a ipod classic. The unit will not do anything at all. It is now just staying on. It will not recognise the charger lead at all. Help
-
I have just installed Snow Leopard 10.6.3 and want to update my Safari 4.0.4 to the latest version. However, the latest Safari version needs at least Snow Leopard 10.6.8. What can I do, please?
-
About SecondaryLists Interactive Reports
Hi, if am having more than 20 secondarylists what happens & if at all it goes to Dump analysis how can i avoid it going to dumpanalysis?