How to set "Maximum Lenght" column property for database block at RUNTIME?
Hi folks,
Is it possible to somehow set a "Maximum Length" property for database block column at runtime?
I have a dynamic form, which maintains mostly "STATIC DATA" within all application which are stored in different static data tables (which have similar structure). But now, description column in some of those tables was extended (not in all at this stage). I would like to avoid truncating form error while reading data from those extended tables, so I would like to set an MAXIMUM SIZE to accurate value at the time when I'm specifying TABLE NAME for that database block.
What property should I use to set it?
-- before executing query in "MAIN_BLOCK" I always set QUERY_DATA_SOURCE_NAME to user defined value => STATIC DATA TABLE name
Set_block_Property('MAIN_BLOCK',QUERY_DATA_SOURCE_NAME,:control.table_name);
Set_block_Property('MAIN_BLOCK',DML_DATA_TARGET_NAME,:control.table_name);
-- here I would like to set also MAXIMUM LENGHT for particular column (based on some condition, etc.. correct value I can get from ALL_TAB_COLS dictionary
SET_ITEM_PROPERTY('MAIN_BLOCK.DESCRIPTION', <<XXXXXXX>>, 300);What should I use instead of "<<XXXXXXX>>" if I want to overwrite MAIN_BLOCK.DESCRIPTION column's maximum length to 300?
Thanks,
Tomas
Hi Magoo, thanks for reply.
Yes, but then user can get other errors while trying to set description with value longer than in database (for all not extended tables).
Aby idea how to implement SET_CUSTOM_PROPERTY like mentioned here?
Oracle Forms - "maximum length" property.
Thanks,
Tomas
Similar Messages
-
How to set the read only property for dynamic ALV column
Hi All,
I have built one dynamiv ALV and I have one name column inside that ALV for which I have to set read only property based on two column fields that exist in the same ALV,say IS_SP and IS_CORP of type boolean.
If any one of the flag is 'X',i have to make that name column as display only and
If both flag are not set,it should be displayed as ediatable column.
I have written one method as INIT_ALV which gets called when ALV is loaded.
Code is as follows:
lr_column_settings ?= wd_this->alv_all_roles.
lt_columns = lr_column_settings->get_columns( ).
LOOP AT lt_columns INTO ls_column.
CASE ls_column-id.
WHEN <NAMECOLUMN>. "name column which should be editable/display
Create Input Field
CREATE OBJECT lr_uie_input_field_ro
EXPORTING
value_fieldname = ls_column-id.
ls_column-r_column->set_cell_editor( lr_uie_input_field_ro ).
After this,I have to set the read only property based on IS_SP and IS_CORP values,
CALL METHOD lr_uie_input_field_ro->set_read_only_fieldname
EXPORTING
*value = 'IS_SP' or 'IS_CORP'
ENDLOOP.
I dont want to use cell variants also.
Help me to achieve this.
Thanks and Regards,
DivyaDivya - I have done it in the past following these documents. Please read it and try it it will work.
Please read it in the following order since both are a continuation documents for the same purpose (it also contains how to change colors of row dynamically but I didnt do that part I just did the read_only part as your requirement)
http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/f0625002-596c-2b10-46af-91cb31b71393
http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/d0155eb5-b6ce-2b10-3195-d9704982d69b?quicklink=index&overridelayout=true
thanks!
Jason PV -
How to set the number of sockets for batch processing at runtime?
Hello all,
I need to change the execution model at runtime. I have achieved this by setting the 'ModelPath' property of the sequence file at runtime. When I set the sequence file model as batchmodel, i need to set the number of test sockets also dynamically. How can this be done? Once i set the number of sockets, i would also have to set the UUT serial number for each socket. Please help me out in solving this.
Thanks and Regards
Madhu Srinivasan.Hi Madhu,
You can do this by inserting a sequence file callback into your main sequence and choose the ModelOptions callback. You can then use the expression step to set the "Parameters.ModelOptions.NumTestSockets" value to whatever you want. If you then use the Test UUTs execution entry point you will be prompted for serial numbers automatically. You could also use this same procedure but alter the ModelOptions callback in the process model directly, either way works just as well but I think that using a sequence file callback gives a bit more flexibility in the system.
Hope this helps,
Nick -
How to set the default value filters for navigational block in WAD.
Hi Experts.
as per the customer requirement . they have bex report we need to convert in to web. but in the bex for one field they using default filters but am not aware in the WEB reports.
Please anyone suggest me how to give the default filter values in the navigation block in WAD.
Thanks
AshokHi,
In the Properties of the Navigation Block pane. Goto WebItem-- Goto List of Characteristics, in that click list it will pop up new window, there enter the required objects wants to be in the default filter area.
Hope it hleps you.
Veerendra. -
How to set a custom column in a workflow task.
Hello,
I'm looking for some assistance a bit with how to set a custom column in a Workflow Task.
I have a List Workflow that starts when an item is created in a list. The workflow, platform type SharePoint 2013, starts a new task, Task1, with Content Type 1. This Content Type has a custom column called Age. Once the Task1 is completed a new task, Task2,
with Content Type 2, starts and has the same column Age, as Task1.
How can I populate the Age column in Task2 with the content of the Age column in Task1?
Since I start the task by running "Assign a task to ..." Action I was thinking to copy the Age column from the Task1 to the list item that started Task1, which has a column Age as well, and then in Task2 to start another workflow - which is associated
with the Content Type 2, that would try to read the Age column from the list item that started Task2, which was set once Task1 was competed - I know it's complex but this is how I was thinking.
The problem with this approach is that I can't get a reference to the list item that started Task2 to read the Age from the list item.
Is there a better approach? I use SharePoint Designer 2013 to design all this.
Any assistance is appreciated.
Thank you.Hello Sebastian,
you can get the Age column from Task 1 and then update the Task 2 Age column with that value. I am not sure why you want to run another workflow on Task 2.
You can perform below steps to set Age column from Task 1 to Task 2.
1. Create Task 1 using Assign a task , wait till the task is completed.
2. Get the Age column value based on Task 1 once the task is completed.
3.Create Task 2 using Assign a task , uncheck wait till the task is completed option.
4. Update the Task 2 with Age column in Task1.
5. Use Wait for the field to equal value , check for Task Status is completed or not.
>>The problem with this approach is that I can't get a reference to the list item that started Task2 to read the Age from the list item.
you can get the related item from task list item to get the main list item.
Other option is, Use Javascript and CSOM in task edit form to get the Age column from Task1 and prepoluate the Age value when Task2 is opened.
Hope this helps.
My Blog- http://www.sharepoint-journey.com|
If a post answers your question, please click Mark As Answer on that post and Vote as Helpful -
IView Deployment - how to set maximum file size?
Hello,
we have a problem while deploying iViews and uploading files to enterprise portal . The maximum upload file size seems to be limited to 1 MB. I have to deploy an iView greater than 1 MB. While deploying with netweaver developer studio I get following error message
in logfile of developer studio:
[19.10.04 / 13:33] #ERROR LEVEL#
com.sap.portal.developmentTools.ideSpecific.eclipse.wizards.sapmakepar.SAPMPWizard$1 > No Information
java.io.IOException: Error writing to server
The direct upload of *.par with EP Component Manager also does not work. After clicking upload-button I get a standard http error page "aktion abgebrochen".
Also on upload of any other document, for example personal documents which are bigger than 1 MB, I get this error.
If I reduce file size of portal archiv lower than 1MB I can deploy and upload the iView.
How canI set maximum upload file size in Enterprise Portal?
Our Version: 6.0.2.4.7.Enterprise_Portal_Service_Pack_2
Thanks for helping me,
NicoleYou need to use a precision argument:
String foo = "a long name to print";
System.out.printf("foo say: %.8s", foo); // 8 maxhttp://java.sun.com/j2se/1.5.0/docs/api/java/util/Formatter.html#syntax -
How to set the Data Synchronisation mode for ADF BC component?
Hi All,
How to set the Data Synchronisation mode for ADF BC component
Thanks
RaghavendraCan you clarify what you mean by the data synchronization mode?
If you mean the Sync Mode, then in 10.1.3 you set this property by:
1. Selecting your DataBindings.cpx file
2. Expanding the "Data Control Usages" section in the structure window
3. Selecting the ADFBC-based data control
4. Setting the "syncMode" property in the property inspector. -
How to set Tile count column or count row?
How to set Tile count column or count row? If not can do, How
to adjust count row or count column?
Thx for all idea.The Tile container's number of columns and rows is calculated
based on each child's width and height (or based on tileWidth and
tileHeight which you can set). If you need more control over the
layout, use Grid. -
How to set maximum number of jobs in oracle
Could pls tell explain me about how to set maximum number of jobs in oracle....
Regd,
MahiI don't think there is any limit on number of jobs that can be submitted to Oracle. However, there is a limit on the number of processes that would execute those jobs (governed by JOB_QUEUE_PROCESSES).
Message was edited by:
Satish Kandi
Typo corrected. -
How to Set A Default Start Time For New Events In Calendar?
How to Set A Default Start Time For New Events In Calendar?
John,
Thanks for that suggestion - could not get it to work. However, I did manage a different approach. I finally determined the sequence of events in terms of how the various events and listeners fire (I think).
Basically, the CalendarActivityListener fires, followed by the listener associated with the Calendar object's Create facet, followed finally by the CalendarEventListener - the final is where the TriggerEvent is available and then finally, control is passed to the popup/dialog in the Create facet. So, my approach of trying to set/get the TriggerDate in the user's HTTP session was doomed to failure because it was being get before it had been set :(
Anyway, I ended up adding a bit of code to the CalendarEvent listener - it grabs the current BindingContext, navigates through the DCBindingContainer to derive an Iterator for the ViewObject which drives the calendar and then grabs the currently active row. I then do a few tests to make sure we're working with a "new" row because I don't want to alter start & end dates associated with an existing calendar entry and then I define the Start and End dates to be the Trigger Date.
Works just fine. Snippet from the listener follows
BindingContext bindingContext = BindingContext.getCurrent();+
*if ( bindingContext != null ) {*+
DCBindingContainer dcBindings = (DCBindingContainer) bindingContext.getCurrentBindingsEntry();+
DCIteratorBinding iterator = dcBindings.findIteratorBinding("EventsView1Iterator");+
Row currentRow = iterator.getCurrentRow();+
if ( currentRow.getAttribute("StartDate") == null)+
currentRow.setAttribute("StartDate", calendarEvent.getTriggerDate());+
if (currentRow.getAttribute("EndDate")==null)+
currentRow.setAttribute("EndDate", calendarEvent.getTriggerDate());+
*}* -
How to set a default colour & thickness for rectangle in preview?
How to set a default colour & thickness for rectangle(annotation) in preview ? Because every time that I choose for example red and thickness 1 it reverts to orange and 3 next time .
Doesn't appear to be a default setting. Peruse the webpage for Secrets at http://secrets.blacktree.com/ for a possible setting.
-
How to set a new SCSI number for a second drive?
How to set a new SCSI number for a second drive?
WalterWalter,
This web site gives a good diagram:
http://www.hitachigst.com/hdd/support/dpes/dpesjum.htm
On a Quantum hard disk drive - they were the original equipment manufacturer (OEM) hard drive provider for Apple, you will see three or four pairs of pins on the green circuit board. They are labled:
AO . .
A1 . .
A2 . .
If no pins are connected, you have SCSI ID Zero This was the standard setting from the factory.
If you short out the pins beside AO .__. , you have designated SCSI ID One.
If you short out the pins beside A1 .__. , you have designated SCSI ID Two.
If you short out the pins beside A2 .__. , you have designated SCSI ID Four.
These values can be added together to get other SCSI IDs. If you have a jumper beside AO AND A1, that will add up to SCSI ID Three.
Some of the quantum drives used tiny black plastic jumpers with tiny metal contacts. I have yet to find a store that sells the tiny ones. I get my larger jumpers from old PC motherboards that are being thrown away. A small piece of aluminum foil will work as a jumper in a pinch. Just make sure it soed not fall off and short something else out!
Jim
PS
CD-ROM drives are set at the factory as ID 3. Internal drives are set at ID 0. I set my external SCSI drive at SCSI 1 so it does not conflict with the internal drive. Internal Zip drives are set at ID 5 and external Zip drives let you choose between 5 and 6. I set my burners at ID 4. Come up with a master plan for your devices like scanners and burners. Apple System Profiler will give you info on the device ID. If the computer fails to boot, turn off all but one SCSI device and make sure of its ID. Then check each subsequent device by powering up only one device at a time while booting from a CD at ID #3. -
How to set up different ring tone for Facetime
how to set up different ring tone for Facetime
I don't think that on an iPhone that FaceTime has a separate setting, you can only set a ringtone (which will apply to phone calls) via Settings > Sounds, or set different tones for different contacts via the Contacts app - but you can't have a separate sound for FaceTime
-
How to set a default Billing type for a particular Delivery type
Dear All,
How to set a default billing type for a particular delivery type.
My requirement is, we are creating delivery for a Stock Transport Order. Delivery type is NL and the Purchase order type is UB.
When we are creating Billing, it should take Billing type "ZSTO" by default, which is the customised Billing type.
Where we have to do this setting?
In case of normal sales order, this control will be available in the Sales order document types.
In case STO, how to set a default billing type for a delivery type (NL).
Regards,
RajeshThere is a customization available here no default or hard coded
Normally in a sales doc type we mention which billing type system has to pick
If the billing happens from a PO which billing type system will take depends on the controls set in the areas mentioned below
Go to your delivery type OVLK (say your delivery type is NL)
In that there is a field called default order qty in the order reference tab (say if you maintained DL there)
This DL is called PSEUDO order type
Then in VOV8 for DL based on the billing types mentioned ,system will take the billing doc
For delivery related billing say if you mention say ZF8 in the details of DL in VOV8(provided you have created ZF8)
Then while you bill the delivery doc of NL system will take ZF8
For intercompany delivery you can create ZIV billing type also Pure customization
PO is linked to delivery type ( MM spro settings)--Del type linked to order (pseudo) type---in order type (pseudo) we mention the billing types. Here the flow is bit different that pure SD flow
Though the invoice is crated by manually putting customized Biiling Type and A/Cing doc also generated, but in the VF04 still system shows the same deliveries pending with Billing Type (F2).
This manual is not reqd if the said assignments are done properly
Hope it can assist you.
Thanks & Regards
JP
Edited by: J Prakash on Jun 23, 2010 4:05 PM -
In Yosemite this no longer works, has anyone figured this out? How to set a custom default umask for all applications?
I've tried everything to get a custom umask set for all apps. It just seems impossible...
Is there a replacement for launchd-user.conf?Please file a bug report: https://bugreport.apple.com
I am sure this is something that got lost, like environment variables, in the Yosemite/iOS merger.
Maybe you are looking for
-
The problem occurs when I try to respond to an email or forward an attachment with an email. I always get a message that "the silverlight plug-in has crashed". I send a crash report or reload the page but it does not solve the problem.
-
How to trigger xml publisher API (ex:Delivering Documents via e-Mail)?
Dear All: How to use xml publisher API ? In user's guide always talk API's code.(ex:Delivering Documents via e-Mail // create delivery manager instance DeliveryManager dm = new DeliveryManager(); // create a delivery request DeliveryRequest req = dm.
-
Is Oracle 8i compatible with win2000 ?
Hi Friends, I got a problem with the oracle 8i standard version(8.1.6) and personal oracle8i in WINDOS2000 environment ( both are on separate p.c.). I had installed perfectly and works for few days, then after some days my database couldnot startup.
-
Condition types restriction at only certain combination like Country/Tax
Dear All In FV11/12, with object V_KONH_VKS we can restrict users accessing certain condition types (field - KSCHL). My query is that I have few condition types accessed by various Plants i.e. common across Plants/Company Codes. Hence would like to r
-
Put a tablet on a contract line...
I am new to Verizon after 13 happy years with AT&T/Cingular/Cellular One (wayyy back). When I was in Best Buy I let the young lady talk me into getting the JetPack for only $20/month. Problem is that with the mobile-share, both iPhones on my plan are