function to get the url of the current full page
Hi all!Will there be a funtion to obtain your current full page url? With the url http:// and possible variables?
Thank you!
Tags: ColdFusion
Similar Questions
-
write an analytical function custom to get the current time
Hi all
I want to write a custom analytical function to get to the current week.
for example if it is today, January 13, 2012 then during week 2 the analytical function must return true.
I have an existing analytical function for the passage of time, written by someone else as below.
Decode (connect_by_root (LASTDATE) - trunc (sysdate),-1, 1, 0)
here last date it receives from the other query. This function returns me if the current date is passed or not.
So can someone please tell me how to write a custom function to get the current week.
Thank you
Prateek
Published by: 804658 on January 13, 2012 02:10I have an existing analytical function for the passage of time, written by someone else as below.
Decode (connect_by_root (LASTDATE) - trunc (sysdate),-1, 1, 0)Is not an analytic function.
I guess (because we don't know) that you need a function analytical, because you have a start date, but no end date and so an analysis as an ADVANCE or a DELAY can help you get the end_date.
If so, then maybe this shows you in the right direction.
I limited to 5 weeks to keep the short output.
I chose a start date of January 3, 2012.SQL> WITH my_cal AS 2 (select ROWNUM week_no 3 , TO_DATE('03-JAN-2012','DD-MON-YYYY') + (ROWNUM-1)*7 start_date 4 FROM DUAL 5 CONNECT BY ROWNUM <= 52) 6 SELECT * 7 FROM my_cal 8 WHERE week_no <= 5; WEEK_NO START_DAT ---------- --------- 1 03-JAN-12 2 10-JAN-12 3 17-JAN-12 4 24-JAN-12 5 31-JAN-12 SQL> WITH my_cal AS 2 (select ROWNUM week_no 3 , TO_DATE('03-JAN-2012','DD-MON-YYYY') + (ROWNUM-1)*7 start_date 4 FROM DUAL 5 CONNECT BY ROWNUM <= 52) 6 SELECT week_no 7 , start_date 8 , LEAD(start_date) OVER (ORDER BY start_date) - 1 end_date 9 FROM my_cal 10 WHERE week_no <= 5; WEEK_NO START_DAT END_DATE ---------- --------- --------- 1 03-JAN-12 09-JAN-12 2 10-JAN-12 16-JAN-12 3 17-JAN-12 23-JAN-12 4 24-JAN-12 30-JAN-12 5 31-JAN-12 SQL> WITH my_cal AS 2 (select ROWNUM week_no 3 , TO_DATE('03-JAN-2012','DD-MON-YYYY') + (ROWNUM-1)*7 start_date 4 FROM DUAL 5 CONNECT BY ROWNUM <= 52) 6 SELECT * 7 FROM ( 8 SELECT week_no 9 , start_date 10 , LEAD(start_date) OVER (ORDER BY start_date) - 1 end_date 11 FROM my_cal) 12 WHERE TRUNC(SYSDATE) BETWEEN start_date AND end_date; WEEK_NO START_DAT END_DATE ---------- --------- --------- 2 10-JAN-12 16-JAN-12 SQL>
-
Hello
I'm trying to get the current url of a web page, how can I do this?
Thank you.
Have you tried that?
Import mx.managers.BrowserManager;
var bm:IBrowserManager = BrowserManager.getInstance ();
BM.init ();
Alert.Show ("URL:" + bm.url);
-
CP8 Question: can I get the current URL path in a variable?
Hello
I want to get the current. HTM path and name of the file into a variable.
An example would be http://mycompanyserver/training/health_and_safety/infection_prevention.htm
I created a user variable called myurl
In slide 1 to the output, I used some javascript I found on the internet var myurl = window.location.pathname;
On slide 2, I set a text caption to display the myurl
I published and took my server project.
The result was an empty box of legend.
Please, someone could suggest what I should use.
(I don't want to use the Captivate system variable $$cpInfoProjectName$ $ like is not what I want)
Thank you
Peter
Cardiff (cold, covered, wind and rain. A dark day)
In Wales
UK.
Run this onSlideEnter of the first slide:
If (window.cpAPIInterface)
{
window.cpAPIInterface.setVariableValue ('myurl', document.location.href)
}
-
How to get the current value of db in backing bean
Hello
I use jdeveloper 11.1.2.3.0
I would like to know how I could access the old value of an attribute in backing bean.
I know I can get it in terms of EntityImpl with the getPostedAttribute function,
but as I see that I'm not allowed to access this function in the ViewImpl.
I get this error:
Error (151,33): getPostedAttribute (int) has protected access to oracle.jbo.server.EntityImpl.
Could you help her?
What is the right way to get the current value on db in backing bean?
Thank you very much!You can add a transitional attribute to the entity object to hold the old value of the desired attribute, then you can add this attribute to the view object.
Check [url http://www.youtube.com/watch?v=iKVIiK0FBXI] retrieve the previous value of an attribute ADF BC -
Get the current value of a control of the ring
I have a control of the ring that has the following values. See attacment. I need to get the current value of this one and use it as input for another function, but First I would like to get the current value and save ina text file. I tried this
if (event == EVENT_LEFT_CLICK_UP) || (event == EVENT_LEFT_CLICK_DOWN) { int p; GetCtrlVal (panelHandle, PANEL_RINGSLIDE_1, &p); FILE *OutFile = fopen("C:\\Users\\Student\\Desktop\\ringtest.txt","w"); fprintf(OutFile,p); fclose(OutFile); }
I need to get the current value of the ring (& p) to write to the file ringtest.txt.
Also, I need to use this value (& p) as another entry in the same program.
IE value of & p must be used in
b = c * 5; where c is the value of the current & p.
Can any 1 help?
You're right: EVENT_LEFT_CLICK_DOWN is not a valid event for the CVI. Valid events are listed in the userint.h file, and are the only events that can be caught in the trap in a point of order. On the other hand, you're assuption on EVENT_VAL_CHANGED is correct: you can trap forget the EVENT_CLICK_UP event.
According to the second question, looking at the definition for fprintf you must pass a string format as the second parameter to the function, then the value to write to the file. In your case, the correct syntax is:
fprintf (OutFile, "%d", p);
-
How can I get the current state "onto the Pixels?
Hello community,
Here's the function that creates a switch that handles "snap to Pixels":
index.html:
<div id="STP_input" onclick="switchOnOff(this)"> ... </div>
main.js:
$("#STP_input").click(function () { var a = switchOnOff(this); if (a) { csInterface.evalScript('switchSTP(true)'); } else { csInterface.evalScript('switchSTP(false)'); } });
HostScript.jsx:
function switchSTP(checkBTN) { 'use strict'; var condition; if (checkBTN === true) { condition = true; } else { condition = false; } var idsetd = charIDToTypeID( "setd" ); var desc26 = new ActionDescriptor(); var idnull = charIDToTypeID( "null" ); var ref6 = new ActionReference(); var idPrpr = charIDToTypeID( "Prpr" ); var idtoolsPreferences = stringIDToTypeID( "toolsPreferences" ); ref6.putProperty( idPrpr, idtoolsPreferences ); var idcapp = charIDToTypeID( "capp" ); var idOrdn = charIDToTypeID( "Ordn" ); var idTrgt = charIDToTypeID( "Trgt" ); ref6.putEnumerated( idcapp, idOrdn, idTrgt ); desc26.putReference( idnull, ref6 ); var idT = charIDToTypeID( "T " ); var desc27 = new ActionDescriptor(); var idtransformsSnapToPixels = stringIDToTypeID( "transformsSnapToPixels" ); desc27.putBoolean( idtransformsSnapToPixels, condition ); var idtoolsPreferences = stringIDToTypeID( "toolsPreferences" ); desc26.putObject( idT, idtoolsPreferences, desc27 ); executeAction( idsetd, desc26, DialogModes.NO ); return; }
But when I hide the Panel and show once again, that the switch back to the default state, turn on my Panel, not "hook to Pixels" PS settings setting. Is it possible to get the current status 'Hang the pixels' setting? How?
Best regards.
See post 8 in this thread:
Re: Need someone to update or create script: "snap to grid of pixels.
-
How to get the current selected action.
Hello
I would get the currently selected action.
Please refer to the image below. Vignette (selection) is selected.
Is there a script that I could use to get the which?
Your help is very appreciated.
getSelectedAction() function getSelectedAction(){ var ref = new ActionReference(); ref.putEnumerated( charIDToTypeID("Actn"), charIDToTypeID("Ordn"), charIDToTypeID("Trgt") ); try{ var desc = executeActionGet(ref); }catch(e){ return; } // no action selected var selectedName = desc.getString(charIDToTypeID("Nm ")); var selectedIndex = desc.getInteger(charIDToTypeID("ItmI")); var parentName = desc.getString(charIDToTypeID("PrNm")); var parentIndex = desc.getInteger(charIDToTypeID("PrIn")); if(isActionSet( parentIndex, parentName )){ var setName = parentName; var actionName = selectedName; }else{ var setName = findAction(parentIndex, parentName ); var actionName = parentName; } return [setName,actionName]; }; function isActionSet( parentIndex, parentName ){ var res = false; try{ var ref = new ActionReference(); ref.putIndex( charIDToTypeID( "ASet" ), parentIndex ); var setName = executeActionGet( ref ).getString(charIDToTypeID("Nm ")); if(setName == parentName) res = true; }catch(e){} return res; }; function findAction(parentIndex, parentName ) { var i = 1; var found = false; while (!found) { var ref = new ActionReference(); ref.putIndex(charIDToTypeID('ASet'), i); var desc; try { desc = executeActionGet(ref); } catch (e) { break; } finally { } if (desc.hasKey(charIDToTypeID('Nm '))) { ; var setName = desc.getString(charIDToTypeID('Nm ')); var ref = new ActionReference(); ref.putIndex(charIDToTypeID('Actn'), parentIndex); ref.putIndex(charIDToTypeID('ASet'), i); try{ var adesc = executeActionGet(ref); var actName = adesc.getString(charIDToTypeID('Nm ')); if(actName==parentName) return setName; }catch(e){} } i++; } };
-
get the current event (name) of a field - possible / how to?
Hello
I wonder if it is possible to get the name of a field as event:
(form.pag1.mytextfield::enter - JavaScript, client)
var eventname = this.MagicJSfunction();
It is of course possible to get the current name of the event with:
(form.pag1.mytextfield::enter - JavaScript, client)
var eventname = event.name;
It's a shame it's always = 'Focus' wherever I use it (form.pag1.mytextfield::ENTER - JavaScript, client) (form.pag1.mytextfield::EXIT - JavaScript, client)
(form.pag1.mytextfield::enter - JavaScript, client)
my_scripting_obj.my_set_design_function(this, eventname);
Reason:
I use to change the structure of a field in realtion to his event in my script object. By calling the function of my script object, I'd use some copy/paste.
I have more than 120 field where this function must be called to enter and exit the event.
Hello
Does that help? http://assure.ly/h8ZLr5.
In this case, I call the function entry and exit of the events of each field.
Niall
-
How to get the current state of the son process
Hello
If I know that the instance id of a child process.
How can I get the current state of the child (e.g., completed, running, etc.) process in the code "PBL"?
Thank you in advance.Hello
Here's a way to display the status of children sub-process engendered by a process parent process creation activity. In this sense, the process id of the subprocedure is "ChildProcess. The id of the activity of creating processes in the parent process that causes the work item instance in the child process called 'SpawnChildren '. This logic is performed from inside the process parent in an activity downstream process creation activity, called "SpawnChildren".
Display statements have been added just to see you return values (do) their leash not when going into production.
display "Children: " + children + "\nKeys: " + children.keys + "\nLength: " + length(children) + "\nInstance id of child: [" + children["SpawnChildren"] + "]" if children["SpawnChildren"] = null or children["SpawnChildren"] = "" then display "Child is completed" else bp as BusinessProcess connectTo bp using url = Fuego.Server.directoryURL, user = "test", password = "test", process = "/ChildProcess" instance as Fuego.Papi.Instance instance = getInstance(bp, instance : children["SpawnChildren"]) logMessage "run Instance: " + instance.id using severity = DEBUG display "Status: " + instance.status + "; inside the child process in the activity: " + instance.activityName disconnectFrom bp end
I downloaded the project I used this in to http://www.4shared.com/file/130890113/2d825960/ChildrenOfaParent.html.
Hope this helps,
Dan -
See above
I reinstalled Firefox Desktop, I downloaded my favorites of Carbonite, how can I get the current Firefox to accept?
You do backup your bookmark as a .json file?
Restoration of bookmark
-
I want to get the current music, I have on my iPod out of it and start again. How can I do this?
Open iTunes, plug in the iPod, select what you want to be on your iPod, sync.
-
Get the current value of the menu a cluster ring
Hello
I am trying to program a bunch of rings of menu to use the same options and disable the option even in the other rings of menu if it has already been chosen. It works essentially as is at the moment, but it shows each button by using a 'deactivated' option because I'm turning off the option even in the buttons that have this value. I did it using a loop knot and property and [] DisabledItems en mass. Now, I want to go to the iteration of the loop for the menu ring which already has this value.
To do this however, I want to get the current numeric value of the ring of menu and an array of search values. If the value of menu rings appear in this table, then I want to move to the current iteration of the loop. The problem I have is that when I try to use a property node and type the property value, instead of giving me a long 32 output, it gives me the so-called 'Variant', which I have not seen before. I'm not sure how to find a table and see if the value I have is in this table. "Search table" seems just an index to be returned, I think that I want a Boolean or something. I'm also not sure how to skip an iteration of the loop (although I imagine it won't be too difficult to understand mine, I hope).
I apologize if this is very obvious, or if my message is not clear. I started using LabVIEW, a few weeks ago and I'm still learning. I have included a picture of my Subvi downstairs.
Thank you
NathanVariant of data allows to convert the variant to a numeric type (whatever representation you need).
Search D 1 table returns-1 if the element was not found. If you just compare the index with a greater or equal to zero and the result will be if the element was found in the table.
-
problem to get the current date in qml
Hello world
I'm trying to get the current date in c ++ and qml and I used the class QDate, but it still has some problems:
Code:
=====================================================
QDate * nowdate = new QDate;
QDeclarativePropertyMap * nowdateMap = new QDeclarativePropertyMap;
nowdateMap-> insert ("date", QVariant (nowdate-> currentDate()));
QML-> setContextProperty ("nowdateMap", nowdateMap);===========================================================
After setting the nowdateMap, I'm able to get the date in the application, but the format is really weird, I did not use QDatetime, but the restult of shows like ' 2013-1 - 3 T 00: 00:00 ", how can I get rid of the final"T00:00:00 "? or is there a better way to get the current date?
Thank you
QDate nowdate is QDate::currentDate();.
QString nowdatestring = nowdate.toString (); / / to get the date string format, you can define the shape of toString(), you can //search it
QDeclarativePropertyMap * nowdateMap = new QDeclarativePropertyMap;
nowdateMap-> insert ("date", QVariant (QString (nowdatestring)));
QML-> setContextProperty ("nowdateMap", nowdateMap);then in the file qml, using nowdateMap.date will do.
-
Get the current Message of the new screen open message context
When you open the application again [email] message you can use a ViewListenerExtended to get the current context of Message... but the user every interaction with the fields of composition creates a new Message object if you hold is no longer a valid reference (he gets cloned). By changes, I mean using the menu items to add/remove fields, typing in a topic, etc. Does anyone know how to get the context of new/current Message used while the demand again message is open and has been updated? MessageListener does not work for Messages being changed in the application of the new message.
Update: the subject of the message is not be cloned, UI updates not the model.
Maybe you are looking for
-
You can delete my Skype account [deleted for privacy and security] I can't and I have a problem and I can not reset my pass
-
My recovery D says that I'm running out of space. How do I free up space?
My recovery D says that I'm running out of space. How to free space on D. I tried but doesn't seem to work. Any ideas out there. I don't download a lot of things and not use my computer a lot. Have had problems recently with memory. Could it be the p
-
During an office automatic however, patch cumulative for Activex killbitts for windows XP (KB2736233) has failed. error code is 0 x 80070017... How to fix this? He tells me that the installation failed, and when I close it, it asks me to instal
-
Hello I just write a small example of HTML5 database and it works on my new Bold 9900 (. 353), but not on a Bold 9700 (6.0.0.570). The application is compiled with SDK 2.1.1 Code looks like: var db; function openDB() { db = openDatabase("ToDo", "0.1"
-
Maximum HttpConnection without connections exceeded
Hello and good day, Please, what is the most effective way to manage http connections in a case where, for example I need to load data from people and display like this: name of the image -------------- -------------------------- name of the image