OALinkBean functionality programatically
I have a problem that should be simple. I want to open a file in the same way as clicking on an OALinkBean.
However I don't want the user to have to click on the OALinkBean - I want to open the file from the processFormRequest code.
Background is that the user presses on a button which generates a file. I then want the file to open in a new window.
How can I do this?
Just need a small clarification, on trigger of what event you want to open file from process form Request?
--Mukul
Similar Messages
-
How do I execute a menu function programatically?
I'd like to execute the menu function "Operate>reinitialize all to default" at end of a simple loop but cant find a method of doing so. Can someone point me in the right direction?
Labview Express 7.0hope this help.
regards
Neona
Attachments:
Default.vi 6 KB -
Checkin PDF document from Appliction server onto DMS
Hi All,
We have pdf documents on a file server which we need to attach/checkin to a document info record using CV02N transaction.The file server will be mounted onto SAP's application server. i'm using the bapi BAPI_DOCUMENT_CHECKIN2 to achive this functionality programatically. I'm getting the following error when I try to pick a file from application server. 'Error while checking in and storing: /tmp/test.pdf'. However, when I pick the file from desktop(through the program itself), the document is getting successfully attached.
I would greatly appreciate if someone could help me in correcting this issue.
regards,
ArunHi,
I resolved the issue my self. I included an additional parameter PF_FTP_DEST = 'SAPFTPA' in the function module BAPI_DOCUMENT_CHECKIN2 which seems to have resolved the issue.
regards,
Arun -
Merging any type of documents into existing PDF using Adobe Java APIs
We know that latest Adobe Acrobat tool can convert any type
of documents into PDF. We need the same functionality to be built
in into our java code by using Adobe's Java APIs. I am sure that
Adobe has some readily available Java APIs to handle such
requirements.
FYI: We don't want Adobe's tool to handle this and we want
Adobe's available Java API to handle this merging functionality
programatically. We are ready to pay for it.
Thanks,
Ashok HottinI'm not 100 percent sure but I'm afraid the way you want to use this Web-service is far from what SAP/Adobe thought it should be used. Take a look at SAP Library [here |http://help.sap.com/saphelp_nw70/helpdata/EN/f2/21021b911f4c0cae11459a4ce0bc62/frameset.htm] and [here|http://help.sap.com/saphelp_nw70/helpdata/EN/8d/1cbf69fff9454ca9c5de84182e4bfb/frameset.htm]. This solutions relies on previously created PDF Form Template - that means, e.g. tables are not rendered as if being printed with any number of columns and rows, but components of data tables coming from SAP are injected in rows/columns of the form where they were planned to be during template design.
Additionally I think your idea of such usage of Adobe Document Services is not covered with software license you have as SAP customer/partner. Once again, I'm not 100% sure about it.
Still, my opinion is that you won't succeed in it anyway due to the logic of the solution.
Special PDF manipulation components will do the job better and easier, and nearly of them have demo/trial versions. So, if you ask me, don't waste your time and check special components. -
Export Button not working properly in custom OAF page.
Hi,
I have a custom page with a table region is there. There is an export button which exports the rows in an excel sheet.
But it is not working properly, as all the rows are not getting extracted.
Properties set for the export button::
Export all rows :: False
Any sugestion is highly appreciated.
Regards,
Arindam.Hi Arindam,
Refer below links.
Mukul's Oracle Technology Blog: Implementing Export Button Functionality Programatically
http://dilipoaf.blogspot.in/2013/02/export-selected-rows-data-functionality.html
Thanks,
Dilip -
Need help with taglib and javascript issue
I have created two WebSphere portlets (using WebSphere Application Studio), which exchange information by using click-to-action. I have added the click-to-action functionality programatically.
On my source portlet jsp page I took the java code which generates the click-to-action javascript and added it to a taglib I created. The problem is that now the click-to-action functionality doesn't work.
When I look at the source code in the browser the javascript and the onClick code is there as it should be, but when I click on the hyperlink, the click-to-action menu is not displayed.
If I take the java code out of the taglib and put it back into the jsp page it works no probs and on inspection of the generated code it is exactly the same as the code generated by the taglib version.
I have noticed that when I click the hyperlink to fire the onClick event I get an error message in the browser but when I go to the line number given in the error message, there is no code on that line.
Any ideas why it doesn't work when put in a taglib?
Thanks in advance,
A.There can be a million reasons
1) What is the exact error line?
2) Try debugging in Mozilla instead of IE. Mozilla's javascript debugger is much better. In IE you may have to look more at the error message then the line it gives you to id where the error occurs. -
Function Module to delete URL attachment programatically in re80
Hi there !
We are currently developing a DHL project and part of our requirements is to auto delete URL attachments programatically in re80. I tried to look for possible function modules to use like SO_OBJECT_UPDATE for this but base on our observation it is not suitable for this . Can someone suggest a suitable function module to use for this ?
Your help will be much appreciated .
Thank You !Hi,
Try this F/M:
URL_TEMPLATE_DELETE
URL_ESCAPE_DELIM_CHARS
SO_OBJECT_DELETE
SO_OBJECT_ARRAY_DELETE
SO_OBJECT_SET_ACTION_DELETE
Make sure the entities excatly that matches your requirement..
ihope this may helpful.
Thank you.
Thanks,
AMS -
How to activate a function module programatically?
How to activate a function module programatically?
Hi,
You can try the following function module:
RS_FUNCTION_ACTIVATE
Thanks and regards,
S. Chandra Mouli. -
Is there a way to programati​cally call the LabVIEW "find" function?
Hi,
My situation is this. I've inherited a LabVIEW program with about 375 vi's. Now when I build this into an executable, for memory reasons, I only want the "remove panel" feature set to no for vi's that are dynamically loaded. But I don't know exactly which vi's are dynamically laoded. But if I have all of the vi's in memory, I can search text for the vi name and if I find it, then that is where the vi is being dynamically loaded. That works okay, but you still have to search for each vi. I would like to run the find command through a for loop with an array of vi names as the indexed input and get some type of reply out. Is this possible or is there a better way to determine w
hich vi's are dynamically loaded? ThanksWell, that's covered in my suggestion of having a program first build a list
of all VIs in memory, and then start logging from then and only giving you
the VIs opened since the logger started. You load the application into
memory with all statically linked VIs then start the logger. The logger then
notes all the VIs in memory and ignores them. You then start the
application, and the logger notes all the VIs that are loaded in from that
point on, excluding itself, your application and your statically linked VIs.
All my suggestion does is gives you a list of the VIs in memory that you
then use to see if the panel is open using the relevant property node of the
VI- I recall you originally mentioned wanting to just type in an array of VI
names. There's
nothing stopping you doing this instead and having the
program periodically see if a reference can be opened to each VI in the
array and, if so, seeing if the panel is open. It's just that having a
program that does as I describe will save you having to identify and type in
all the names in such an array.
sal wrote in message
news:506500000005000000091C0000-984280909000@quiq.com...
> Hi Craig,
> I don't think that will work. The reason is this: If a vi is in
> memory, how do I know if it has been statically called or dynamically
> called? Some of my vi's that are dynamically called show their front
> panels and some do not. Maybe I'm missing something here. -
How to apply common View criteria for all LOV View programatically?
Hi,
In my application I use nearly 100 VOs, which will be mapped as LOV to some base VOs. These VOs are not only for LOV but also will be used directly in screen as read-only table. All these VOs contains EFF_BGN_DTand EFF_END_DT. Requirement is to display only the active records in VO.
We don't want to crete view criteria at design time for each and every VO. Instead we want to have a base ViewObjectImpl class, create at runtime and add this common criteria with the existing view criterias (If any given, which are actually required for the developer for screen specific functionality).
NOTE: As all of our VOs are custom java data source implemented and none of them have queries, we cannot use whereclause API but only ViewCriteria.
We want to create a view criteria, that somewhat looks like the below condition.
( (TO_CHAR( EffBgnDt, 'yyyy-mm-dd') <= '2010-02-01' )
AND (TO_CHAR( EffEndDt, 'yyyy-mm-dd') >= '2010-02-01' )
OR
( (TO_CHAR( EffBgnDt, 'yyyy-mm-dd') <= '2010-02-01' )
AND (EffEndDt IS NULL )
)Question:
1. Which is the best place in ViewObject class, where I will be able to create common view criteria, include it with existing criterias.
Thanks in Advance.
RaghuNo it is not working. I've tested. When i test your implementation in my sample using AM tester, it is not at all going inside getCriteriaItemClause(ViewCriteriaItem pViewCriteriaItem). For example when i say, AM.findViewObject(String ViewObjectName), followed by getEstimatedRowCount(), it should apply common filter criteria and give me the result.
Given below required scenario:
Department table:
ID DEPT_NAME START_DATE END_DATE
1 Hr 1-Jan-2010
2 Purchasing 1-Jan-2010 31-Dec-2010
3 Shipping 1-Jan-2010 31-Dec-2055
4 Sales 1-Jan-2010
Common criteria to be applied (Programatically) : :bind_current_date between StartDate and EndDate or :bind_current_date >= StartDate and EndDate is null
VO specific view criteria (may vary VO to VO): DeptName not equal to 'Sales'
Expected Result:
Case 1:
a. DeptView = AM.findViewObject("DepartmentVO")
b. DeptView.getEstimatedRowCount()
It should give me 3 records (Hr, Shipping, Sales)
Case 2:
a. DeptView = AM.findViewObject("DepartmentVO")
b. Create View Criteria 'NotSalesDeptVC', which should not list out Sales department.
c. Apply NotSalesDeptVC using RowSet rowSet = (RowSet) this.findByViewCriteria(NotSalesDeptVC, -1, ViewObject.QUERY_MODE_SCAN_VIEW_ROWS)
d. rowSet.getEstimatedRowCount()
It is in-memory filtering, will not disturb the default rowset, should give me 2 records (Hr, Shipping)
Case 3:
a. DeptView = AM.findViewObject("DepartmentVO")
b. Apply 'NotSalesDeptVC' to the default row set, followed by executeQuery
c. DeptView.getEstimatedRowCount()
It should give me 2 records. (Hr, Shipping)
Case 4:
a. DeptView = AM.findViewObject("DepartmentVO")
b. Unapply the applied 'NotSalesDeptVC', followed by executeQuery
c. DeptView.getEstimatedRowcount()
It should give me 3 records (Hr, Shipping, Sales)Essence is at any point of time, User should always work with active records. He no need to write extra logic to retrieve only the active records but the base Viewobject impl should have. Note, All of my view objects are custom java data source implemented and not query based. Similarly it does not meant that all of my VOs will be having some business specific View criteria. Some VOs may have. Some VOs may not have. However basic active records criteria is applicable for all VOs -
Schedule background Job Programatically at specified date and time
Hi Everybody,
how can i schedule a job in background programatically for a spefic date and time ?
Thanks and Regards
srikantaHi Chandrasekhar,
my requirement is :
in selection screen there will be two run mode :
1) Run in Foreground
2) Run in Background
If user selects ' Run in Background ' option , a block will open where user can give
job schedule date and
job schedule time.
Based on this date and time program will be scheduled in background.
I have used like this :
CALL FUNCTION 'JOB_OPEN'
EXPORTING
jobname = v_jname
SDLSTRTDT = p_date
SDLSTRTTM = p_time
IMPORTING
JOBCOUNT = v_jcnt
EXCEPTIONS
CANT_CREATE_JOB = 1
INVALID_JOB_DATA = 2
JOBNAME_MISSING = 3
OTHERS = 4.
where v_jname is jobname
v_jcnt is jobcount
p_date is schedule date ( taken screen value)
p_time is schedule time ( taken screen value)
but the job is sxcheduling immediately
Give suggestion.
Thanks in advance.
Srikanta -
How to run a job in background programatically after 10 sec
Hi Forum,
Can anyone tell me How to run a job in background programatically after 10 sec..
Thanks in advanceHi,
Here is the example code
*Submit report as job(i.e. in background)
data: jobname like tbtcjob-jobname value
' TRANSFER TRANSLATION'.
data: jobcount like tbtcjob-jobcount,
host like msxxlist-host.
data: begin of starttime.
include structure tbtcstrt.
data: end of starttime.
data: starttimeimmediate like btch0000-char1.
* Job open
call function 'JOB_OPEN'
exporting
delanfrep = ' '
jobgroup = ' '
jobname = jobname
sdlstrtdt = sy-datum " You need to give the Date for execution the Job
sdlstrttm = sy-uzeit " You need to give the Time for execution the Job
importing
jobcount = jobcount
exceptions
cant_create_job = 01
invalid_job_data = 02
jobname_missing = 03.
if sy-subrc ne 0.
"error processing
endif.
* Insert process into job
SUBMIT zreport and return
with p_param1 = 'value'
with p_param2 = 'value'
user sy-uname
via job jobname
number jobcount.
if sy-subrc > 0.
"error processing
endif.
* Close job
starttime-sdlstrtdt = sy-datum + 1.
starttime-sdlstrttm = '220000'.
call function 'JOB_CLOSE'
exporting
event_id = starttime-eventid
event_param = starttime-eventparm
event_periodic = starttime-periodic
jobcount = jobcount
jobname = jobname
laststrtdt = starttime-laststrtdt
laststrttm = starttime-laststrttm
prddays = 1
prdhours = 0
prdmins = 0
prdmonths = 0
prdweeks = 0
sdlstrtdt = starttime-sdlstrtdt
sdlstrttm = starttime-sdlstrttm
strtimmed = starttimeimmediate
targetsystem = host
exceptions
cant_start_immediate = 01
invalid_startdate = 02
jobname_missing = 03
job_close_failed = 04
job_nosteps = 05
job_notex = 06
lock_failed = 07
others = 99.
if sy-subrc eq 0.
"error processing
endif.
Regards
Sudheer -
How can I change the state of a runtime menu item programati​cally?
Using LabView 6.1, I would like to change the state of the runtime menu item "Operate/Print at completion".
The goal here is to print the VI front panel according to the operator choice (OK ->print, Cancel ->don't print)
In a first release, I put a Stop function at the dialog output (activated by the cancel button) but this function stop the complete application and my idea where to stop only the VI in which the dialog is running.
In a second release, I've tried to use the "Application
control/Menu" but I receive every time an error:
Error 88 occured at Cannot modify application menu item in the printtest.vi.
Possible reasons: LabView, Runtime menu error...
Any suggestion is appreciated.
Re
gards,
phiduInstead of using the print at completion option, print the VI programatically if the user selects to print...open a reference to the VI you want to print and use an invoke node to print vi to printer.
Alternatively create another VI with a layout optimized for printout, set it to print at completion and run and load the data into that VI if and only if the user OKs the print...
Mads
MTO -
Slow performanc​e to read/write shared variables programati​cally
We are using datasocket read and write functions to read and write shared variables programatically (in the same machine) but we only achieve a performance of aprox. 200 reads/writes per second. We are using Labview 8.6 with DSC.
Is possible to get better results? That performance is normal?
Any help would be appreciated. Thank you in advance.Hi MMCDAT,
I think this value can
be normal as you can see in this link:
http://zone.ni.com/devzone/cda/tut/p/id/5037
As you can see, the
limit for datasocket depends on your Ethernet limitations, even if you as using
it just in one PC:
http://digital.ni.com/public.nsf/websearch/6AC9E65734E53F9A8625672400637ECC?OpenDocument
You can improve the
performance changing the update mode or Vis configurations:
http://digital.ni.com/public.nsf/allkb/F8F7DE98856B50588625672400648045?OpenDocument
http://digital.ni.com/public.nsf/allkb/2D9C6D73A160537986256B290076456E?OpenDocument -
How to create a profile value at user level programatically
Dear all,
I want to create a profile value at user level programatically, I refer to the developer guide and try to use fnd_profile.put() to create a new value.
But I find out the value is just created in session level, not be inserted into base table.
So is there anyone know how to realize this function in PL/SQL?
Any idea is appreciated.
Best Regards,
KennyCheck Note: 364503.1 - How to Set a System Profile Value Without Logging in to the Applications
https://metalink.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=364503.1
Maybe you are looking for
-
Windows Update Error Code C8000654
Hello, I am getting error C8000654 when checking for updates. How can I fix this? Thank you.
-
I just got my apple tv and set it up. Everything seems to be working fine...and as expected. the only question I have is in setting the tv resolution. The only option the set up menu gave me was 480p. My tv is a Samsung HD 1080i receiver. I am connec
-
my sister inlaw gave me her iphone3 and when i try to update a app it says that i must sign into her accound when i have already created my own apple id n put it in, how can i avoid that from happening/ change it?
-
IPhoto 4.0.3 on OS X (10.4.11)
Recently my iPhoto (version 4.0.3) is not loading my existing albums and not recognizing my camera. My guess is that I need to upgrade; I didn't realize I was so out-dated! Is this true and how do I go about doing that? I doubt I can just upgrade to
-
Classes12.jar or ojdbc14.jar?
Which oracle driver do I need? I am trying to connect to DB from my java program and I get "ClassNotFoundException: oracle.jdbc.driver.OracleDriver". I am able to ping/connect/execute sql from eclipse but when I run my java program, I get this except