Distribute spacing value needs to be sticky
The Distribute Spacing value needs to remain sticky based on the last value I gave it. If I have previously distributed a series of objects to a set spacing value and then set it back to Auto prior to distributing another series of objects the value automatically switches back to the numerical value I gave it previously when I choose the key object. Illustrator needs to stop trying to think for me and just leave the value to what was last set, including and most importantly Auto. What's really annoying is that the change of value doesn't happen until you press the distribute button.
Hi,
Try like below:
data: l_len type i,
v_len type i,
l_syb type x value ''0A'.
field-symbols <fs> type any.
v_len = strlen( string ). "string is variable where you want to replace
while l_len lt v_len.
assign string+l_len(1) to <fs> casting type x.
if <fs> eq l_syb.
string+off(1) = ' '.
endif.
add 1 to l_len.
endwhile.
Regards,
Himanshu
Similar Messages
-
Calculating equally spaced values over a range
Any help would be really appreciated,
I've bee asked: Calculate Range for a sequence of 101 equally-spaced angles in the range from -90 to +90.
Basically I need 101 values equally spaced between -90 and 90 each of these values needs inserted into a range formula and graph.
This is the vi im working on, the unassigned T input variables on my forumula nodes are the angle values I need to calculate.Or use the Ramp Pattern function to create a 1D array of equally distributed values between two limits (-90 and 90).
Thoric (CLA, CLED, CTD and LabVIEW Champion) -
Set top and bottom inset spacing values in Text Frame Options via jsx script
I am looking for a way to set the top and bottom inset spacing values only to 2 points in Text Frame Options via a .jsx scrpt.
For years, I have used a script that sets Preferences, such as:
with(app.storyPreferences){
opticalMarginAlignment = false;
opticalMarginSize = 12; // pts
I would like to add the code to this same script that would make Top = 0p2 and Bottom 0p2 but leave Left and Right as 0p0.
Any help would be greatly appreciated.Here is the full .jsx file that we now use to set preferences.
Ideally, this could be modified to include setting any text frame created to have 0p2 inset Top and Bottom, but 0p0 Left and Right:
//ApplicationTextDefaults
//An InDesign CS2 JavaScript
//Sets the application text defaults, which will become the text defaults for all
//new documents. Existing documents will remain unchanged.
with(app.textDefaults){
alignToBaseline = false; // align to baseline grid
try {
// appliedFont = app.fonts.item("Times New Roman");
appliedFont = app.fonts.item("Helvetica");
catch (e) {}
try {
fontStyle = "Medium";
catch (e) {}
autoleading = 100;
balanceRaggedLines = false;
baselineShift = 0;
capitalization = Capitalization.normal;
composer = "Adobe Paragraph Composer";
desiredGlyphScaling = 100;
desiredLetterSpacing = 0;
desiredWordSpacing = 100;
dropCapCharacters = 0;
if (dropCapCharacters != 0) {
dropCapLines = 3;
//Assumes that the application has a default character style named "myDropCap"
//dropCapStyle = app.characterStyles.item("myDropCap");
fillColor = app.colors.item("Black");
fillTint = 100;
firstLineIndent = "0pt";
// firstLineIndent = "14pt";
gridAlignFirstLineOnly = false;
horizontalScale = 100;
hyphenateAfterFirst = 3;
hyphenateBeforeLast = 4;
hyphenateCapitalizedWords = false;
hyphenateLadderLimit = 1;
hyphenateWordsLongerThan = 5;
hyphenation = true;
hyphenationZone = "3p";
hyphenWeight = 9;
justification = Justification.leftAlign;
keepAllLinesTogether = false;
keepLinesTogether = true;
keepFirstLines = 2;
keepLastLines = 2;
keepWithNext = 0;
kerningMethod = "Optical";
kerningValue = 0;
leading = 6.3;
// leading = 14;
leftIndent = 0;
ligatures = true;
maximumGlyphScaling = 100;
maximumLetterSpacing = 0;
maximumWordSpacing = 160;
minimumGlyphScaling = 100;
minimumLetterSpacing = 0;
minimumWordSpacing = 80;
noBreak = false;
otfContextualAlternate = true;
otfDiscretionaryLigature = true;
otfFigureStyle = OTFFigureStyle.proportionalOldstyle;
otfFraction = true;
otfHistorical = true;
otfOrdinal = false;
otfSlashedZero = true;
otfSwash = false;
otfTitling = false;
overprintFill = false;
overprintStroke = false;
pointSize = 6.3;
// pointSize = 11;
position = Position.normal;
rightIndent = 0;
ruleAbove = false;
if(ruleAbove == true){
ruleAboveColor = app.colors.item("Black");
ruleAboveGapColor = app.swatches.item("None");
ruleAboveGapOverprint = false;
ruleAboveGapTint = 100;
ruleAboveLeftIndent = 0;
ruleAboveLineWeight = .25;
ruleAboveOffset = 14;
ruleAboveOverprint = false;
ruleAboveRightIndent = 0;
ruleAboveTint = 100;
ruleAboveType = app.strokeStyles.item("Solid");
ruleAboveWidth = RuleWidth.columnWidth;
ruleBelow = false;
if(ruleBelow == true){
ruleBelowColor = app.colors.item("Black");
ruleBelowGapColor = app.swatches.item("None");
ruleBelowGapOverprint = false;
ruleBelowGapTint = 100;
ruleBelowLeftIndent = 0;
ruleBelowLineWeight = .25;
ruleBelowOffset = 0;
ruleBelowOverprint = false;
ruleBelowRightIndent = 0;
ruleBelowTint = 100;
ruleBelowType = app.strokeStyles.item("Solid");
ruleBelowWidth = RuleWidth.columnWidth;
singleWordJustification = SingleWordJustification.leftAlign;
skew = 0;
spaceAfter = 0;
spaceBefore = 0;
startParagraph = StartParagraph.anywhere;
strikeThru = false;
if(strikeThru == true){
strikeThroughColor = app.colors.item("Black");
strikeThroughGapColor = app.swatches.item("None");
strikeThroughGapOverprint = false;
strikeThroughGapTint = 100;
strikeThroughOffset = 3;
strikeThroughOverprint = false;
strikeThroughTint = 100;
strikeThroughType = app.strokeStyles.item("Solid");
strikeThroughWeight = .25;
strokeColor = app.swatches.item("None");
strokeTint = 100;
strokeWeight = 0;
tracking = 0;
underline = false;
if(underline == true){
underlineColor = app.colors.item("Black");
underlineGapColor = app.swatches.item("None");
underlineGapOverprint = false;
underlineGapTint = 100;
underlineOffset = 3;
underlineOverprint = false;
underlineTint = 100;
underlineType = app.strokeStyles.item("Solid");
underlineWeight = .25
verticalScale = 100;
//Units & Increments preference panel
//Must do this to make sure our units that we set are in points. The vert and horiz
//units that get set default to the current measurement unit. We set it to points
//so we can be sure of the value. We'll reset it later to the desired setting.
with(app.viewPreferences){
horizontalMeasurementUnits = MeasurementUnits.points; // Ruler Units, horizontal
verticalMeasurementUnits = MeasurementUnits.points; // Ruler Units, vertical
//General preference panel
with(app.generalPreferences){
pageNumbering = PageNumberingOptions.section; // Page Numbering, View
toolTips = ToolTipOptions.normal; // Tool Tips
// Not supported in CS4
// toolsPalette = ToolsPaletteOptions.doubleColumn; // Floating Tool Palette
completeFontDownloadGlyphLimit = 2000; // Always Subset Fonts...
try {
//Wrapped in try/catch in case it is run with CS4 and earlier to avoid the error
preventSelectingLockedItems = false; // Needed for CS5+
catch (e) {}
//Type preference panel
with (app.textEditingPreferences){
tripleClickSelectsLine = true; // Triple Click to Select a Line
smartCutAndPaste = true; // Adjust Spacing Automatically when Cutting and Pasting Words
dragAndDropTextInLayout = false; // Enable in Layout View
allowDragAndDropTextInStory = true; // Enable in Story Editor
with(app.textPreferences){
typographersQuotes = true; // Use Typographer's Quotes
useOpticalSize = true; // Automatically Use Correct Optical Size
scalingAdjustsText = true; // Adjust Text Attributes when Scaling
useParagraphLeading = false; // Apply Leading to Entire Paragraphs
linkTextFilesWhenImporting = false; // Create Links when Placing Text and Spreadsheet Files
// Missing following (Font Preview Size, Past All Information/Text Only)
//Advanced Type preference panel
with(app.textPreferences){
superscriptSize = 58.3; // Superscript, size
superscriptPosition = 33.3; // Superscript, position
subscriptSize = 58.3; // Subscript, size
subscriptPosition = 33.3; // Subscript, position
smallCap = 70; // Smallcap
with(app.imePreferences){
inlineInput = false; // Use Inline Input for Non-Latin Text
//Composition preference panel
with(app.textPreferences){
highlightKeeps = false; // Keep Violations
highlightHjViolations = false; // H&J Violations
highlightCustomSpacing = false; // Custom Tracking/Kerning
highlightSubstitutedFonts = true; // Substituted Fonts
highlightSubstitutedGlyphs = false; // Substituted Glyphs
justifyTextWraps = false; // Justify Text Next to an Object
abutTextToTextWrap = true; // Skip by Leading
zOrderTextWrap = false; // Text Wrap Only Affects Text Beneath
//Units & Increments preference panel
with(app.viewPreferences){
rulerOrigin = RulerOrigin.spreadOrigin; // Ruler Units, origin
// These are set at the end of the script after all the changes have been made
// horizontalMeasurementUnits = MeasurementUnits.points; // Ruler Units, horizontal
// verticalMeasurementUnits = MeasurementUnits.inches; // Ruler Units, vertical
pointsPerInch = 72; // Point/Pica Size, Points/Inch
cursorKeyIncrement = 1; // Keyboard Increment, Cursor Key
with(app.textPreferences){
baselineShiftKeyIncrement = 2; // Keyboard Increment, Baseline Shift
leadingKeyIncrement = 2; // Keyboard Increment, Size/Leading
kerningKeyIncrement = 20; // Keyboard Increment, Kerning
//Grids preference panel
with(app.gridPreferences){
baselineColor = UIColors.lightBlue; // Baseline Grid, Color
baselineStart = 48; // Baseline Grid, Start
baselineDivision = 6; // Baseline Grid, Increment Every
baselineViewThreshold = 50; // Baseline Grid, View Threshold
baselineGridRelativeOption = BaselineGridRelativeOption.topOfPageOfBaselineGridRelativeOption; // Baseline Grid, Relative To
gridColor = UIColors.lightGray; // Document Grid, Color
horizontalGridlineDivision = 12; // Document Grid, Horizontal, Gridline Every
horizontalGridSubdivision = 12; // Document Grid, Horizontal, Subdivisions
verticalGridlineDivision = 12; // Document Gird, Vertical, Gridline Every
verticalGridSubdivision = 12; // Document Grid, Vertical, Subdivisions
gridsInBack = true; // Grids in Back
documentGridSnapto = false; // snap to grid or not
documentGridShown = false; // show document grid
//Guides & Pasteboard preference panel
with(app.documentPreferences){
marginGuideColor = UIColors.violet; // Color, Margins
columnGuideColor = UIColors.magenta; // Color, Columns
with(app.pasteboardPreferences){
bleedGuideColor = UIColors.fiesta; // Color, Bleed
slugGuideColor = UIColors.gridBlue; // Color, Slug
previewBackgroundColor = UIColors.lightGray; // Color, Preview Background
minimumSpaceAboveAndBelow = 72; // Minimum Vertical Offset
with(app.viewPreferences){
guideSnaptoZone = 4; // Snap to Zone
with(app.guidePreferences){
guidesInBack = false; // Guides in Back
//Dictionary preference panel
with(app.dictionaryPreferences){
composition = ComposeUsing.both; // Hyphenatin Exceptions, Compose Using
mergeUserDictionary = false; // Merge User Dictionary into Document
recomposeWhenChanged = true; // Recompose All Stories When Modified
// Missing (Lang, Hyph, Spelling, Double Quotes, Single Quotes)
//Spelling preference panel
with(app.spellPreferences){
checkMisspelledWords = true; // Find, Misspelled Words
checkRepeatedWords = true; // Find, Repeated Words
checkCapitalizedWords = true; // Find, Uncapitalized Words
checkCapitalizedSentences = true; // Find, Uncapitalized Sentences
dynamicSpellCheck = true; // Enable Dynamic Spelling
misspelledWordColor = UIColors.red; // Color, Misspelled Words
repeatedWordColor = UIColors.green; // Color, Repeated Words
uncapitalizedWordColor = UIColors.green; // Color, Uncapitalized Words
uncapitalizedSentenceColor = UIColors.green; // Color, Uncapitalized Sentences
//Autocorrect preference panel
with(app.autoCorrectPreferences){
autoCorrect = true; // Enable Autocorrect
autoCorrectCapitalizationErrors = false; // Autocorrect Capitalization
// Missing (Language, Misspelled word pairs)
//Display Performance preference panel
with(app.displayPerformancePreferences){
defaultDisplaySettings = ViewDisplaySettings.typical; // Preserve Object-Level
persistLocalSettings = false;
// Missing (antialiasiing, greek below
//Story Editor Display preference panel
with(app.galleyPreferences){
textColor = InCopyUIColors.black; // Text Color
backgroundColor = InCopyUIColors.white; // Background
smoothText = true; // Enable Anti-Aliasing
antiAliasType = AntiAliasType.grayAntialiasing; // Type
cursorType = CursorTypes.standardCursor; // Cursor Type
blinkCursor = true; // Blink
// Missing (Font, Size, Line Spacing & Theme)
//File Handling preference panel
with(app.generalPreferences){
includePreview = true; // Always Save Preview Images with Doc
previewSize = PreviewSizeOptions.medium; // Preview Size
with(app.clipboardPreferences){
preferPDFWhenPasting = false; // Prefer PDF When Pasting
copyPDFToClipboard = true; // Copy PDF to Clipboard
preservePdfClipboardAtQuit = false; // Preserve PDF Data at Quit
// Missing (Enable Version Cue)
// Optical margin (hanging punctuation, outside margins)
with(app.storyPreferences){
opticalMarginAlignment = false;
opticalMarginSize = 12; // pts
//Wrap Up (do at end of script)
//Units & Increments preference panel
//Must do this to make sure our units that we set are in points. The vert and horiz
//units that get set default to the current measurement unit. We set it to points
//so we can be sure of the value. We'll reset it later to the desired setting.
with(app.viewPreferences){
horizontalMeasurementUnits = MeasurementUnits.picas; // Ruler Units, horizontal
verticalMeasurementUnits = MeasurementUnits.inches; // Ruler Units, vertical
// These two flags are turned off to avoid the error message about
// missing image links when InDesign opens an ad. This can especially
// be a problem when doing batch processes.
with(app.linkingPreferences){
checkLinksAtOpen = false; // checkbox: true/false
findMissingLinksAtOpen = false; // checkbox: true/false -
SEM BPS - Planning function to distribute total value over months
Hello,
We use SEM BPS. In fact we use the integration of SEM BPS in the CRM opportunity component as opportunity planning.
Now we want to distribute the total value of certain key figures over the months. Either equal distribution or increasing distribution like 1% increase every month. What would be the best way to do that with a planning function?
We need to take into account that the number of months depends on the start and end date of the transaction (opportunity).
Best regards,
ThomasHi Thomas,
I would probably create a fox formula, do a foreach in selection loop over the months and distribute the values within that formula.
If you want to use a standard distribution function, you need to create the reference data somewhere before, which could be a bit difficult if the timeframe changes according to user selections.
regards
Cornelia -
Illustrator CS4 - Distribute Spacing Auto option
I made regular use of the Auto setting of Distribute Spacing to equally space all objects between the end two objects. This option appears to have disappeared from CS4 - there is no Auto option available from the spacing box.
Is there an alternative method is equally distributing objects that is as simple as the previous option. I know that I could calculate the spacing I need manually, but it takes a bit longer to do
JulianDoh! I could, of course, use the Distribute Objects tools! I had got so used to using the Distribute Spacing option that I had forgotten about this.
-
During LTP material master values need to be modified
Hi ,
We are implementing LTP process in company. while LTP Run it pick the MRP1234 values for Simulative order creation. We have requirement to change the MRP1234 only during LTP run. Were as the MRP run will run with normal material master(MRP1234) values.
The values need to be changed are during LTP run are MRP group , Lox size etc., '''Thank you.. Almedia and köller..
We are already using this badi MD_MRP_PARAMETERS. We are facing the following problem
For example
header ATEST
component BCOMP
We need to switch off the bulk indicator and phantom for the component.
We are using the above bapi its manipulation only the header (ATEST) material master data but in LTP run during creation of header simulative planned. Component simulative dep requirement values are copied from material master. In this above bapi we are manipulating only header values.
When the next loop during component simulative planned order generation time the above parameters(bulk and phantom) are copied from component simulative dep requirement. Hence the switching of bulk indicator and phantom assembly is not working during ltp using this badi. This problem is happening for multi level components too.
Is there any suggestion for this issue.. -
Dear all,
I've got a problem concerning the bps planning function "distribute with reference data". BPS doesn't distribute zero values.
A simple example:
The users plan values via manual planning layouts:
period 1 = +100
period 2 = -100
This values are aggregated in period 12 in the InfoCube under a new version. Therefore the planned values under period 12 are zero (+100 + (-100) = 0). So far so good.
Now I want to distribute this value (=0) on divisions with the following reference data:
division 1 = +50
division 2 = +50
division 3 = -100
In this case BPS isn't distributing the data.
Obviously there is a problem if the data, which has to be distributed and the reference data (for distribution) is zero in total.
My goal was to get distributed data like that:
division 1 = +50
division 2 = +50
division 3 = -100
Do you have an idea, how solve this problem?
I would appreciate any help.
Regards,
Christoph RieselDear Maryon,
Thank you for your help. I think you're right. I just "tested" my own example in MS-Excel. Mathematically it seems to be impossible to distribute zero values.
Maybe I'm asking the wrong questions
I think I'll close the thread.
Regards,
Christoph -
Distribute spacing of text objects that are in a group doesn't work
Here's the scenario:
create a set of discreet text objects, say for a nav bar on a web site
put these in a group
open the align objects panel
set the "Align to" to "Selection"
attempt that the distribute spacing (or, in fact, any of the align panel options) doesn't seem to work. I have to ungroup the objects first.
If i choose Align to Artboard some of the options work.
Is this a ttwii (that's the way it is) or am i doing something wrong?
Thanks in advance!
SteveYes ttwi.
Align & Distribute, aligns and distributes groups, not the elements within a group.
If this was the other way around trying to align logos/UPCs/illustrations would create a mess as these are usually groups of multiple elements. -
Distribute Spacing button in Toolbar?
Is it possible to add the Distribute Spacing buttons to the toolbar?
No, that's not possible. The default panles cannot be edited, you can only program your own as of CS4 using the CSXS classes provided for Flash (the panels use Flash's rendering engine).
Mylenium -
Distribute Spacing shortcut or toolbar item?
I frequently use the distribute spacing function to space ads on a page. I know I could just leave the dialog box open but I hate having those things open because it blocks too much on screen (I have my widescreen monitor on it's edge to more accurately represent the format of a page.) Is there any way to put the distribute spacing tool on the toolbar? Even better yet, is there a keyboard shortcut or a way to assign one? I can't find one in the shortcuts menu.
justgeig wrote:
I frequently use the distribute spacing function to space ads on a page. I know I could just leave the dialog box open but I hate having those things open because it blocks too much on screen (I have my widescreen monitor on it's edge to more accurately represent the format of a page.) Is there any way to put the distribute spacing tool on the toolbar? Even better yet, is there a keyboard shortcut or a way to assign one? I can't find one in the shortcuts menu.
Window > Object & Layout > Align shows Shift+F7 as the keystroke for the Align panel which also contains distribution options. In Edit > Keyboard Shortcuts, you'll find it defined on the Window menu, where you can change or add other shortcuts. In Quick Apply (Cmd/Ctrl+Enter/Return, or Edit > Quick Apply, the shortest cut you can type to toggle the Align panel is ut>a.
Using the Control panel icons offers only a subset of align and distribute features, compared to those in the Align panel.
HTH
Regards,
Peter
Peter Gold
KnowHow ProServices -
Where is Distribute Spacing Panel
I have trouble finding "distribute spacing" panel. My "align" panel only has "align objects" and "distribute object".
Hello Hardworking J
Screen shot below. Hope it helps. -
Below is an example of the output from a “show access-list” command on the Cisco PIX/ASA.
NDC-FW-01# show access-list
access-list allow-in line 1 extended permit tcp any host <IP_1> eq www (hitcnt=186) 0x67305930
access-list allow-in line 2 extended permit tcp any host <IP_1> eq https (hitcnt=0) 0x4612a177
access-list allow-in line 11 extended permit tcp any host <IP_2> eq www (hitcnt=480) 0xce0a6156
access-list allow-in line 12 extended permit tcp any host <IP_2> eq https (hitcnt=64) 0xf530e0aa
access-list allow-in line 20 extended permit tcp any host <IP_3> eq www (hitcnt=7671) 0xea971ac0
access-list allow-in line 21 extended permit tcp any host <IP_3> eq https (hitcnt=41920) 0x8d30dc38
access-list allow-in line 22 extended permit tcp any host <IP_4> eq https (hitcnt=34) 0xbf7c0975
What I want to be able to do is monitor the delta value of the hit count between polling intervals. I want to do this, ideally, for only some access-list, and for only some of the access-list entries within those access-lists.
Is this something I can do directly or do I need to use a third party piece of software to do this and if so, can anyone suggest which software to use ?
Thanks very much
DavidTThat's nothing the ASA can do native. But if you have a linux-Box, it shouldn't be to hard to script with some lines of AWK: http://www.gnu.org/software/gawk/manual/gawk.html
BTW: You should move this Thread to "Firewalling" as it has nothing to do with IPS ...
Don't stop after you've improved your network! Improve the world by lending money to the working poor:
http://www.kiva.org/invitedby/karsteni -
Sales Order Costing. Error values, need BAPI or Userexit or Enhancements
Hi Experts,
I have a situation to solve the Errors in Sales Order Costing.
My Error is, its not splitting values equally,,, (BOM Item Price Values)
for example...
let i have a parent Item A.
and Child Items as A1, A2, A3.
Now the Qty of A is 100. for each item the price value is 50. so the total value is 5000/-
Now If i need one A, then I need 8 A1's, 4 A2's, 3 A3's.and let think A1 value and A2 value and A3 value (single Unit ) are equal. and let the value be 100.
but in BOM i can see all the values of A1, A2, A3 as same. (500, 500, 500) but it should be (800, 400, 300)
The single Unit Price is not multiplying with Quantity, but its equally splitting.
Please tell me Can I find and BAPI or Userexit or any enhancements or any Configurations to do.
Thanks & Regards
Dileep .Cno replies and my thread was dead.
-
PTO Accruals - Ceiling value needs to be grade based
Release 11i.10.2
Details of the plan
=============
Accrual Formula = PTO_PAYROLL_BALANCE_CALCULATION
Carry Over Formula = PTO_PAYROLL_CARRYOVER
Payroll Balance Reset Date = 1st January
Period of Ineligibility = 6 months
Accrual Band
Years of Service = 0-99
Annual Rate = 30
Maximum Carry Over = 15
Requirement
========
Ceiling is to be 60 for employees in Grade A1-A5 and for the rest there is not limit.
Can someone please help me? The Standard form does not seem to fulfill the needs and when I open forumlas PTO_PAYROLL_BALANCE_CALCULATION, PTO_PAYROLL_CARRYOVER I am unable to understand exaclty which part of the code should be modified.
Pls Help
Regards
WoqarTo achieve your requirement, you need to change the accrual sub formula PTO_PAYROLL_PERIOD_ACCRUAL. Follow the below steps.
A.Create a pl/sql function :
1. Create a new Pl/Sql Function in similar lines with parameters as p_assignment_id, p_date_earned, p_plan_id and p_number_of_years;
2. The new function should call the pl/sql function per_utility_functions.Get_Accrual_Band passing values of p_plan_id and p_number_of_years.
3. After the above function call, invoke your custom procedure to get the accrual value based on grade (passing p_assignment_id and p_date_earned as parameters).
4. call the procedure per_formula_functions.set_number to set the ceiling value.
So overall your function should like this
FUNCTION <function name>(p_assignment_id NUMBER,p_date_earned DATE,p_plan_id NUMBER, p_number_of_years NUMBER ) RETURN NUMBER IS
< variables declaration>
l_ceiling number;
BEGIN
l_return := per_utility_functions.Get_Accrual_Band(p_plan_id,p_number_of_years);
IF l_return = 1 THEN
return l_return;
ELSE
l_return := <your custom function>(p_assignment_id,p_date_earned,l_ceiling);
l_error := per_formula_functions.set_number('CEILING' ,l_ceiling);
END IF;
END <function name>;
l_error := per_formula_functions.set_number('CEILING' ,l_ceiling);
B. Create a Formula Function with the above pl/sql function with p_assignment_id, p_date_earned, p_plan_id as context usages and p_number_of_years as parameter.
C. Copy the Formula PTO_PAYROLL_PERIOD_ACCRUAL and replace the entry of Get_Accrual_Band with your custom formula function defined in step B.
D. Copy the formula PTO_PAYROLL_BALANCE_CALCULATION and replace the entry of PTO_PAYROLL_PERIOD_ACCRUAL with your custom formula defined in step C.
Hope this helps.
Regards,
Sharath -
Best way to distribute configuration values to subVIs
I have a main VI with ~10 subVIs, all of which have a number of default constants embedded. I want to change my architecture so that all the constants are moved to a single ASCII text file which is not changed during program execution. I'm trying to decide the best way to do this:
- Read the file every time a subvi is opened (this is frequent).
- Use the "Read Key" function (this may be essentially the same).
- Read the file once at the beginning of execution, and store the values in a cluster which is passed to each subVI.
- Read the file once at the beginning of execution, and store the values in several clusters, passing only the needed values to a given subVI.
- Read the file once at the beginning of execution, and store the values in a functional (LV2) global which is read by each subVI when it is called.
I think all of these would work, but what would be the most efficient in terms of programming time, execution time, memory usage, and ease of future modification? I'm leaning toward the multiple clusters approach so that I'm not constantly reading a file each time a subVI opens.
Thanks to all,
JamesConsider using what I call a "manager" VI. Its purpose is to manage the file for you.
You call it whever you want to know one of these parameters.
It knows whether it's read the file yet or not. If not, it does so on first call.
After that, it simply keeps all your values in its own memory (shift registers).
When you call it, it simply gives you the value(s) out of its memory, either as a big cluster, or as separated values.
That way, you only read the file once.
Steve Bird
Culverson Software - Elegant software that is a pleasure to use.
Culverson.com
Blog for (mostly LabVIEW) programmers: Tips And Tricks
Maybe you are looking for
-
Can I install windows xp or windows 7 on a partitioned drive?
I have Windows 8.1 installed on my Toshiba Satellite C55-A laptop. I have 418GB free of 453GB total. Can I partition the drive and install an earlier version? I have a piece of hardware (M-Audio Pre-USB interface) that will work with Windows 7 or XP,
-
Hi, does anyone know if the Jabra bt 3030 will work with iOS 5?
Hi I was wondering if the Jabra BT3030 handsfree stereo headseat will work with the new ios 5.
-
Differs bt function and procedure
hi all Apart from basic differnce between function and a procedure(it returns a value....) do list out others differences... (like better performance or...) thanks in adv
-
Hello all,just downloaded eZReader DOC PDF Lite for my X3-02 (v.06.00) and it doesn't work! When I choose to open either PDF or DOC files,it just says "unsupported file format".Any tip or piece of information will be much appreciated.
-
Dear Oracle ace and directors Wish to share me your experience in this project We have a lot of Oracle databases (Different database versions and different OSs), currently we think to Consolidate all these databases with new maximum availability arch