Function to change all form_specification within call_form
Dear all,
I am trying to find a solution to change all form_specification within call_form for an entire application, is there any possibility to create a function or what..it not efficient to do it by hand.
Thank you!
Micro
LE: the puropse of this is to move my aplication from Win to Linux server
Edited by: user10423661 on Aug 4, 2011 11:47 PM
I came back wit the solution i used, i dev a function in order to call the form path..and call this function in every form. The same works with rdf and bmp.
CREATE OR REPLACE FUNCTION x.s_forms(name varchar2)
RETURN varchar2 IS
vhost_name_actual varchar2(200);
vbase_name s.base_name%type;
vrute_name s.rute_name%type;
str varchar2(100);
BEGIN
select SYS_CONTEXT('USERENV','HOST') into vhost_name_actual from dual;
select s.base_name, s.rute_name into vbase_name, vrute_name
from s
where vhost_name_actual=s.host_name
and s.activ='Y';
str:=vroute_name||'fmx/'||name;
return str;
exception
when others then
return null;
END s_forms;
Similar Messages
-
File browse functionality for all files within a directory
I have an app where you use file browse to select a file on the file system. Then, I parse the file name to determine other attribution to record in database, which may result in more user interaction before creating the database record.
So, currently users can do this one file at a time. Anything available to let me loop through all files within a user-specified directory?
Thanks,
SteveI have an app where you use file browse to select a file on the file system. Then, I parse the file name to determine other attribution to record in database, which may result in more user interaction before creating the database record.
So, currently users can do this one file at a time. Anything available to let me loop through all files within a user-specified directory?
Thanks,
Steve -
G'day:
I am reposting this from my blog ("ColdFusion 11: allowedextforinclude functionality has changed. But the docs haven't been") at the suggestion of Adobe support:
@dacCfml@ColdFusionCan you post your queries athttp://t.co/8UF4uCajTCfor all cfclient and mobile queries.— Anit Kumar Panda (@anitkumar85)April 29, 2014
This particular question is not regarding <cfclient>, hence posting it on the regular forum, not on the mobile-specific one as Anit suggested. I have edited this in places to remove language that will be deemed inappropriate by the censors here. Changes I have made are in [square brackets]. The forums software here has broken some of the styling, but so be it.
G'day:
Remember this one: "ColdFusion 11: preventing files from being included? [WTH], Adobe?". I can confirm this verymoderatelyslightly contentious feature has been changed in ColdFusion 11, but the docs have not been updated to reflect the change.
The issue is summarised thus (from the article linked-to above):
[...]out of the box ColdFusion 11 will only allow the inclusion of CFML and HTML files. Why? They cite "for security reasons". Here's a quote (posted in the bugtracker, originally from the pre-release forums):
"Vamseekrishna Manneboina: Yes, this was done as part of a security measure. You can now only include CFM/CFML files by default. You can specify additional extensions via a property called allowedextforinclude in neo-runtime.xml. By default, HTM and HTML file extensions are already added to this list/property, thereby allowing for inclusion of HTM and HTML files too by default."
OK, I disagree there's merit in this, some others agree, others disagree. But... so be it. I actually thought - if I was in a charitable mood - that the people that were "for" this change made a reasonable case for its inclusion, so - whilst not agreeing with them - I was content to just shrug and go "yeah, oh well".
Now this feature is still in the docs: "New in ColdFusion 11 - Restrictions", but this is not the way it now works. Initially I thought it had been removed completely (and I am now in the midst of retooling this article from saying that... as I only worked out what was going on 2/3rds of the way through writing it).
I did a secure install the other day, and one of the first things I tested was this:
<!---test.cfm---> <cfset message = "before"> <cfoutput> #message#<br> <cfinclude template="code.inc"> <cfset message = "after"> #message#<br> </cfoutput>
<!--- code.inc ---> <cfset message="within"> <cfoutput> #message#<br> </cfoutput>
And this all runs fine, as one would expect:
before
within
after
Next I checked neo-runtime.xml to see if the settings had been augmented to switch this off by default: but I'm buggered if I can see any reference to it anywhere.
So I then checked ColdFusion Administrator to see if there was any hint of it there, as this was one of the things Adobe said they were going to do in their solution to this. And there it is:
So by default now, anything is allowed. I figured I must have missed the setting in neo-runtime.xml, so changed the setting to "FOOBAR" so I could easily spot it, and there it is down @ /wddxPacket/data/array/*[16]/var[@name="compileextforinclude"] in neo-runtime.xml:
<var name="compileextforinclude"> <string>FOOBAR</string> </var>
And - having changed it back to something sensible: CFM, then the feature now "works":
before
#message#
after
However this is probably a worse security hole than the one they were trying to fix! It looks OK when looking at the render in the browser, but look at the actual raw mark-up:
before<br> <cfset message="within"> <cfoutput> #message#<br> </cfoutput> after<br>
We have unparsed CFML source code sent to the browser. This is awful. What if someone switches this on, and doesn't spot one of their old includes which has less-than-trivial CFML in it? It's now publicly accessible. Adobe have created a feature which has the possibility to leak source code to the outside world. How is that a security feature?
Also interesting is that with the super-secure profile installed, this is still off by default? I would have thought it'd be on in this case?
I still don't think this feature has been implemented properly, and it all still points even more to the fact the Adobe ColdFusion bods don't really know what they're doing.
Anyway, I'll nudge Adobe to at least get the docs sorted out.
Time for work (3min ago)...
AdamHi Adam,
Regarding "What if someone switches this on, and doesn't spot one of their old includes which has less-than-trivial CFML in it?", yeah I agree that'd be a problem. Hmm, maybe both this.allowedextforinclude *and* this.compileextforinclude should've been supported (instead of replacing the former w/ the latter as was done)? Example:
this.compileextforinclude="cfm,cfml,inc";
this.allowedextforinclude="cfm,cfml,inc,txt";
That way an exception could be thrown if cf|included file's extension wasn't in the this.allowedextforinclude list.
Perhaps the above could be shortened to:
this.compileextforinclude="cfm,cfml,inc";
this.allowedextforinclude="txt";//implicitly includes * from this.compileextforinclude (since -compile- implies -allowed-)
Dunno if that'd be confusing.
Anyhow, just some thoughts..
Thanks!,
-Aaron -
How can I change all Inf elements in an array to a specific value?
I would like to change all Inf elements in my array to -1. Basically, I am looking for something similar to the range and coerce function, except that I want all values above a certain value to be a specific negative value, rather than go to that value.
I could use a case structure and go through each element in the array, but I am hoping to find something more efficient.Any ideas?
Solved!
Go to Solution.P@Anand wrote:
I would do that in this way.
Here's a simpler version...
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
Attachments:
Replace in Array.png 4 KB -
Using Javascript function to change the value of a request variable
Have a javascript function that activates onchange within a form variable. Would like the javascript function to change the value of a request variable.
The javascript function is able to obtain the current value of the request variable ( which is 0 ) however I am unsuccessful in changing the value to 1.
I have been trying to use the following:
var vchange = 'request.changes_made = 1 ;' ;
eval(vchange);
Any ideas?If the user makes a change to the content of the form, and then attempts to leave the form, a javascript alert pops up giving the user the option of cancelling the submit, returning to the form and saving it.
If there have been no changes, then the user is free to migrate to another page.
This process is to protect users from losing valuable information but not to annoy them with "R U Sure" messages.
Knowing the status of the form content is important to the functionality of the application.
G -
Cr XIR1 to create a custom function to change the timestamp of a field
Post Author: palm
CA Forum: Crystal Reports
Hi,
I am trying to create a custom function to change the timezone of a field in the report depending on the timezone selected by the user in the prompt
I wrote a SQL Expression to do this , but i ended up creating a bunch of expressions for each time zone ,
So i am thinking of custom fuction some thing like
TimeZoneConvertor:
Fuction(TimeStampField , Timezone)
Returns: Timestamp field with newtimezone as selected by user
Hope you get this and please give me some kind of ideas to acheive this
Thanks in Advance!!!!!!!!Hi
goto se37...here u need to create a function group... then u need to create a function module. inside assign import/export parameters. assign tables/exceptions. activate the same. now write ur code within the function module
http://help.sap.com/saphelp_nw04/helpdata/en/9f/db98fc35c111d1829f0000e829fbfe/content.htm
Look at the below SAP HELP links, These links will show you the way to create a Function Module
http://help.sap.com/saphelp_nw04/helpdata/en/26/64f623fa8911d386e70000e82011b8/content.htm
http://help.sap.com/saphelp_nw04/helpdata/en/9f/db98fc35c111d1829f0000e829fbfe/content.htm -
How can i add css styling to all elements within a symbol.
How can i add css styling to all elements within a symbol.
For instance.
If i have a symbol call "data" and within this i have 4 elements called 1,2,3,4 how do i add styling to all these elements without having to re-write code for each element.
I know i can style a symbol called "data" by :
sym.$("data").css("font-family", "baumans, sans-serif", "font-size", "15px");
...But this does not style the content of the elements 1,2,3 and 4
If i were using standard CSS and HTML then all div's within a div called "data" would be styled the same.
help "my friends of the code"Hi Justin,
1) You have a syntax error here: sym.$("data").css("font-family", "baumans, sans-serif", "font-size", "15px");
sym.$("data").css({ "font-family": "baumans, sans-serif", "font-size": "15px"} ); // correct
sym.$("data").css( "font", "15px baumans, sans-serif" ); //correct
2) Then, loading the jQuery file is not required. You can create a class or change tags.
How to add a class:
Changing tags:
You've got 2 demo files (Edge 5.0) here: class or tag.zip - Box -
How can I change the font within a chart in an ibook
I need to change the font size in a chart that is in an iBook because it is so small I can't read any of it. When I try pressing the larger/smaller font buttons, the text outside the chart changes but not within the chart.
Use the SeriesCollection(1).Name function. In LV, wire up the following:
_Chart into Method SeriesCollection (index = 1 to 4)
Cascade into Variant to Data (wire type Excel.Series)
Wire Series into Property Name, Write the string
Michael Munroe
www.abcdefirm.com
Michael Munroe, ABCDEF
Certified LabVIEW Developer, MCP
Find and fix bad VI Properties with Property Inspector -
Weird: changing file or link associated defaults then changes ALL defaults to the same program
Y'know... I thought I'd possibly 'seen it all' but today someone brought me a laptop with something I don't believe I've ever seen...
every link and file association is defaulted to the wrong program, and it is not possible to restore the association to the proper program for the respective file types. And changing one
association changes ALL other associations for every other link to a file or shortcut.
For instance: 'right-clicking' on what I KNOW to be an Adobe Acrobat file and selecting 'open with...' from the context menu, Adobe Acrobat is not shown (even after un-installing and re-installing Acrobat). So I 'browse' to the Program files (x86)
folder and select Adobe Acrobat (AcroRd32.exe) from within the Adobe Acrobat program folder to 're-associate' .pdf files with Acrobat.. BUT - this then changes ALL associations for everything (including shortcuts on the desktop) to Adobe Acrobat.
And the same can be said if I attempt to change the file association for a "docx" file extension (MS Word document). Change the 'association' for one single 'docx' file and this results in ALL files or shortcuts on the desktop to also
change to MS Word.
So - what the ...? Anyone have a clue as to what he's done on this "brand new" installation of Windows Home Premium (64-bit)? I only just (this past week) talked him into 'abandoning' XP in favor of a license of Windows 7 Home Premium,
and afterwards everything was 100% and fully operational - but now one week later and he's done this...
So... A registry issue..? Something to do with 'file association' defaults? (and my suspicion is some sort of 'dll' problem with this performance and the issue of not being able to configure 'program defaults' for any given file type without also affecting
all other associations...).
So,short of backing up all his data (out of precaution) and trying to do a 're-installation' of Windows, my most immediate response with this would be to just 'blow it away' and re-install Windows again ... and then copy all of his data back to the corresponding
locations. But I would like to know what he's possibly done (for future reference) and maybe learn of some possibility that this can be 'fixed' and the correct 'associations' re-established without having to re-install Windows one more time...
GAA! THIS is why I shave my head...Hi,
According to the description, it seems that the issue is caused by some corrupted registry entry\keys, a corrupted registry key can be caused by an malware\virus, or an bad-coded program or just some incorrect operation by the user. it's hard to determin
which is the culprit, but we can try to repair it as we could.
Please refer to the following link and see if it helps, (backup your registry first before editing the registry)
http://support.microsoft.com/kb/950505
we can also create a new user profile instead and copy files and setting from the old profile
http://windows.microsoft.com/en-in/windows/fix-corrupted-user-profile#1TC=windows-7
Yolanda Zhu
TechNet Community Support -
Change all icons of a file type in Yosemite?
Hello,
I just upgraded from a early 2011 MBP running Mavericks to a new Retina MBP running Yosemite. I did not use Migration Assistant as I wanted a fresh start and instead have copied over all of my data from a clone manually. I use Parallels 10 to run a Windows 7 VM to run some software, including MS Office, etc. Since my upgrade, all of my Office file icons (.docx, .xlsx, etc.) are the generic white/gray page with the turned down upper-right corner. I set the default program for all to be the correct application within my VM, but now would like to change the file icons for all files of a type to something more meaningful. Somehow, I had that on my previous MBP, but can't remember how that happened... Without having to individually change each icon for 10,000+ files, is there an easy way to batch change all Excel file types (.xls, .xlsx, .xlsm, .csv, etc.) to a single icon?
Thanks in advance.Same thing happening to me. I've fixed disk permissions, for what that's worth. Still have generic icons for office docs. It's always something....
-
Is it possible to restart a new PO release when partner function is changed
Dear all,
I have encountered an issue from one of our MM users. In the existing setting, system allows user to change the vendor code for the partner function PI (invoice presenter) after the PO has been partially/completely released. From my understanding, purchase order will be restarted to a new release if another release strategy is re-determined by changing the classification value(s). But for my case, the same release strategy need to be restarted.
I would appreciate to anyone who gives valuable advise is helpful.
Best and regards,
Eddy AuI almost had this requirement too in my current project, but before I could find a solution for this, the client scrapped the idea. However, now that you have raised this issue, I'd like to figure this out too.
There is one thing we could try, although I am not sure if this is correct. If we could generate a new print message if the PI Partner function is changed, and for the release indicator in your current strategy which has the 'Released' box checked, we could set the Changeable field to '6'. This way should the partner function PI change, it would generate a new message and restart the same release strategy.
You could try this, I will also try and figure this out. This would only work assuming the first message generated when the document was saved is already processed, and now a new change message is generated.
Regards,
G. Coelho
Edited by: Godwin Coelho on May 9, 2011 10:44 AM -
Function Module to Compare Date within date Range
Hi All,
Does anyone know Function Module to Compare Date within date Range...For example i need to find whether 08/02/2006 falls in between 07/15/2006 and 09/15/2006......data: datum type sy-datum value '20070802',
datum_low type sy-datum value '20070730',
datum_high type sy-datum value '20070930'.
If datum between datum_low and datum_high.
Endif.
Regards,
Rich Heilman -
select e.EMPID empid,
e.name name,
aatest.SETVALUES(2) z,
aatest.TEST1() b,
aatest.TEST2() x,
aatest.TEST3() y
from emp e
where e.empid = 101
order by e.name;
when I execute this select statement...the order of function calls is as follows:
setvalues 1st (call no:1)
test1 (call no:2)
test2 (call no:3)
test3 (call no:4)
Now...I introduce a join between the two tacles as mentioned in the query
select e.EMPID empid,
e.name name,
e2.deptno deptid,
aatest.SETVALUES(2) z,
aatest.TEST1() b,
aatest.TEST2() x,
aatest.TEST3() y
from emp e, emp2 e2
where e.empid = e2.empid
order by e.name;
The order of execution of function calls changes to
(I observed this using DBMS_OUTPUT.PUT_LINE)
test3 (call no:1)
setvalues 1st (call no:2)
test1 (call no:3)
test2 (call no:4) (the first and last calls swap!)
i.e: it calls the last function in the select statement at the beginning
instead of calling it at the last. Is it the normal behaviour? or whats going on
here?
Can somebody explain me, please....
Details:
the following four functions are defined in a package called 'aatest' and compiled.
aatest.SETVALUES(2)
aatest.TEST1()
aatest.TEST2()
aatest.TEST3()
the Tables EMP and EMP2 are two tables defined in the same schema.Your "thinking" is wrong here. You can not use the column order to model your program flow. As SQL is set/tupel based, there is no given sequence of the execution order. Otoh you want to have a specific order in wich your functions must be executed otherwise the result will be wrong (or undefined). Thus here you need a procedural approach. This can be done by using PL/SQL for example.
You would code your functions in that way, that they are working correctly independent from the place where they are called ie if function1 needs the setvalues function, this function must be called inside the function1 then.
Are you sure you need all these functions in this procedural approach inside the sql-statement? This is mostly not needed and can be accomplished by using pure SQL. If not, may be your design is broken. -
Is there any function to change the width of forms'graphic ?
Hi All,
Is there any function to change the width of forms'graphic ?
May be like set***property.
Thanks,
ke xiongNo. Graphics cannot be handled at runtime.
Francois -
Is there any function to change the width of froms'graphic ?
Hi All,
Is there any function to change the width of froms'graphic ?
May be like set***property.
Thanks,
ke xiongHi;
For your issue i suggest close your thread here as changing thread status to answered and move it to Forum Home » Application Development in PL/SQL » Forms which you can get more quick response
Regard
Helios
Maybe you are looking for
-
But I tried from a different computer and it worked there.
-
Unable to play .avi files Elements Premiere 9
I am a new user. HP portable workstation running XP Pro, Nivida graphics , using a older Flip camera. When import from the Flip, .avi files are created. When I try to edit or view the files, the sound plays but no video. I can see and play audio an
-
Apple TV storage: USB HD or NAS HD??
I am trying to sort out the information I have read on Apple TV (so much is contradicting.) Can the unit use a USB attached hard drive for storage of iPhoto or iTunes library? What about iMovie library? For these, combined are over 500GB. In the alte
-
Strange output from jrcmd print_memusage (R28)
Hi guys, my jrcmd print_memusage tells me that my my heap is exactly the same size as my 'Compiled code' memory space: Total mapped 3709432KB (reserved=1053884KB) - Java heap 1048576KB (reserved=0KB) - GC tables 35084KB - Thread stacks 46848KB (#thre
-
We recently upgraded to CS4 from CS2 (Mac 10.5.7), and we've noticed a weird printing quirk that has never occured before. On two different Macs in our art dept, we have the occasional problem with files that were sent to one printer ending up on ano