Assign the numeric value of Substitution Variable?
What I try to do is:Read a CSV file via the unix shell and choose some columns in each row
Transmit the data to a MaxL Script
Assign the data passed to substitute variables in the MaxL script.
Problem:
Two of the columns contain digital data (for example: 0.5 or 60 etc..) I want to set the substitution variables in these digital data (without the quotes). I tried to use
Edit the < app and cube name > database variable 'Variable' $1;
but it gives me error
ERROR - syntax error 1242021-1 ['. 5']
I tried with quotes single and double, but they value the value of the variable $1
If I manually set the value of this Variable through the Regional service to 0.5, everything works perfectly. Any ideas on how to do this? the Ser60 does not provide a solution.
An example is
startMaxl scriptname.mxl "0.5"
alter database appname.dbname set variable "VariableName" $1;
or
startMaxl scriptname.mxl 0.5
alter database appname.dbname set variable "VariableName" ' \'$1\' ";
See you soon
John
http://John-Goodwin.blogspot.com/
Tags: Business Intelligence
Similar Questions
-
Assign the textfield value to a variable
How can I transfer a textfield value in the variable?
[CODE]
import flash.text. *;
import flash.events. *;
import flash.display. *;
Button named Player_save
Player_save.addEventListener (MouseEvent.CLICK, savename);
function savename(event:MouseEvent):void
{
playerlist. Text = Player_name. Text;
trace (Player_name. (Text);
Player_name. Text is the TextField
}
[/ CODE]
First declare the variable, then assign the text value of the textfield object.
var playerName:String = player_name.text;
-
How to assign the next value in the sequence directly in a variable?
How to assign the next value in the sequence directly in a variable without using a table TWICE in PL/SQL.
BluShadow wrote:
How about a quick test on 11g, just to see if you directly select a sequence in a variable is significantly better than the mark of DOUBLE.
...
Nope... no obvious difference.
This is because there is none: Oracle's SELECT sequence. NEXTVAL FROM DUAL under the covers. The direct assignment is just a convenient encoding for us, but it does not change the work that accomplishes Oracle.
create sequence s; alter system flush shared_pool; declare l_num number; begin l_num := s.nextval; end; / select sql_text from v$sql where parsing_schema_name = user;
SQL_TEXT Report the number of l_num; begin l_num: = s.nextval; end; Select sql_text from v$ sql where parsing_schema_name = user Select double S.NEXTVAL -
Range of values for substitution variables
Hello
Can assign us range of values for substitution variables...
CurrActuals: Jan: Mar
CurrFcst: Mar: Dec
When I set up and use the void daataforms var aboive... his throw error... How can I set vales for variable sub range.Jan: Mar will not work in Web Forms. I have not tried 11.1.2.2 but older versions, it will not be
-
How can I get the numeric value of a reference?
I would like to get the numeric value of a reference. If I look at any reference with a probe, I can see it has value, i.e. F280006B. I would like to enter this value in a digital indicator for some troubleshooting I do. but running a Ref directly in a digital indicator introduced the code. Somehow the probe's work, it must be accessible. All advice out there?
Type caster in U32.
Lynn
-
change the color of a function of the numeric value indicator bar
I'm trying to customize a digital indicator, a bar of tank, to change the color of the bar according to the numerical value.
I assumed that I could to make it by creating a property node for change FG and BG, connected to two color within a structure of the case box, but when I can function returns an error message.
does anyone know how to customize?
You must use the property 'fill color '.
-
Is it possible to connect a simple 1 d array to a digital indicator or what would be the best way to display the numeric values of the array on the front panel? Examples or suggestions would be greatly appreciated.
Thank you
Tunis
Thank you Adam, it's originally in a while loop, I placed it in a loop for example, wired County in the for loop and presto, this son of a digital indicator. It works very well. Thanks for the help folks.
-
How do you get the numeric value of an image
How do you get the numeric value of an image
This in a small example
var Red = ' \u00FF\u00D8\u00FF\u00E1\x05oExif\x00\x00MM\ '.
Here is a link to a script open source that generates a string that represents the data of a file binary, especially useful to integrate a small image in a script or file patterns in a JSON structure, for example:
Get the data from binary string
HTH,
Domestic-
-
Hello fellow Adobe users,.I'm trying to find a way to see the numerical value of average and presents its equivalent word. Rather than display the number, it should show the following:
A numeric score from 3.1 to 4 should show as pending
A digital index of 2.1 to 3 should show meets expectations
A numeric score from 1.5 to 2 should show as below performance
A rating of 1 to 1.4 should show as failure
Should what simple javascript I type the javascript custom in the text field properties?
Looking forward to your comments.
Thanks in advance!
Jonathan
You have a field that is the calculation of this average in number? Let's say you do and it's called 'average '. You can then use this code as the custom for the field "Average in the words:" calculation script
event.value = ""; var a = +this.getField("Average").value; if (a>=1 && a<=1.4) event.value = "Fail"; else if (a>=1.5 && a<=2) event.value = "below performance"; else if (a>=2.1 && a<=3) event.value = "Meeting Expectations"; else if (a>=3.1 && a<=4) event.value = "Outstanding";
-
SQL: How to tell the difference between the numerical value and Alpha numeric
Pls check the following requirements and let me know how to prepare the SQL:
1. I want to find the product that begins with Alpha value separately
2. I want to find the product that starts with the numerical value separately
data are the following:
CREATE TABLE prod (product_code VARCHAR2(4) NOT NULL)
Kind regardsINSERT INTO prod VALUES ('L016') / INSERT INTO prod VALUES ('A035') / INSERT INTO prod VALUES ('B001') / INSERT INTO prod VALUES ('1717') / INSERT INTO prod VALUES ('7151') / INSERT INTO prod VALUES ('7019') / INSERT INTO prod VALUES ('0729') / INSERT INTO prod VALUES ('0730') / INSERT INTO prod VALUES ('L007') / INSERT INTO prod VALUES ('C013') / INSERT INTO prod VALUES ('D008') / INSERT INTO prod VALUES ('L021') / INSERT INTO prod VALUES ('0710') / INSERT INTO prod VALUES ('0718') / INSERT INTO prod VALUES ('L005') / INSERT INTO prod VALUES ('0716') / INSERT INTO prod VALUES ('0711') / INSERT INTO prod VALUES ('0701') / INSERT INTO prod VALUES ('0724') / INSERT INTO prod VALUES ('0728') / INSERT INTO prod VALUES ('0714') / INSERT INTO prod VALUES ('0704') / INSERT INTO prod VALUES ('7150') / INSERT INTO prod VALUES ('L024') / INSERT INTO prod VALUES ('L033') / INSERT INTO prod VALUES ('0721') / INSERT INTO prod VALUES ('0708') / INSERT INTO prod VALUES ('0723') / INSERT INTO prod VALUES ('L004') / INSERT INTO prod VALUES ('L018') / INSERT INTO prod VALUES ('0725') / INSERT INTO prod VALUES ('0719') / INSERT INTO prod VALUES ('0726') / INSERT INTO prod VALUES ('0712') / INSERT INTO prod VALUES ('0727') / INSERT INTO prod VALUES ('0703') / INSERT INTO prod VALUES ('TEST') /
Yamen1)select * from prod where translate(substr(product_code,1,1),'#0123456789','#') != '#' 2)select * from prod where translate(substr(product_code,1,1),'#0123456789','#') is null
Ravi Kumar
-
Sharing the values of substitution variables complex between ASO and BSO of databases
We ASO and Essbase BSO names of members of database with spaces in and need to store some of these member names in the substitution variables. However, this should be done differently for ASO and BSO, due to script syntax calc requiring double quotes and MDX requiring hooks. For example:
ASO:
& CurWeek value = 1 week
MDX: [& CurWeek]
ASF:
& CurWeek value = "week 1".
Calc script: & CurWeek
Therefore, the substitution variables can be shared between ASO and BSO, cubes because the value of the variable BSO requires double quotes because of the space in the name of the Member.
Is there a way to get the above to work with ASO and OSB? Unable to escape the quotes in the calc script syntax? Or double quotes can be removed in the MDX formula?Yuck! I'm curious to see if someone has a really elegant solution to this. :)
I'm sure you have seen this already, but a workaround is to create an alias that is not a space (or probably better, use a name without a space Member but leave some space in the alias).
What is your specific motivation to avoid the solution two variables? If it is purely of synchronization, do not forget that even with a variable unique no guarantees of the formulas of Member ASO and BSO calc scripts will be always synchronized without a response, because the formulas (by the SER60) pick up not a new value until the application is restarted.
-
Business rule - unable to name the text data using substitution variables
Hello
I can't assign a value of text stored in a variable substitution. I read the posts that you can't assign string values I just want to check if it was possible using substitution variables.
For example.,.
Trouble (scenario, Version and year)
"Test year".
(
"Test year" = &;
);
EndFix
& those is a substitution variable whose value is "FY13.
Please advice.
Thanks, CzThe same rules apply, you must apply a numerical value, because this is what is stored in essbase data compared to the intersection.
See you soon
John
http://John-Goodwin.blogspot.com/ -
How to interpret the numerical values of SQL_ColType()?
Hello
After the execution of:
..
Call SQL_Connect("abcDB","user","pw","") ' abcDB is an ODBC link to my Mysql 5 database
Call SQL_ExecDirect ("SELECT id, temperature, tsdat FROM v$ _header WHERE id")< 1000")="">
..> the SQL_ColType(1..ColumnNo) variable shows me the data types of each column to a numeric value, for example:
SQL_ColType (1) = 4
SQL_ColType (2) = - 9
SQL_ColType (3) = 93What real data types are behind the values? It would be nice to get a complete list of all possible values?
Thank you.
Hi ddehn,
The SQL_... orders () are the old method for DIAdem to connect to SQL databases, using the ODBC approach. Since the tiara 10.2 the ADO approach is the recommended method. This is the function that I used to use to make sense of the values SQL_ColType():
Function GetODBColTypes()
Dim j, jMax, ChTypes
jMax = SQL_ResultCols
< 1="" then="" jmax="">
ReDim ChTypes (jMax)
FOR j = 1 TO jMax
IF SQL_ColType (j) = 93 THEN
ChTypes (j) = "DateTime".
Else if SQL_ColType = - 1 OR SQL_ColType (j) (j) > 8 THEN ' STRING
ChTypes (j) = "String".
ON THE OTHER
ChTypes (j) = 'number '.
END IF ' SQL_ColType (j)
NEXT ' j
GetODBColTypes = ChTypes
End Function ' GetODBColTypes()Brad Turpin
Tiara Product Support Engineer
National Instruments
-
The final value of a variable declaration
Hi all
I work through a project that has many different results based on what options the user click.
Basically, I set up a variable called "totalclicks" and set a tip action to assign the value 1 to this variable whenever a user clicks on the selected items.
I was wondering is there an easy way to get the final value of the "totalclicks" to display in a report? We currently use an internal server and Adobe Quiz results Analyzer. Ideally, I would have just the user 'show results' as normal and the value of this variable is displayed somewhere.
Any ideas?
Thank you
It would be easier if you posted a screenshot of the slide: are all those click boxes on a slide, or you want to go to the next slide, click on another box click here? I ask this because of your sentence «Continues the slide...» » ?
No need to create another user variable. Perhaps you understand very well what it means to be a variable: it is just a container, and you can change its value as many times as you want.
So, if you want the click to increment and move to the next slide, the advanced standard action would be:
Expression totalclicks = totalclicks + 1
Go to the next slide
With the first click var will increase to 1, with the 01:58, etc. In the statement list progress of actions, in opposition to the drop-down list of simple actions (accordion) you do not Increment (ask the devs since many versions to add it, but they can't hear me). This is the reason why you need to the statement Expression.
Take a look on: http://blog.lilybiri.com/statements-advanced-actions-in-captivate-6-li
Lilybiri
-
Where can I find the numerical value for GenICam standard pixel formats?
I am putting in place a structure of case for the reconstruction of image formats using the pixel as IMAQdx output format. Confirmed the consistent property of 'Pixel Format' numeric U32 in id IMAQdx from camera to camera, but it's just a number, and I don't see that the number of image formats used by the cameras I (I need code for other formats I've yet to see). The GenICam standard 1.1 supports 52 image formats, and no doubt IMAQdx has a corresponding U32 value for each format. Where can I find this list? The .pdf for the GenICam standard lists the formats available in name only and does not have a corresponding numerical value.
Hey Nasgul
The attribute 'PixelFormat' is actually a list of name/value pairs. For GenICam cameras (such as GigE Vision) these names and these values are determined by the camera, no IMAQdx XML file. The names themselves are normalized by the part of the "Standard feature Naming Convention" of GenICam (but aren't their values).
I think you speak for the Format of Pixel property node. I think you are right that it is a digital. It's probably because the available modes can not be known before you actually run the code and the LabVIEW enumeration values must be known when editing, no compilation. The node itself as a digital is probably as a relic of the firewire interface. It would be probably more useful as a string, I imagine.
You probably want to use the generic way of manipulating the attributes instead. You initially set the property 'Attribute Active' in 'PixelFormat' and then you can then query a list of name/value pairs available or simply set the value. IMAQdx allows you to set the value directly as a string (using the standard names) rather than having to translate it into a numeric value.
Eric
Maybe you are looking for
-
Lately, I have a bad time with my Satellite P100.I have no sound whenever I have turn on and then after going in etc Device Manager sound comes back until I have then turn on the computer laptop and same problem. Begins to regret having bought a Tosh
-
problems with wifi after update? anyone?
I use A953, just updated to build mils2_u6_4.1 - 22, the system version is: 64.1.22.S953. Retail.en.DE So far, I like the update, looks cool, like the animation of the screen-go-to-sleep But, my WiFi is not working properly, there are just a couple o
-
ProBook 4530 s: win 10 results ProBook s 4530 in no Wi - Fi
Good afternoon, all! I tried to upgrade a ProBook s 4530 on Windows 10. Everything looks good, until I try to connect to Wi - Fi. The widget simply says 'Impossible to connect wireless' and there is no showing why Event Viewer entry. The wired adap
-
wiaca00d. The PNF made this file?
My computer hangs on this file at a time to the top and Defender scan
-
I have problems with my emails being delivered to me. get many failures of postmaster
I get a lot of Postmaster failuress to my email