Go to a specific byte in a field ?
I know how to go to a specific field on a Form by doing go_item. My question is, can I go to a specific byte in the field? Say I want to go to the place in the field where the value entered in it ends. Is there a way to do this?
Thanks
Wayne,
Check out the "Cursor Position PJC Demo" in the Oracle Forms 10g Sample Code. I believe this is what you are looking for.
Hope this helps.
Craig...
Similar Messages
-
How to know the specific size of a field in oracle table
Hello,
oracle 11.2.0.3 on redhat
i have three tables with same structure, table0, table50, table100:
create table table0 (id number, shipment RAW(2000), options RAW(2000));
i inserted 10000 rows in each but with some differences:
table0 has 10000 id, but shipment and options has null values
table50 has 10000 id, but shipment and options has only 5000 rows, the other 5000 are null values
table100 has 10000 rows of id, shipment and options. No null values.
I want to know the specific size of each column, also the size of each row, to know the exactly size of the field.
for example:
row 1, column options of table100 has "asdfasdfagasdgasbabsdgoasdpgiahnwe1129u412094u12"
row 2, column options of table100 has "a".
both are raw datatype, but i think its space will has different size (bytes), how to know it? any query?
I found this query:
select owner,tablespace_name,segment_name,sum((bytes/1024/1024)) Bytes
from sys.dba_extents
where owner in 'MAA' and segment_type='TABLE' and segment_name ='TABLE00'
group by tablespace_name,owner,segment_name
order by owner,tablespace_name,segment_name, bytes; but i think it isn't my solution.thx mr. sb92075
i tried with vsize too but same result:
with table50
SELECT VSIZE(OPTIONS) FROM TABLE00;
VSIZE(OPTIONS)
1000
1000
1000
1000
*with table100
SELECT VSIZE(OPTIONS) FROM TABLE100;
VSIZE(C_ELECCION)
2000
2000
2000
2000
*it's the same size for 'a' like 'abcasdfjañldngaosnbaposnbpaosuqroiwejrklasndiaoshbaposdjgajs'?? It's hard for me to believe.
data is saved in blocks, a extents is a contiguos number of blocks and a group of extensions are segments. If you insert some text in a table field, Oracle create a extension and insert there the data but depend the bytes you insert Oracle will create one or more extents. How to know this specific space in that field? -
EDI-IDOC: want to generate Reference Specifications for Bank Details field
Hi Guru,
We are running to the situation that we use EDI with China vendor (using China bank account). The bank account for China has greater than 18 characters which is the maximum limit for bank account field. Based on note 96624, we are suggested to maintain the exceeding amount into the "Reference Specifications for Bank Details" field. However, when I run the payment on F110, IDOC do not generate the reference field.
How can the bank reference field be included in the IDOC?
Thanks,
SongHi Auro,
You use use EDI_DC-SNDSAD field, currently this field is used no where.
If you not sure where to see double control record and click address info tab
you can use either field receiver or sender.
For testing use WE19 transaction and pass your paymethod to following field
and then inform to EDI Mapper that your sending paymethod in this field.
For them this field is very easy to grab.
Let me know if you any concern.
Thanks,
Narayan -
How to write a specific bytes of a string
I'm using DataOutputStream object to write a specific string to a file. If I want to write that string
to a file with preserving of 20 bytes (for example) as a header of the file. Even though the length of the string can be at any size, I just want it alwayst in 20 bytes. How could I do that. Please help! Thanks a lot.String s = "Less than 20";
while(s.length() < 20) {
s += " ";
System.out.println(s + " " + s.length());Mark -
Specific value in one field determines value in fields
I am building a form using Adobe Pro and I am fairly new to Java Script.
One of the fields I am creating can only be a specific value (nra). If nra is selected it needs to blank out a second field and put a number 1 in a third field. Can java script be used on drop down boxes? If not it is ok if the nra field is a free form text field.
Thanks,
ChristyThe type doesn't really matter, as long as the value can be validated. But
if you use a drop-down, make sure to tick the option to commit the selected
value immediately, or the script will only kick in once you leave the field.
There are excellent tutorials about using JavaScript in Acrobat on
AcrobatAnswers.com, and of course there's the Acrobat JavaScript API
Reference, here: http://www.adobe.com/devnet/acrobat/javascript.html -
How to use PPR in Adv Tbl specific row specific UI element/attr/field
I have an editable advanced table, it has a controlling column that depending on the value you select will require or not require specific fields
how do I use ppr to enable this feature without risking affecting the other rows within the advanced table?
Example
Sample Table
Row 1, Value is "A" = Field 2 and Field3 is required
Row 2, Value is "B" = Filed 2 is required Field 3 is notFound a solution.
Create a transient attribute in the Adv Table target VO that will store "require" flags, e.g. RequireField1
Modify target field Required Attribute in the Advanced table UI, spel must point to this value.
catch and pass EVENT_SOURCE_ROW_ID_PARAM in the PPR event to the AM method.
set the RequiredField transient attr, -
Hi,
I would like restrict users from selection systems from the drop down in "Risk Violations" Tab. In order to achieve this, I opened GRAC_OIF_RQUEST_SUBMISSION" application in Admin mode and disabled. As a result, this field is disabled. But this is blank. I am unable to maintain any value in it. I tried to select a value from the drop down and then disabling the field. I saved with the selected value. But later when Access Request application accessed, it is again showed blank.
However, when a user performs risk analysis, application still performs for all the connectors!
user is authorized to perform risk analysis for specific connector (controlled using GRAC_SYS object). But not sure where from application is picking up different connectors?
Secondly, I also noticed that this "System" drop down has multiple entries in it along with "ALL". I dont have any clue where these values are coming from!
Can anybody help me in understanding and addressing this?
Also, may I know how other are tackling this? I mean, is "System" drop down disabled with specific value as default or enabled with ONLY specific value?
Please advise.
Regards,
FaisalHi Faishal,
I went through the challenge you have described. On top of mentioned issues - do you know that if a user select a system (has requested a role for it) but you have no sod rule book defined for it - grc will identify no sod risks for request and will mark all roles (even those for other systems for which rulebook is defined) as 'green' on access approver screen. The expected behavior would be only selected role would be marked as green and others would be still red. We have tried also with option 'ALL' however results provided in our case were not accurate (we did recons to single systems)
This strange system behavior (SP14) was reported to SAP. In this case if you have path defined for SoD detour - system will not go on detour as there is no risk defined.
What we did -was we setup a fix value in this field (our production system with rulebook) an put this system as parameter TVARV (system depended) and using the value of this parameter we fixed the system against which the analysis are executed.
Filip -
Technical specifications for adding a field in screengroup
Hi ,
I have a view profile say FL . In the activity and layout view I have added a Tab say "85" -Additional data 3- . Now I have made tab active and used 150 ans screen group "150-USER data"
I want developer to add a new cusom filed in screen group 150-user data .
Specification for field is ready .
Question is
1) How to know which table this screen group 150-user data belongs to so that developer can add it there ? Or is there any other method of specification .
2)I wil be using this field in equipment also . However in equipment I would like to control data orgin from FL or individual maintenance . How to enable this feature in custom fields of equipment master data .
NPBNPB,
Normally the user defined fields are filled through the user exit and the user exit documentaion would help you in identifying which core table needs to be extended to include the custom fields.Have a look at the same for help.
1) In your case the custom fields needs to included to EQUI or IFLOT or EQUZ or ILOA depending upon your business needs.Have a look at the user exit (ITOB0001 )help for detailed documentation.
2). It would probably require additional coding to accomplish this requirement(Visibility of transfer or individual maintenance for these custom fields), but it should be possible through the same user exit and or save user exit (IEQM0003 Additional checks before updating equipment).
Regards
Narasimhan -
How to read binary files wrt specific BYTE size and length??
Hello Everyone,
I have a project I want to accomplish. I have a binary file, and I would like to read the data and print on wfm in a specific order and size.
The data is 16 bit binary type , and needs to be read in chunks of 2 bytes.
i have 30 bytes of sample 1.
followed by 2 bytes of sample 2.
followed by another 2 bytes of sample 3.
steps 2-4 should be repeated 10 times and then i should read sample 4 which is of 2 bytes.....
How should I do it?? I don't have any VI build... all i have is the example VI...
can anyone pleasehelp me???
Now on LabVIEW 10.0 on Win7smercurio_fc, sorry for the confusion, i will try my best to explain...
1. No, i don;t have to read the file again, once it has read, I used
while loop just to see the data updating (i press run, and before i can
visualize i have the waveforms; i can get rid of the while loop)
2. I have 30 different values of 1 sample. actually, the data is cmg
from tri-axial accelerometer; each axis is of 10 bytes(hence 3*10 =
30bytes)
3. I am repeating the steps 2-4 10 times because the data was written
into the binary file after 10 times sampling the sensors(if first 3
samples are read @ 1000hz, sample 4 was read at 1000/10 = 100hz)
4. I am using the graphs to interpret the values, that's it. The
values are already scaled when they were wrote to the binary file, I
have to simply interpret it.
I have made some changes in the VI, now i am reading only the first
30bytes, that too, in chunks of 10-10-10 bytes, and plotting the 3
samples simultaneously on a waveform chart. (will approach 1
sensor/sample at a time) and running the loop for 10 times. I have changed I8 to I16 now.
Please let me know if it makes sense to you now.
P.S. each sample is a sensor data.
Now on LabVIEW 10.0 on Win7
Attachments:
data_read.vi 24 KB -
How to Add a Specific Number to a Field
Hello, I'm using a fillable Adobe PDF and I need Field "B" to be the total of Field "A" plus .11. What's the right calculation for that? What I'm doing isn't working. Thanks!
Do you get any errors in the JavaScript console?
I get the following error:
Acrobat JavaScript Debugger Functions Version 11.0
Acrobat EScript Built-in Functions Version 11.0
Acrobat SOAP 11.0
SyntaxError: missing ; before statement
2:Field:Calculate
Because the Simplified field notation is the front end for obtaining parameters for a JavaScript function it must parse the entry and does this by looking for spaces to separate field names, operators, and values.
There is a naming standard for field names which must start with an alphabetic character followed any alphanumeric character and cannot include spaces, punctuation marks, or other special characters. You need to rename your field or do some special coding to allow the Simplified field nation to accept the field name. -
Eg.: I have a drop down menu with the following options: "1,2,3,4,5". What I want to do is the followin: If the option selected is "1" the field "Color" must be filled with "Green", if "2" the field color must be filled with "Red", etc
You can use something like this as the custom calculation script of the color field:
var v = this.getField("Dropdown1").valueAsString;
if (v=="1") event.value = "Green";
else if (v=="2") event.value = "Red";
// etc.
else event.value = ""; -
Comb Fields - with specific type of comb field look
I am attempting to make the comb fields as shown in the attached screen capture. Any thoughts or ideas would be welcome.
Thank you for your answer!
What would I need to do to ensure that the text spacing matches the comb. Are you refering to some type of kerning or spacing? Fixed font vs Proportional fonts?
Thanks again -
Formula to get last record entered for a specific code in a field
I work at an inpatient facility where our patients experience several movement actions -- transfers from unit to unit, Leaves, return from leaves, and change in commitment status. We collect all of these actions in one table. For our census report we use a subreport to show the list of patients who are on leave. The problem I am having is pulling the most current movement that was a leave if the last movement action code entered was a change in commitment status. We really should not have put the change in commitment in this table as it is not a movement. When a change in commitment occurs and the patient is on leave, they drop off my report because the last change was not a leave. We have to enter the leave again so it is the last record entered to fix.
The table contains these fields:
Doc_ID
Parent_ID
Folder_ID
Effective Date
From_Unit
To_Unit
Time_of_Change
Leave_status_Code
Move_Action_Code
Commit_Status_Code
The Move_Action_Code field contains these codes:
L = Leave
C = Change in Commitment Status
B = Return From Leave
I = Initial Admission
D = Discharge
R = Recommitment
V = Unit to unit transfer
A patient may have several leaves in the same admission (home visit, then back, etc.). I need a formula to show only most current leave if they haven't returned from leave and need to totally ignore any change in commitment status.
Thanks in advance to everyone for your help in this forum!Hi Jerri,
To identify a patient, I assume it would be Folder_ID. Create a group on this field. Also create a group on Effective Date.
Hide the Detail section and the Group Headers for both of these. You can also hide the Group Footer for Effective Date.
In the Group Footer for Folder_ID, drop in the Move_Action_Code and any other fields you want.
When you look at your report, this will show you the last Move_Action_Code for that patient.
If you can group your data properly, the Group header will always show the first record and the Group Footer will always show the last record.
Hope this helps,
Brian -
How to Place the Cursor at Specific Position with-in a Char Field ?
Forms 4.5 ver.
Sun Solaris / Citrix env.
Char Field - Length 65434
How Can I Place the Cursor at "Specific Location"
with in a Field ?
with GO_ITEM('field Name') I can place the Cursor at Specific Field.
But, How Can I achieve to Place the Cursor at Specific
Position within that Field ?
I know, the starting position, length of string I want to hightlight with the Cursor.
tried using :
go_item('substr(field_name,position,length)') ;
but didn't work !
Is it possible ?
Thanks, PeriThe only cursor postion behavior that can be controled is the item property "Keep Position".
The following is the text from the on-line help for item property "Keep Position"
KEEP_POSITION Specifies whether the Keep Position property should be True or False. When Keep Position is True, the cursor returns to the same position it was in when it left the text item. When Keep Position is False, the cursor returns to the default position in the text item. Valid values are PROPERTY_TRUE and PROPERTY_FALSE. -
Breaking Specific Bits/Bytes off Hexadecimal LIN Signal
Hello All,
I am currently working on implementing a LIN-Analog Converter in Labview, and in order to do so I must break off a specific set of bits and convert these to decimal format. The VI currently breaks off the first 8 bits and converts them to decimal, however I am a bit confused on how to modify this for my present needs. I need to break off the "3rd and 4th byte pairs" (i.e. bits 17-32). This point may be illustrated more clearly in the attachment entitled "Bits of Interest". Furthermore, my current VI is attached to this message. Any assistance would be greatly appreciated!
Regards,
Colin
Attachments:
Bits of Interest.jpg 15 KB
LIN_IBS_WORKING.vi 86 KBIn your case, you only care about specific bytes. This makes like really easy. Here are two possible solutions for this.
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
Attachments:
Get U16 from String Data.png 13 KB
Maybe you are looking for
-
What is the best way to get a hold of Verizon to see if they sent my replacement phone?
I'm hoping I didn't screw myself on this. But here is what happened, I lost my new iPhone 5c at Disneyland. I called the insurance part. They made me submit a claim affidavit and said they were going to send me a new phone overnight. But I haven't re
-
IPOD does not do anything but click
Hi, I have got a 2gb nano, it has been plugged in to charge, and it does nothing. I had the apple logo flash up, then kinda die away and fade, then all the ipod has done is click. I have tried restore, rest ect, the pc does not see it anyway so i can
-
Upgrade 10.2.0.1 - 10.2.0.4 OEM issue
Hello! We upgraded DB from 10.2.0.1 to 10.2.0.4 on LINUX redheat v.4. We apllied the patch and then run DBUA. Everything went smooth. But then we noticed that JOBS (that run throuh SYSMAN.MGMT...) don't execute anymore. When we create a job it hangs
-
Problem using Change production and SFC step status with Simultanious group
Hello, We just upgraded to ME 5.2 SP5 patch which was released two days back, the problem with Simultanious group is fixed and SFC gets the correct next step as per defined in the router (Previously there was bug). But when we try to use change produ
-
Somehow i deleted EVERYTHING my ipod touch no icons at allhow do i fix this
somehow i deleted everything from my ipod touch(no icons at all) how do i fix this