How to format a variable (file name)
Hi,
I'm setting up a book consisting of 34 individual files. Each filename with this structure: "1.4 - Chapter name", "2.4 - Chapter name" etc.
On the top of the masterpage I have insert the variable file_name in a text-box. This is straight forward and works as should.
Now my problem: how can I format the variable, so the numerical chapter No. is separated from the text part? My aim is to place the numerical on each page aligned away from spine and to place the text part centered.
Of course it is possible to override the MP in each document, but would require 78 manual interventions (34 documents left/right),
Has anyone a solution, or found a way to accomplish what I try to achieve?
FYI I'm a rookie with InDesign :-)
Erling
As far as InDesign is concerned a variable is a single character, so it cannot be split. You can sometimes accomplish what you need to do with a Running Header (Character Style) variable by assigning various character styles to different parts of a text string (the styles can be nothing more than style names with no attributes), but I don't see a way to get the file name automatically and be able to split it.
Similar Messages
-
Change in time stamp format in receiver file name
Hi,
We have a scenario as AS2 - PI - FTP Server (AS/400). We want target file name as BMMDDHHSS where B is constant and
MM (month e.g., 01), DD (day e.g., 12), HH (hour e.g.,11), SS (seconds e.g., 12). Is there standard way of doing this, just by changing some configuration in receiver file adpter?
Please let me know, how could we do this using PI. If script is optional, keeping as back-up only.
How come, naming dynamic receiver file names are so difficult in PI. I have been trying to get the answers for our another requirement like to name receiver file as C1.YYMMDD.C2 in a file pass through scenario for more than a month.
It is just file through scenarios, so we can't use variable substitution as we are not going to read content/payload of file
Thanks in advance,
- Riya PatilHi Shabarish
Thanks for your reply. I have trying to make this UDF work since almost a month with no luck. Can you please check where am I doing wrong?
DynamicConfiguration conf = (DynamicConfiguration) container.getTransformationParameters().get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
DynamicConfigurationKey key = DynamicConfigurationKey.create("http://sap.com/xi/XI/System/File","FileName");
String SourceFileName = "C1." + a + ".C2";
conf.put(key, SourceFileName);
return " ";
In the above code, I am passing date as "a". And mapping CurrentDate (formatted) --> UDF --> Target root node.
I am getting the following error in SXMB_MONI:
<SAP:Code area="MAPPING">EXCEPTION_DURING_EXECUTE</SAP:Code>
<SAP:P1>com/sap/xi/tf/_MM_Lockbox_Filename_</SAP:P1>
<SAP:P2>com.sap.aii.utilxi.misc.api.BaseRuntimeException</SAP:P2>
<SAP:P3>Fatal Error: com.sap.engine.lib.xml.parser.Parser~</SAP:P3>
<SAP:Stack>com.sap.aii.utilxi.misc.api.BaseRuntimeException thrown during application mapping com/sap/xi/tf/_MM_Lockbox_Filename_: Fatal Error: com.sap.engine.lib.xml.parser.Parser~</SAP:Stack>
Your help would be much appreciated.
Thanks,
Riya Patil -
Variable file name through Receiver mail Communication channel
I need to send a file through receiver communication channel with the following name ( YYMMDD schema) . The YYMMDD is current date . I know how to create these file names throug FCC ( file communication channel) , I tried in the same manner to create this file through Receiver Mail CC , but it did not work . If you have any ideas , can you please share with me ?
ABC_MMYYDD.TXT
Thanks.
RitvikHi Ritvik,
Also, Please look at this link and see if it helps you. It is generating variable file name through a UDF
Re: Problem in dynamically file name generation procedure
Best Regards -
How can I assign image file name from Main() class
I am trying to create library class which will be accessed and used by different applications (with different image files to be assigned). So, what image file to call should be determined by and in the Main class.
Here is the Main class
import org.me.lib.MyJNIWindowClass;
public class Main {
public Main() {
public static void main(String[] args) {
MyJNIWindowClass mw = new MyJNIWindowClass();
mw.s = "clock.gif";
And here is the library class
package org.me.lib;
public class MyJNIWindowClass {
public String s;
ImageIcon image = new ImageIcon("C:/Documents and Settings/Administrator/Desktop/" + s);
public MyJNIWindowClass() {
JLabel jl = new JLabel(image);
JFrame jf = new JFrame();
jf.add(jl);
jf.setVisible(true);
jf.pack();
I do understand that when I am making reference from main() method to MyJNIWindowClass() s first initialized to null and that is why clock could not be seen but how can I assign image file name from Main() class for library class without creating reference to Main() from MyJNIWindowClass()? As I said, I want this library class being accessed from different applications (means different Main() classes).
Thank you.Your problem is one of timing. Consider this simple example.
public class Example {
public String s;
private String message = "Hello, " + s;
public String toString() {
return message;
public static void main(String[] args) {
Example ex = new Example();
ex.s = "world";
System.out.println(ex.toString());
}When this code is executed, the following happens in order:
1. new Example() is executed, causing an object to constructed. In particular:
2. field s is given value null (since no value is explicitly assigned.
3. field message is given value "Hello, null"
4. Back in method main, field s is now given value "world", but that
doesn't change message.
5. Finally, "Hello, null" is output.
The following fixes the above example:
public class Example {
private String message;
public Example(String name) {
message = "Hello, " + name;
public String toString() {
return message;
public static void main(String[] args) {
Example ex = new Example("world");
System.out.println(ex.toString());
} -
How do I get the file names on a customized proof sheet?
How do I get the file names on a customized proof sheet?
Actually, I really don't know what you say.
But when you see the properties of a file in Windows, you can see there are two file size. One is called "SIze" and the other one is called "Size on disk".
Therefore, I would like to know the size on disk but not just the size. -
Hi,
In selection screen (parameter) user will give input TXT file from presentation server to upload to SAP. I need to capture the file name only but not the path and need to concatenate with date stamp and need to download error log in XLS file to presentation server.
How to find out the file name from selection screen?
I searched SCN threads but not found relavant solution.
Thanks,
R KumarHi
This code gets only filename from selection screen :
REPORT x.
PARAMETERS p_file(100).
DATA : gv_full_path LIKE ibipparms-path,
gv_full_path_string TYPE string,
gv_filename(100),
gv_file_ext(3).
AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_file.
Ask user to select file with a popup :
CALL FUNCTION 'F4_FILENAME'
IMPORTING
file_name = gv_full_path.
Get filename from path :
gv_full_path_string = gv_full_path.
CALL FUNCTION 'CH_SPLIT_FILENAME'
EXPORTING
complete_filename = gv_full_path_string
IMPORTING
extension = gv_file_ext
name = gv_filename.
CONCATENATE gv_filename '.' gv_file_ext INTO gv_filename.
p_file = gv_filename.
I hope it helps. -
Hi,
when I add a step in a plugin registered in disk using the 2013 or 2011 tool for CRM 2013. it got a error as below.
Assembly file name is in invalid format. Only file name is allowed.
Anyone know this? thank you.
Detailed log as below
Unhandled Exception: System.ServiceModel.FaultException`1[[Microsoft.Xrm.Sdk.OrganizationServiceFault, Microsoft.Xrm.Sdk, Version=6.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]]: Assembly file name (LoyaltyEngine.CRM.Main.Plugin.dll) is in invalid
format. Only file name is allowed.
Detail: <OrganizationServiceFault xmlns="http://schemas.microsoft.com/xrm/2011/Contracts" xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
<ErrorCode>-2147204719</ErrorCode>
<ErrorDetails xmlns:a="http://schemas.datacontract.org/2004/07/System.Collections.Generic" />
<Message>Assembly file name (LoyaltyEngine.CRM.Main.Plugin.dll) is in invalid format. Only file name is allowed.</Message>
<Timestamp>2014-12-31T05:16:55.9984484Z</Timestamp>
<InnerFault>
<ErrorCode>-2147204719</ErrorCode>
<ErrorDetails xmlns:a="http://schemas.datacontract.org/2004/07/System.Collections.Generic" />
<Message>Assembly file name (LoyaltyEngine.CRM.Main.Plugin.dll) is in invalid format. Only file name is allowed.</Message>
<Timestamp>2014-12-31T05:16:55.9994483Z</Timestamp>
<InnerFault i:nil="true" />
<TraceText i:nil="true" />
</InnerFault>
<TraceText i:nil="true" />
</OrganizationServiceFault>
Server stack trace:
at System.ServiceModel.Channels.ServiceChannel.HandleReply(ProxyOperationRuntime operation, ProxyRpc& rpc)
at System.ServiceModel.Channels.ServiceChannel.Call(String action, Boolean oneway, ProxyOperationRuntime operation, Object[] ins, Object[] outs, TimeSpan timeout)
at System.ServiceModel.Channels.ServiceChannelProxy.InvokeService(IMethodCallMessage methodCall, ProxyOperationRuntime operation)
at System.ServiceModel.Channels.ServiceChannelProxy.Invoke(IMessage message)
Exception rethrown at [0]:
at Microsoft.Crm.Tools.Libraries.RegistrationHelper.RegisterStep(CrmOrganization org, CrmPluginStep step)
at Microsoft.Crm.Tools.PluginRegistration.StepRegistrationViewModel.btnRegister_Click(Object sender, EventArgs e)
Dynamics CRM ConsultingHi,
Have you checked the below links.
http://mscrmdeveloper.wordpress.com/2014/09/04/problems-adding-step-to-disc-based-plugin-assembly/
http://gustafwesterlund.blogspot.com/2014/05/issues-with-new-plugin-registration-tool.html
Hope this Helps!!!
Thanks,
Prasad
Make sure to "Vote as Helpful" and "Mark As Answer",if you get answer of your question. -
How do i sort by (file) name
How do i sort by file name for an album? I organize the photos from all different sources.. by filename.. and when i import them i just want them in the right order. This has to be one of the most basic functions and why was it eliminated from iPhoto?
Now all i get is "keep sorted by date" check box... (which does not work, some are still not in order)
Apple: this minimalist crap is getting old.. THIS IS A desktop PC..not an ipad or iphone. Put some meat in the menus and stop worrying so much about everything being pretty and streamlined.
C'mon!!!.. wasted timeNow all i get is "keep sorted by date" check box... (which does not work, some are still not in order)
"Keep sorted by date" can only be toggled on and off for regular albums, not for smart albums. -
InfoPath 2013: How to find the current file name?
Hello,
Is there any way to find the file name in the rule formulas when an existing xml file in a sharepoint form library is being edited in InfoPath? I am looking for a function that returns the current file name that is being edited.
Thank you,Hi,
According to your post, my understanding is that you want to get the current file name in the InfoPath form.
Here is a similar thread for you to take a look at:
http://social.technet.microsoft.com/Forums/en-US/a24f01d5-744c-4b75-b30d-3295311ab054/how-do-i-find-the-file-name-of-the-currently-open-infopath-form?forum=sharepointcustomizationlegacy
Best Regards
Dennis Guo
TechNet Community Support -
How can I edit the file name of the home page?
How can I edit the file name of the home page?
Gr AmmaniI have a similar issue with regards to the filename...
When I navigate to my website, it doesnt work unless I actually type the filename at the end of it. Example: type in "www.whitelion.com" (this is my real domain name) and it doesnt work. When I type in "www.whitelion.com/index.html" then it works.
This is obviously inconvenient because my clients will never know to add the filename to the end of the site.
Is there any setting or way to get the page to appear by just typing the original domain name without adding the extension?
Thanks,
Emelia -
How do I print the file name of a PDF file?
How do I print the file name of a PDF file?
In the print dialog under Advanced you can specify this.
-
How to find PG.xml file name and path associated with a FUNCTION
Hi,
I am having a function:IRC_VIS_HOME_PAGE with Web HTML value as below:
OA.jsp?akRegionCode=IRC_VIS_HOME_PAGE&akRegionApplicationId=800&OAPB=IRC_BRAND
How to find PG.xml file name and path assoicated with above funtion.
Thanks,
ashokAshok,
Function IRC_VIS_HOME_PAGE will have 2 parameter defined for it which are OASF and OAHP where
OASF=<SelectedFunctionName> - this tells the Framework to select this function in the given "Home Page" menu context.
OAHP=<HomePageMenuName> - this is used ONLY with the OASF parameter, and it is used to establish the current menu context. It should point to a "Home Page" menu.
--Shiv -
How to get list of file names from a directory?
How to get list of file names from a directory?
Please helpIn addition, this:
String filename = files;Should be this:
String filename = files;
That's just because he didn't use the "code" tags, so [ i ] made everything following it become italicized. -
when bates numbering a .pdf in XI, how can I change the file name to include the bates number and the file name? I know under "file output: it's either/or. I need both. Thanks!
Long ago I wrote a little demo using the touch command. Check out the following thread:
http://forums.ni.com/ni/board/message?board.id=170&message.id=25128#M25128
LabVIEW Champion . Do more with less code and in less time . -
How do I get the file name?
I'm kind of new to javascript -- working with a colleague who has Adobe Acrobat Professional -- I've got an *old* version of Adobe Acrobat and most of the functions don't work -- but how do we get the file name -- we're trying to develop an application -- so if the user opens c:\something.pdf, we'd like to know the file name (something.pdf).
If we get a fully qualified path, that's fine -- I think I can parse it.
Thank you in advance.The 'paty' property of the 'doc' object has been available since version 3.01.
Using the following in the JavaScript console when the Acobat JS API Refenece is open:
this.path;
returns:
this.path;
/C/Program Files/Adobe/Acrobat 8.0/Help/ENU/JS_api_reference.pdf
Maybe you are looking for
-
CME 10 cannot attended transfer with BLF button
Good morning! I'm having an issue with a client's CME in which they can no longer do an attended transfer using BLF speed dial buttons. Yesterday morning, their CME router was rebooted for unrelated reasons. Prior to this reboot, attended transfers
-
I've been publishing a business directory using InDesign for 18 years. Acquired CS6 last year and, with help, directory has been posted as an interactive file with internal and external hyperlinks (more than 1,000). When saving the original document
-
When will applications (like Premiere Clip) be created for Windows?
Hello, Now: https://www.adobe.com/es/products/premiere-clip.html And more Apps, they are only available for iOS I work with Windows. Why do not I have the same right as other users of iOS?
-
Can you get windows to output to a tv in widescreen ratio?
I'm using my MEGA180 to output directly to a TV, but the picture is always stretched to fit, as obviously the two available resolutions Windows gives me are more like 4:3 ratio. Is there any way, or any software, that can make windows output in wides
-
Can you string more than one captivate move into one movie
I want to know if I have 3 captivate movies, can I make one new movie that attaches each of the other moives into it (like having a parent movie with child movies)? thanks Deb